
function checkvalid()
{

	if (Trim(document.frmfrm.txtfirstname.value) == "")
	{
		alert ("Please Enter First Name");
		document.frmfrm.txtfirstname.focus();
		return false;
	}
	
	if (Trim(document.frmfrm.txtemail.value) == "")
	{
		alert ("Please Enter valid Email Address");
		document.frmfrm.txtemail.focus();
		return false;
	}
	if (!isEmail(document.frmfrm.txtemail.value))
	{
		alert ("Please Enter Proper Email");
		document.frmfrm.txtemail.focus();
		return false;
	}
	if (Trim(document.frmfrm.txtemail.value) != Trim(document.frmfrm.txtagainemail.value))
	{
		alert ("Both email adderss should be same");
		document.frmfrm.txtagainemail.focus();
		return false;
	}
	if (Trim(document.frmfrm.txtcomment.value) == "")
	{
		alert ("Please Enter Comment");
		document.frmfrm.txtcomment.focus();
		return false;
	}

	return true;
}


