 function FormValidation() {
            var mobile=window.document.getElementById('txtCellPhone'); 
            var phone=window.document.getElementById('txtPhoneNo');
            var chkTerms =window.document.getElementById('chkTermAndCondition');
            
            if(chkTerms.checked==false)
            {alert('Please Accept Terms and Conditions.'); return false;}
            if(mobile.value=="" && phone.value=="")
            {alert('Out of two Contact Numbers, one is Compulsory.'); return false;}
			var oForm = window.document.forms[0];
			return (ValidateForm(oForm));
			return false;
		}

function hidetip(){
dropmenuobj=document.getElementById("hintbox_p");
dropmenuobj.style.visibility="hidden";
dropmenuobj.style.left="-500px";
if(this.getAttribute("onblur1")){eval(this.getAttribute("onblur1"));}
}

function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox_p")
document.body.appendChild(divblock)
}

function GetAllData()
{
    if(IsValidCtrl("ddlState")){ SaveData("ddlState", "hdStateCity"); }else{ SaveDataText("txtState", "hdStateCity"); }
    if(IsValidCtrl("ddlCity")){ SaveData("ddlCity", "hdStateCity", false, true); }else{ SaveDataText("txtCity", "hdStateCity", false, true); }
    return true;
}
function ShowHide(valStatus){var divv = document.getElementById("DivOpt");if(valStatus){ if( divv.getAttribute("Container") != null ) divv.innerHTML = divv.getAttribute("Container"); }else{ if( divv.getAttribute("Container") == null ) divv.setAttribute("Container", divv.innerHTML); divv.innerHTML = ""; }}

function CheckValueForHD(srcID){ShowHide(document.getElementById(srcID).options[document.getElementById(srcID).selectedIndex].text == "Dr.");}

		
		
		
		
//function ShowHide(valStatus){var divv = document.getElementById("DivOpt");if(valStatus){ if( divv.getAttribute("Container") != null ) divv.innerHTML = divv.getAttribute("Container"); }else{ if( divv.getAttribute("Container") == null ) divv.setAttribute("Container", divv.innerHTML); divv.innerHTML = ""; }}
//function CheckValueForHD(srcID){ShowHide(document.getElementById(srcID).options[document.getElementById(srcID).selectedIndex].text == "Dr.");}
//function FormValidation() {var oForm = window.document.forms[0];var oElement = window.document.getElementById("txtLoginId");
//if(oElement.value == "") {alert("You Forgot to fill in Login Id field.");return false;}
//if(document.getElementById("password").value == "") {alert("Oops! You forgot to fill in Password.");return false;}
//if(oElement.value.length < 3) {alert("Login Id is too short. It must contain atleast 3 characters.");return false;}
//if(document.getElementById("password").value != document.getElementById("txtCPassword").value) {alert("Password and confirm password field do not match.");document.getElementById("txtPassword").select(0, document.getElementById("txtPassword").value.length);
//document.getElementById("txtCPassword").value = "";return false;}
//if(document.getElementById("txtLastName").value == "" ) {if(document.getElementById("txtFirstName").value == "" ) {alert("Oops! You forgot to fill in first name.");return false;}
//alert("Oops! You forgot to fill in last name.");return false;}else {return (ValidateForm(oForm));}return false;}
//function FormValidation1() {var oElement = window.document.getElementById("txtLoginId");var ni = window.document.getElementById('SpanAvailabilityBlock');ni.innerHTML = "";
//if(IsEmpty(Trim(oElement.value))) {alert("You forgot to fill in the 'Login ID' field.\nPlease fill in to check for 'Avaibality'.");oElement.focus();return false;}
//return Validate("LOGIN",oElement,"The Login Id choosen by you contains special characters.\nHint: Only dot(.) and underscore(_) are accepted.") ;}	
//function clickButton(e, buttonid) { var bt = window.document.getElementById(buttonid); if (bt){ if(navigator.appName.indexOf("Netscape")>(-1)){ if (e.keyCode == 13){ bt.click(); return false; } } 
//if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ if (event.keyCode == 13){ bt.click(); return false; } } } } 
//function GetAllData(){if( IsValidCtrl("ddlCity") ){SaveData("ddlCity", "hdCity");}else{SaveDataText("txtCity", "hdCity");}return true;}


//function kH(e) {var pK = e ? e.which : window.event.keyCode;return pK != 13;}
//document.onkeypress = kH;
//if (document.layers) document.captureEvents(Event.KEYPRESS);
//		
  
