	function select_phone(reff)
	{
		var reffgo = reff.value;
		document.getElementById(50).action = "Phone_Deal.asp?Ph="+ reffgo 
		document.getElementById(50).submit();
	}
	function sendmail()
	{
		var evalue = document.getElementById("emailf").value;
		if (evalue == "")
		{
			alert("Please fill ur email id!");
			document.getElementById("emailf").focus();
			return false;
		}
		if(document.getElementById("emailf").value != "")
		{
		//alert(emailcheck(document.getElementById("emailf").id));
			var emailresult = emailcheck(document.getElementById("emailf").id);
			
			if (emailresult == false)
			{
				document.getElementById("emailf").focus();
				return false;
			}
			if (emailresult != false)
			{
				document.getElementById("emailpost").value = document.getElementById("emailf").value;
				document.getElementById("frm_head").action = "email.asp?email="+ document.getElementById("emailpost").value;
				document.getElementById("frm_head").submit();
			}	
		}
	}
	function emailcheck(sumit_obj)
	{
		var str = document.getElementById(sumit_obj).value;
		var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
		if (filter.test(str))
			testresults = true;
		else
		{
			alert("Please input a valid email address");
			testresults = false;
		}
		return (testresults);
	}
