function validatePromoForm() {

if (document.promoform.firstname.value == "") {
document.promoform.firstname.focus();
alert('Please enter your first name');
return false;
}

if (document.promoform.lastname.value == "") {
document.promoform.lastname.focus();
alert('Please enter your last name');
return false;
}


if (document.promoform.address1.value == "") {
document.promoform.address1.focus();
alert('Please enter your address');
return false;
}


if (document.promoform.city.value == "") {
document.promoform.city.focus();
alert('Please enter your city');
return false;
}

if (document.promoform.state.selectedIndex == 0) {
document.promoform.state.focus();
alert('Please enter your state');
return false;
}


if (document.promoform.zipcode.value == "") {
document.promoform.zipcode.focus();
alert('Please enter your postal code');
return false;
}

if (document.promoform.email.value == "") {
document.promoform.email.focus();
alert('Please enter a valid email address');
return false;
}

if ((document.promoform.email.value == "") || 
(document.promoform.email.value.indexOf('@') == -1) || 
(document.promoform.email.value.indexOf('.') == -1)) {
document.promoform.email.focus();
alert('Please enter a valid email address');
return false;
}

if (document.promoform.confirmemail.value == "") {
document.promoform.confirmemail.focus();
alert('Please confirm email');
return false;
}


if ((document.promoform.confirmemail.value == "") || 
(document.promoform.confirmemail.value.indexOf('@') == -1) || 
(document.promoform.confirmemail.value.indexOf('.') == -1)) {
document.promoform.confirmemail.focus();
alert('Please confirm with a valid email address');
return false;
}

if (document.promoform.email.value != document.promoform.confirmemail.value){
document.promoform.confirmemail.focus();
alert('The email addresses do not match');
return false;
}


return true;
}//validatePromoForm
