function fnValidate()
{
	if (frmContact.txtName.value=="")
	{
		alert("Please enter your full name.");
		document.frmContact.txtName.focus();
		return false;  
	}
	if(frmContact.txtEmail.value != "")
	{
		if (document.frmContact.txtEmail.value.indexOf ('@') == -1 || document.frmContact.txtEmail.value.indexOf ('.') == -1)	{
			alert("Please Enter proper Email Id");
			frmContact.txtEmail.focus();
			return false;}
		else if(document.frmContact.txtEmail.value.indexOf ('@')> document.frmContact.txtEmail.value.indexOf ('.')){
			alert("Please Enter proper Email Id");
			frmContact.txtEmail.focus();
			return false;}
		else if(document.frmContact.txtEmail.value.indexOf ('@')+1 == document.frmContact.txtEmail.value.indexOf ('.')){
			alert("Please Enter proper Email Id");
			frmContact.txtEmail.focus();
			return false;}
	}
	if (frmContact.txtAddress.value=="")
	{
		alert("Please enter your address.");n
		document.frmContact.txtAddress.focus();
		return false;  
	}
	if (document.frmContact.txtPISD.value=="")
	{
		alert("Please Enter Phone number with ISD code");
		frmContact.txtPISD.focus();
		return false;
	}
	else if (document.frmContact.txtPSTD.value=="")
		{
			alert("Please Enter Phone number with STD code");
			frmContact.txtPSTD.focus();
			return false;
		}
	else if (document.frmContact.txtPNo.value=="")
		{
			alert("Please Enter proper Phone Number");
			frmContact.txtPNo.focus();
			return false;
		}
	if (frmContact.txtCity.value=="")
	{
		alert("Please enter your City.");
		document.frmContact.txtCity.focus();
		return false;  
	}
	if (frmContact.cmbCountry.value=="")
	{
		alert("Please Select your country.");
		document.frmContact.cmbCountry.focus();
		return false;  
	}
	if (frmContact.txtDescription.value=="")
	{
		alert("Please enter your Comments in the space provided below");
		document.frmContact.txtDescription.focus();
		return false;  
	}
}
function fnDiscardApostrophe(key)
{
	if ((key==39))
		return 0;
	else
		return key;
}

function fnDisallowApostrophe() 
{
	window.event.keyCode=fnDiscardApostrophe(window.event.keyCode);   	
	return true;
}

function CheckNumerals(key)
{
	if ((key<48|| key>57))
	{
		return 0;
	}	
	else
		return key;	

}

function fnCheckNumerals(){
window.event.keyCode=CheckNumerals(window.event.keyCode);   	
	return true;
}