function isFormComplete()	{
	userName = document.frmEnquiry.txUserName.value
	userEmail = document.frmEnquiry.txUserEmail.value
	comments =  document.frmEnquiry.taUserComments.value
	if(userName=="" || userEmail=="" ||  comments=="" )	{
		alert("Form not complete")
		return false
	}
	return true
}
function isEmailValid()	{
	userEmail = document.frmEnquiry.txUserEmail.value
	if(userEmail.indexOf("@") > 0 && userEmail.indexOf(".") > 0 )	{
		atCount = 0 
		dotCount = 0
		for(i=0;i<userEmail.length;i++)	{
			if(userEmail.charAt(i) == "@")	atCount = atCount+1
			else if(userEmail.charAt(i) == ".") dotCount = dotCount+1	
		}
		if(atCount < 2)	{
			for(i=userEmail.indexOf("@");i<userEmail.length;i++)	{
				if(userEmail.charAt(i) == ".")
					if(! ((userEmail.indexOf("@")+1) == i) )
						return true	
			}
		}	
	}
	alert("Invalid Email. Ex. name@domain.com")
	return false
}
function fnIsNumericPhone()	{
	txValue = document.frmEnquiry.txUserPhone.value
	if(!(txValue >= 0 && txValue <= 99999999999))	{
		alert("Invalid number")
		document.frmEnquiry.txUserPhone.value = "0"
	}
}
