function validate()
{
	var tmp
	tmp=document.frm.fname.value
	if(tmp=="")
	{
		alert ("Enter Name");
		document.frm.fname.focus();
		return false;
	}
	tmp=document.frm.cemail.value
	if(tmp=="") 
	{
		alert ("Enter email");
		document.frm.cemail.focus();
		return false;
	}
	if(checkEmail(tmp)==false)  
	{
		alert ("Enter valid email");
		document.frm.cemail.focus();
		return false;
	}
	tmp=document.frm.subject.value
	if(tmp=="") 
	{
		alert ("Enter subject");
		document.frm.subject.focus();
		return false;
	}
	tmp=document.frm.comment.value
	if(tmp=="")
	{
		alert ("Enter comments");
		document.frm.comment.focus();
		return false;
	}

	return true;
}