function chkAlphaBets()
{
    if (((event.keyCode<65) || (event.keyCode>90))
        && (event.keyCode<97) || (event.keyCode>122)) 
    { 
        if (event.keyCode!=32)
            {event.keyCode=0;}
    }
}

function chkNumeric()
{
    if ((event.keyCode<48) || (event.keyCode>57))
        event.keyCode=0;	
}

function checkData()
{   	
    var msg;
    var cntMsg=0;
    msg="";		

    if(document.Form2.name.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your name."
    }

    if(document.Form2.phone.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Phone no."
    }

    // start validation of email id
    if (document.Form2.email.value!="")
    {
        var emField=document.Form2.email.value;
        var fieldValue = emField;
        if(fieldValue != "")
        { 
            var atSymbol = 0;				
            for(var a = 0; a < fieldValue.length; a++)
            { 
                if(fieldValue.charAt(a) == "@")
                {  atSymbol++  
                }
                if(fieldValue.charAt(a) == " ")
                {  atSymbol++;
                   atSymbol++;
                }
            }
            
            if(atSymbol > 1)
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
            else if(atSymbol == 1 && fieldValue.charAt(0) != "@")
            { 
                var period = fieldValue.indexOf(".",fieldValue.indexOf("@")+2) 
                var twoPeriods = (fieldValue.charAt((period+1)) == ".") ? true : false 
                if(period == -1 || twoPeriods || fieldValue.length < period + 2 ||
                    fieldValue.charAt(fieldValue.length-1)==".")
                {
                    cntMsg=cntMsg+1;
                    msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
                }
            }
            else
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
        }
        else
        {   cntMsg=cntMsg+1;
            msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
        }
    }
    else
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
    }
    //End validation of email id
    
	 if(document.Form2.address.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Address."
    }

	if(document.Form2.date1.value=="") 
    {	cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Select the Date."
    }
    if(msg!="")
    {   alert(msg);
            return false;
    }
    else
    {	alert("Your booking has been successfully submited. We will contact you shortly.");
	return true;
    }	

} // end of func checkData

function checkQuick()
{   	
    var msg;
    var cntMsg=0;
    msg="";		

    if(document.Form1.name.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Name."
    }
   
    // start validation of email id
    if (document.Form1.email.value!="")
    {
        var emField=document.Form1.email.value;
        var fieldValue = emField;
        if(fieldValue != "")
        { 
            var atSymbol = 0;				
            for(var a = 0; a < fieldValue.length; a++)
            { 
                if(fieldValue.charAt(a) == "@")
                {  atSymbol++  
                }
                if(fieldValue.charAt(a) == " ")
                {  atSymbol++;
                   atSymbol++;
                }
            }
            
            if(atSymbol > 1)
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
            else if(atSymbol == 1 && fieldValue.charAt(0) != "@")
            { 
                var period = fieldValue.indexOf(".",fieldValue.indexOf("@")+2) 
                var twoPeriods = (fieldValue.charAt((period+1)) == ".") ? true : false 
                if(period == -1 || twoPeriods || fieldValue.length < period + 2 ||
                    fieldValue.charAt(fieldValue.length-1)==".")
                {
                    cntMsg=cntMsg+1;
                    msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
                }
            }
            else
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
        }
        else
        {   cntMsg=cntMsg+1;
            msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
        }
    }
    else
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
    }
    //End validation of email id
	
	if(document.Form1.phone.value=="") 
    {	cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Phone number."
    }

     if(document.Form1.req.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Requirements."
    }
	
    if(msg!="")
    {   alert(msg);
        return false;
    }
    else
    {	
		alert("Your Requirements has been successfully submited. We will contact you shortly.");
		return true;
    }	

} // end of func checkData

function checkcar()
{   	
    var msg;
    var cntMsg=0;
    msg="";		

    if(document.Form3.name.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Name."
    }
   
   	if(document.Form3.phone.value=="") 
    {	cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Phone number."
    }
   
    // start validation of email id
    if (document.Form3.email.value!="")
    {
        var emField=document.Form3.email.value;
        var fieldValue = emField;
        if(fieldValue != "")
        { 
            var atSymbol = 0;				
            for(var a = 0; a < fieldValue.length; a++)
            { 
                if(fieldValue.charAt(a) == "@")
                {  atSymbol++  
                }
                if(fieldValue.charAt(a) == " ")
                {  atSymbol++;
                   atSymbol++;
                }
            }
            
            if(atSymbol > 1)
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
            else if(atSymbol == 1 && fieldValue.charAt(0) != "@")
            { 
                var period = fieldValue.indexOf(".",fieldValue.indexOf("@")+2) 
                var twoPeriods = (fieldValue.charAt((period+1)) == ".") ? true : false 
                if(period == -1 || twoPeriods || fieldValue.length < period + 2 ||
                    fieldValue.charAt(fieldValue.length-1)==".")
                {
                    cntMsg=cntMsg+1;
                    msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
                }
            }
            else
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
        }
        else
        {   cntMsg=cntMsg+1;
            msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
        }
    }
    else
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
    }
    //End validation of email id
	

	
	if(document.Form3.requirement.value=="") 
    {	cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your requirement."
    }

     	 if(document.Form3.date2.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please select date."
    }
	
    if(msg!="")
    {   alert(msg);
        return false;
    }
    else
    {	
		alert("Your Enquire has been successfully submited. We will contact you shortly.");
		return true;
    }	

} // end of func checkData

function checkcar()
{   	
    var msg;
    var cntMsg=0;
    msg="";		

    if(document.Form4.name.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Name."
    }
   
   	if(document.Form4.phone.value=="") 
    {	cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your Phone number."
    }
   
    // start validation of email id
    if (document.Form4.email.value!="")
    {
        var emField=document.Form3.email.value;
        var fieldValue = emField;
        if(fieldValue != "")
        { 
            var atSymbol = 0;				
            for(var a = 0; a < fieldValue.length; a++)
            { 
                if(fieldValue.charAt(a) == "@")
                {  atSymbol++  
                }
                if(fieldValue.charAt(a) == " ")
                {  atSymbol++;
                   atSymbol++;
                }
            }
            
            if(atSymbol > 1)
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
            else if(atSymbol == 1 && fieldValue.charAt(0) != "@")
            { 
                var period = fieldValue.indexOf(".",fieldValue.indexOf("@")+2) 
                var twoPeriods = (fieldValue.charAt((period+1)) == ".") ? true : false 
                if(period == -1 || twoPeriods || fieldValue.length < period + 2 ||
                    fieldValue.charAt(fieldValue.length-1)==".")
                {
                    cntMsg=cntMsg+1;
                    msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
                }
            }
            else
            {   cntMsg=cntMsg+1;
                msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
            }
        }
        else
        {   cntMsg=cntMsg+1;
            msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
        }
    }
    else
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter a valid Email id."
    }
    //End validation of email id
	

	
	if(document.Form4.requirement.value=="") 
    {	cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please Enter Your requirement."
    }
 if(document.Form4.enquiry.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please select your car."
    }
	
     	 if(document.Form4.date3.value=="") 
    {   cntMsg=cntMsg+1;
        msg=msg + "\n"  + cntMsg +". Please select date."
    }
	
    if(msg!="")
    {   alert(msg);
        return false;
    }
    else
    {	
		alert("Your Enquire has been successfully submited. We will contact you shortly.");
		return true;
    }	

} // end of func checkData