function ValidateForm() { var hndFRM = document.frmUser; if(Trim(hndFRM.txtEmail.value)=='') { alert("You have not entered your e-mail address.\nPlease provide the same"); hndFRM.txtEmail.focus(); return false; } if(!checkEmail(hndFRM.txtEmail)) { alert("Your e-mail address seems invalid.\nPlease provide a valid e-mail address"); hndFRM.txtEmail.focus(); return false; } if(isBlank(hndFRM.txtFname.value)) { alert("You have not entered your first name.\nPlease provide the same"); hndFRM.txtFname.focus(); return false; } if(isBlank(hndFRM.txtLname.value)) { alert("You have not entered your last name.\nPlease provide the same"); hndFRM.txtLname.focus(); return false; } if(hndFRM.txtPhone.value !='') { if(!checkPhone(hndFRM.txtPhone.value)) { alert("Your phone number seems invalid.\nPlease provide a valid phone number"); hndFRM.txtPhone.focus(); return false; } } if(isBlank(hndFRM.txtAddress.value)) { alert("You have not entered your Address.\nPlease provide the same"); hndFRM.txtAddress.focus(); return false; } if(isBlank(hndFRM.txtCity.value)) { alert("You have not entered your city.\nPlease provide the same"); hndFRM.txtCity.focus(); return false; } if(isBlank(hndFRM.txtZip.value)) { alert("You have not entered your Zip Code.\nPlease provide the same"); hndFRM.txtZip.focus(); return false; } if(hndFRM.txtCountry.value=="") { alert("You have not selected Country .\nPlease select the same"); hndFRM.txtCountry.focus(); return false; } /*if(isBlank(hndFRM.txtWebSite.value)) { alert("You have not entered your Web Site address Code.\nPlease provide the same"); hndFRM.txtWebSite.focus(); return false; }*/ /*hndFRM.action+='?SEND=YES'; hndFRM.submit(); */ } function validateLogin() { var hndFRM = document.frmUser; if(Trim(hndFRM.txt_user_email.value)=='') { alert("You have not entered your e-mail address.\nPlease provide the same"); hndFRM.txt_user_email.focus(); return false; } if(!checkEmail(hndFRM.txt_user_email)) { alert("Your e-mail address seems invalid.\nPlease provide a valid e-mail address"); hndFRM.txt_user_email.focus(); return false; } if(isBlank(hndFRM.txt_user_pass.value)) { alert("You have not entered Password.\nPlease provide the same"); hndFRM.txt_user_pass.focus(); return false; } hndFRM.action+='?SEND=YES'; hndFRM.submit(); } function checkAvailabelity(val) { testwindow= window.open ("check_email.php?emailID="+val, "mywindow", "menubar=1,resizable=1,location=1,status=0,scrollbars=0,width=300,height=150"); testwindow.moveTo(300,190); } function chkavaility(val) { var url = 'avail_emailid.php'; var pars = 'emailID=' + val ; var myAjax = new Ajax.Request( url, { method: 'get', parameters: pars, onComplete: showResponse }); } function show_info1(val) { if(val=='other') { document.getElementById('show_info').style.display=""; document.getElementById('show_account').style.display="none"; } else { document.getElementById('show_info').style.display="none"; document.getElementById('show_account').style.display=""; } } function setDesc(val) { if(val=='Du') { document.getElementById('dispText').value=document.getElementById('languageButton').value; document.getElementById('textarea_du').style.display=""; document.getElementById('textarea_eng').style.display="none"; document.getElementById('direction_eng').style.display = "none"; document.getElementById('direction_du').style.display = ""; } if(val=='En') { document.getElementById('dispText').value=document.getElementById('languageButton').value; document.getElementById('textarea_du').style.display="none"; document.getElementById('textarea_eng').style.display=""; document.getElementById('direction_eng').style.display = ""; document.getElementById('direction_du').style.display = "none"; } }