function formCheck(reserveForm)
{

	if (reserveForm.name.value == "")
  	{
    	alert("Please enter your name");
    	reserveForm.name.focus();
    	return (false);
  	}
	if (reserveForm.pick_add.value == "")
  	{
    	alert("Please enter your pickup address");
    	reserveForm.pick_add.focus();
    	return (false);
  	}
	if (reserveForm.phone.value == "")
  	{
    	alert("Please enter your contact phone #");
    	reserveForm.phone.focus();
    	return (false);
  	}
	if (reserveForm.service_date.value == "")
  	{
    	alert("Please enter the date of service");
    	reserveForm.service_date.focus();
    	return (false);
  	}
	/*if (reserveForm.service_type.value == "")
  	{
    	alert("Please enter the type of service");
    	reserveForm.service_type.focus();
    	return (false);
  	}*/
	if (reserveForm.passenger_amt.value == "")
  	{
    	alert("Please enter the amount of passenger");
    	reserveForm.passenger_amt.focus();
    	return (false);
  	}
	if (reserveForm.pick_time.value == "")
  	{
    	alert("Please enter your pickup time");
    	reserveForm.pick_time.focus();
    	return (false);
  	}
	if (reserveForm.drop_time.value == "")
  	{
    	alert("Please enter your drop-off time");
    	reserveForm.drop_time.focus();
    	return (false);
  	}
	if (reserveForm.service_desc.value == "")
  	{
    	alert("Please enter your service description");
    	reserveForm.service_desc.focus();
    	return (false);
  	}
	if (reserveForm.payment_type.value == "")
  	{
    	alert("Please enter the type of payment");
    	reserveForm.payment_type.focus();
    	return (false);
  	}
	
	return (true);
}

//for query email check....

function emailCheck()
{
	if(document.reservation.email.value !='')
	{
		Str = new String((document.reservation.email.value))
		Str1 = Str.indexOf('@')
		Str2 = Str.indexOf('.')
		Str41 = Str.indexOf('!')
		Str51 = Str.indexOf('#')
		Str61 = Str.indexOf('$')
		Str71 = Str.indexOf('%')
		Str81 = Str.indexOf('^')
		Str91 = Str.indexOf('&')
		Str101 = Str.indexOf('(')
		Str111 = Str.indexOf(')')
		Str131 = Str.indexOf('+')
		Str141 = Str.indexOf('=')
		Str151 = Str.indexOf('`')
		Str161 = Str.indexOf('~')
		Str171 = Str.indexOf('<')
		Str181 = Str.indexOf('>')
		Str191 = Str.indexOf('{')
		Str201 = Str.indexOf('}')
		Str211 = Str.indexOf('[')
		Str221 = Str.indexOf(']')
		Str241 = Str.indexOf('|')
		Str251 = Str.indexOf('/')
		Str261 = Str.indexOf('?')
		Str271 = Str.indexOf(',')
		Str281 = Str.indexOf('\'')
		if ((Str41>=0)||(Str51>=0) ||(Str61 >=0) ||(Str71>=0) || (Str81>=0)||(Str91>=0) ||(Str101>= 0)|| (Str111>=0) || (Str131>=0) ||(Str141>=0) ||(Str151>=0) ||(Str161>=0) || (Str171>=0) ||(Str181>=0) || (Str191>=0) || (Str201>=0) || (Str211>=0) || (Str221>=0) || (Str241>=0) || (Str251>=0) || (Str261>=0) || (Str271>=0) || (Str281>=0) )
		{
			alert ('Please do not enter any special characters in the email')
			document.reservation.email.focus()
			return false;
		}
	}
	var eml1 = Str.indexOf('@')
	eml2=eml1+1;
	eml3=eml1-1;
	if (Str.charAt(eml2)=="." || Str.charAt(eml3)==".")
	{
		alert ('Please enter a valid email address')
		document.reservation.email.focus()
		return false;
	}

	if (Str.length!=Str2+1)
	{
	
	}
	else
	{
		alert ('Please enter a valid email address')
		document.reservation.email.focus()
		return false;
	}
	Str3 = Str.indexOf('@',(Str1+1))
	if (Str3<0)
	{
	}
	else
	{
		alert ('Your email address cannot have more than one @')
		document.reservation.email.focus()
		return false;
	}
	if ((Str1>0) && (Str2>0))
	{
	}
	else
	{
		alert ('Please enter a valid email address')
		document.reservation.email.focus()
		return false
	}
	Str = new String((document.reservation.email.value))
	Str1 = Str.indexOf(' ')
	if (Str1==0)
	{
		alert ('Please do not leave a space before your Mail ID ')
		document.reservation.email.focus()
		return false;
	}
	if (Str1 > 0)
	{
		alert ('Please do not leave a space in Mail ID ')
		document.reservation.email.focus()
		return false;
	}
	Str99 = Str.indexOf(' ')
	if (Str99==0)
	{
		alert ('Please do not leave space in Mail ID ')
		document.reservation.email.focus()
		return false;
	}
	else if ((Str99>0) && (Str99 < (Str.length)))
	{
		alert ('Please do not use spaces in Mail ID')
		document.reservation.email.focus()
		return false;
	}

}