function mov()

{

at=document.hotel_booking.email.value.indexOf("@")

dot=document.hotel_booking.email.value.indexOf(".")



if (document.hotel_booking.f_name.value=="")

{

alert("Name field Could not be blank.");

document.hotel_booking.f_name.focus();

return false;

}

if (document.hotel_booking.address.value=="")

{

alert("Address field Could not be blank.");

document.hotel_booking.address.focus();

return false;

}

if (document.hotel_booking.mobile.value=="")

{

alert("Mobile field Could not be blank.");

document.hotel_booking.mobile.focus();

return false;

}

if (document.hotel_booking.t_no.value=="")

{

alert("Telephone field Could not be blank.");

document.hotel_booking.t_no.focus();

return false;

}



if (document.booking.date1.value=="" || isNaN(document.booking.date1.value))
{

alert("Date of travel field Could not be blank.");

document.booking.date1.focus();

return false;

}

if (document.booking.date2.value=="" ||isNaN(document.booking.date2.value))

{

alert("Date of return field Could not be blank.");

document.booking.date2.focus();

return false;

}

if (document.hotel_booking.email.value=="")

{

alert("Email field Could not be blank.");

document.hotel_booking.email.focus();

return false;

}

if(at== -1)

{

alert("Not a valid Email.");

document.hotel_booking.email.focus();

return false;

}


if(dot== -1)

{

alert("Not a valid Email.");

document.hotel_booking.email.focus();

return false;

}


if (document.hotel_booking.commnets.value=="")

{

alert("Comments field Could not be blank.");

document.hotel_booking.commnets.focus();

return false;

}


}

