function validateForm(form)
{



if(""==document.forms.form.Fullname.value)
{
alert("Please enter your name.");
document.forms.form.Fullname.focus();
return false;
}


if( notValidEmail( form.Email ) ){
        alert( 'You have not entered a valid Email' );
		document.forms.form.Email.focus();
        return false;}
		
if( notValidEmail( form.ConfirmEmail ) ){
        alert( 'You have not entered a valid Email Confirmation' );
		document.forms.form.ConfirmEmail.focus();
        return false;}



function notValidEmail( str ){
    mailRE = new RegExp( );
    mailRE.compile( '^[\._a-z0-9-]+@[\.a-z0-9-]+[\.]{1}[a-z]{2,4}$', 'gi' );
    return !(mailRE.test( str.value ));
} 


if ( document.forms.form.PickupDay.selectedIndex == 0 )
{
alert ( "Please enter the Pickup Day." );
document.forms.form.PickupDay.focus();
return false;
}
if ( document.forms.form.PickupMonth.selectedIndex == 0 )
{
alert ( "Please enter the Pickup Month." );
document.forms.form.PickupMonth.focus();
return false;
}
if ( document.forms.form.PickupYear.selectedIndex == 0 )
{
alert ( "Please enter the Pickup Year." );
document.forms.form.PickupYear.focus();
return false;
}
if ( document.forms.form.DropoffDay.selectedIndex == 0 )
{
alert ( "Please enter the Dropoff Day." );
document.forms.form.DropoffDay.focus();
return false;
}
if ( document.forms.form.DropoffMonth.selectedIndex == 0 )
{
alert ( "Please enter the Dropoff Month." );
document.forms.form.DropoffMonth.focus();
return false;
}
if ( document.forms.form.DropoffYear.selectedIndex == 0 )
{
alert ( "Please enter the Dropoff Year." );
document.forms.form.DropoffYear.focus();
return false;
}

if (document.forms.form.SpamCheck.value == "")
  {
    alert("Please enter the white number");
    document.forms.form.SpamCheck.focus();
    return (false);
  }


 return (true);
}
