// JavaScript Document

if (subcookiejar.fetch ('spkp080001'))
	
	{
		
		var visit = subcookiejar.fetch ('spkp080001');
		document.form.textfield_firstname.value=visit.firstname;
		document.form.textfield_lastname.value=visit.lastname;
		document.form.textfield_title.value=visit.title;
		document.form.textfield_phone.value=visit.phone;
		document.form.textfield_email.value=visit.email;
		document.form.textfield_company.value=visit.company;
		document.form.textfield_address.value=visit.address;
		document.form.textfield_address2.value=visit.address2;
		document.form.textfield_city.value=visit.city;
		document.form.textfield_postalcode.value=visit.postalcode;
		document.form.textfield_enginemakemodel1.value=visit.actail;

	}

function GGGSelectTheStuff()
	{
		if (subcookiejar.fetch ('spkp080001'))
	
			{
				var visit = subcookiejar.fetch ('spkp080001');
				
				for (iLoop = 0; iLoop< document.form.select_state.options.length; iLoop++)
					{    
					  if (document.form.select_state.options[iLoop].value == visit.state)
						  {
							document.form.select_state.options[iLoop].selected = true;
							break;
						  }
					}
		
				for (iLoop = 0; iLoop< document.form.select_country.options.length; iLoop++)
					{    
					  if (document.form.select_country.options[iLoop].value == visit.country)
						  {
							document.form.select_country.options[iLoop].selected = true;
							break;
						  }
					}
					
				for (iLoop = 0; iLoop< document.form.select_aft_type1.options.length; iLoop++)
					{    
					  if (document.form.select_aft_type1.options[iLoop].value == visit.actype)
						  {
							document.form.select_aft_type1.options[iLoop].selected = true;
							document.form.select_aft_type1.onchange();
							break;
						  }
					}
			}
	}

GGGSelectTheStuff();