function feedvalid()
{   
   var str=document.form1.txtFrom.value
   var val=/^.+@.+\..{2,3}$/
   if (!val.test(str))
   {  
	alert("Enter Ur valid email Id");
	document.form1.txtFrom.focus();
	document.form1.txtFrom.select();
	return false;
   }
   else if ((document.form1.txtFrom.value.indexOf("@")==-1) && (document.form1.txtFrom.value.indexOf(".")==-1))
   {         
	alert("Invalid Email-Id");
        document.form1.txtFrom.focus();
	document.form1.txtFrom.select();
        return false;
   }
   else if (document.form1.txtSub.value == "")
   {      
	alert("Subject field cannot be left blank")      
	document.form1.txtSub.focus();
	document.form1.txtSub.select();
        return false;
   }
   else if (document.form1.txtBody.value == "")
   {      
	alert("Body field cannot be left blank")      
	document.form1.txtBody.focus();
	document.form1.txtBody.select();
        return false;
   }
	return true;  
}



function load()
{
  document.form1.txtFrom.focus();
}