function Validate()
{
	if(frmRemarks.txtEmail.value=="")
	{
		alert("Please enter the Email Id...");
		frmRemarks.txtEmail.focus();
		return;
	}
	else if (checkmail(frmRemarks.txtEmail.value) == false)
	{
			alert("Please enter valid Email Id...");
			frmRemarks.txtEmail.focus();
			return;
	}
	if(frmRemarks.txtRemarks.value=="")
	{
		alert("Please enter the Remaks...");
		frmRemarks.txtRemarks.focus();
		return;
	}
  	frmRemarks.submit();	
}

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function checkmail(eid)
{
	return emailfilter.test(eid)
}

function ValidateCV()
{
	if(frmCV.txtName.value=="")
	{
		alert("Please enter Name...");
		frmCV.txtName.focus();
		return;
	}
	if(frmCV.txtEmail.value=="")
	{
		alert("Please enter the Email Id...");
		frmCV.txtEmail.focus();
		return;
	}
	else if (checkmail(frmCV.txtEmail.value) == false)
	{
			alert("Please enter valid Email Id...");
			frmCV.txtEmail.focus();
			return;
	}
	if(frmCV.txtCV.value=="" && frmCV.file.value == "")
	{
		alert("Please Paste Your CV and Select file to upload....");
		frmCV.txtCV.focus();
		return;
	}
		//alert("Before Submit");
		frmCV.submit();
		//alert("After..");
}		

