function startFocus()
{
document.orderForm.First.focus();
}

// This function tests for completed required fields
function valEntries(form) {

// This function tests for valid entry in first name field advanced check
var fnamematch=/[A-Za-z]{2,}/
var fname=document.orderForm.First.value;
if (!fnamematch.test(fname))
{
alert("Please enter your complete first name");
document.orderForm.First.focus();
return false;
}

// This function tests for valid entry in last name field advanced check
var lnamematch=/[A-Za-z]{2,}/
var lname=document.orderForm.Last.value;
if (!lnamematch.test(lname))
{
alert("Please enter your complete last name");
document.orderForm.Last.focus();
return false;
}

// This function test for aleast one line in address field
if (document.orderForm.Address1.value=="") {
alert("Please enter your address:");
document.orderForm.Address1.focus();
return false;
}

// This function test for city field
if (document.orderForm.City.value=="") {
alert("Please enter your city:");
document.orderForm.City.focus();
return false;
}

// This function test for state field
if (document.orderForm.State.value=="") {
alert("Please enter your state:");
document.orderForm.State.focus();
return false;
}

// This function tests for a valid entry in zip code field advanced check
var zipmatch=/[A-Za-z0-9]{5,}/
var zipadd=document.orderForm.Zip.value;
if (!zipmatch.test(zipadd))
{
alert("Please enter your complete zip code.");
document.orderForm.Zip.focus();
return false;
}

// This function tests for valid email address advanced check
var tomatch=/[A-Za-z0-9]{2,}@[A-Za-z0-9]{2,}\.[A-Za-z]{2,}/
var emadd=document.orderForm.email.value;
if (!tomatch.test(emadd))
{
alert("Please enter a valid email address");
document.orderForm.email.focus();
return false;
}

}