// JScript source code
//preload images
var myimages=new Array()
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
	myimages[i]=new Image()
	myimages[i].src=preloadimages.arguments[i]
	}
}
preloadimages("images/AboutUsNav_.gif","images/ServicesNav_.gif","images/TrackYourParcelNav_.gif","images/InsuranceOptionsNav_.gif","images/AccountApplicationFormNav_.gif","images/ContactUsNav_.gif");

function win(fileName) {
	myFloater = window.open('','myWindow','scrollbars=yes,status=no,width=400,height=450')
	myFloater.location.href = fileName;
}

function CheckForm()
{
	if (document.Form1.CompanyName.value == "")
	{ alert("You must enter your company name.")
	document.Form1.CompanyName.focus();
	return false;
	}
	if (document.Form1.Address_Line_1.value == "")
	{ alert("You must enter the first line of your address.")
	document.Form1.Address_Line_1.focus();
	return false;
	}
	if (document.Form1.CityTown.value == "")
	{ alert("You must enter the city/town your company is based in.")
	document.Form1.CityTown.focus();
	return false;
	}
	if (document.Form1.County.value == "")
	{ alert("You must enter the county your company is based in.")
	document.Form1.County.focus();
	return false;
	}
	if (document.Form1.Country.value == "")
	{ alert("You must enter the country your company is based in.")
	document.Form1.Country.focus();
	return false;
	}
	if (document.Form1.Postcode.value == "")
	{ alert("You must enter the postcode of your company.")
	document.Form1.Postcode.focus();
	return false;
	}
	if (document.Form1.TelStd.value == "")
	{ alert("You must enter the STD code of your company telephone number.")
	document.Form1.TelStd.focus();
	return false;
	}
	if (document.Form1.Telephone.value == "")
	{ alert("You must enter your company telephone number.")
	document.Form1.Telephone.focus();
	return false;
	}
	if (document.Form1.Email.value == "")
	{ alert("You must enter your company email address.")
	document.Form1.Email.focus();
	return false;
	}
	if (document.Form1.ContactName.value == "")
	{ alert("You must enter a contact name for your company.")
	document.Form1.ContactName.focus();
	return false;
	}

}
