function check_form_quick(qreserve)
	{
	var msg="";
	if(qreserve.name.value==false)
	msg=msg+"\n-Enter Your name.";
	if(checkEmailQuick()==false)
	msg=msg+"\n-Enter Valid email.";
	if(qreserve.tel.value==false)
	msg=msg+"\n-Enter telephone.";
	
	if(msg!="")
		{
		alert("You have following errors:"+msg);
		return false;
		}
	
	else
	return true;	
	}
	
	//checking email=address
	function checkEmailQuick()
	{
	var strEmail, strError, countAtRate, countDot, i;	
	var checkAtRate, checkDot;
	var ValidChars,CountValidChars;
	ValidChars="abcdefghijklmnopqrstuvwxyz0123456789_.@ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
	//strEmail = checkEmailQuick.arguments[0];
	strEmail=document.qreserve.email.value;
	countAtRate=0;
	countDot=0;
	CountValidChars=0;
	if (strEmail.length >= 7)
		{		
		for(i=0;i<strEmail.length;i++)
			{
			if(strEmail.charAt(i)=="@")
				countAtRate++;
			if(strEmail.charAt(i)==".")
				countDot++;
			CountValidChars=0;
			for(j=0;j<ValidChars.length;j++)
				{
				if(strEmail.charAt(i)==ValidChars.charAt(j))
					{
					CountValidChars++;
					}
				}
			if(CountValidChars==0)
				{
				strError=0;
				break;
				}							
			}
		}
	checkAtRate=strEmail.indexOf("@",1);
	checkDot=strEmail.indexOf(".",1);
	for(i=1;i<countDot;i++)
		checkDot=strEmail.indexOf(".",checkDot+1);
	if(countAtRate==1 && countDot > 0 && strEmail.length >=7 && strError != 0)
		strError=1;
	else
		strError=0;
	if(checkDot>=strEmail.length-2)
		strError=0;
	if(strEmail.charAt(0)=="@" || strEmail.charAt(strEmail.length-1)=="@")
		strError=0;
	if(strEmail.charAt(0)=="." || strEmail.charAt(strEmail.length-1)==".")
		strError=0;
	if(checkDot < checkAtRate)
		strError=0;	

	return strError;
	}

