<!--

function valButton(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return btn[cnt].value;
    else return null;
}


function showHideCall(showhide){

		if(showhide==1){
			document.getElementById('priceDetails').style.display = "block";
		}else{
			document.getElementById('priceDetails').style.display = "none"
		}
	}
	function isNumberKey(evt)
	  {
		 var charCode = (evt.which) ? evt.which : event.keyCode
		 if (charCode > 31 && (charCode < 48 || charCode > 57))
			return false;

		 return true;
	  }

function valid(){
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,4})+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (document.frmContact.txtFirstName.value == "")
	{
		alert("Please fill First Name.");
		document.frmContact.txtFirstName.focus();
		return false;
	}
	if (!filter.test(document.getElementById('email').value)) {
		alert('Please Fill Valid Email.');
		document.frmContact.email.focus();
		return false;
	}
	if (document.frmContact.job.value == "")
	{
		alert("Please fill Job.");
		document.frmContact.job.focus();
		return false;
	}
	if (document.frmContact.comments.value == "")
	{
		alert("Please fill comments.");
		document.frmContact.comments.focus();
		return false;
	}
	if (valButton(document.frmContact.rate_our_work) == null)
	{
		alert("Please rate our work.");
		//document.frmContact.rate_our_work.focus();
		return false;
	}
	return true;

}
//-->