
﻿function setCountryName(objLi){$('#hdnCountryName').val($(objLi).html());}
$(function(){$('#terms').click(function(){new Boxy.load("/StaticPages/TermsConditionsData",{title:"Terms of Use",modal:true,options:{height:"500px",width:"500px"}});});});(function(){ZOOMIN.namespace("ZOOMIN.Register.Signin");var signin=ZOOMIN.Register.Signin;var common=ZOOMIN.Common;var ctrlDefaultText=signin.ctrlDefaultText;$(document).ready(function(){common.DropdownToUL("countryguid",setCountryName);$moreinfodiv=$('#moreinfo');$morelink=$('#morelink');$moreinfodiv.hide();$morelink.click(function(){$moreinfodiv.show('slow');$morelink.hide();});$('#lesslink').click(function(){$moreinfodiv.hide('slow');$morelink.show();});$('#UserPassWord').keypress(function(){var e=arguments[0]||event;return common.isSpecialKey(e);});$('#FirstName').keypress(function(){var e=arguments[0]||event;return common.isSpecialKey(e);});$('#UserName').keypress(function(){var e=arguments[0]||event;return common.IsValidUserName(e);});$('#UserName').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#UserName').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#UserPassWord').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#UserEmailId').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#FirstName').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#CallingCodes').change(function(){var selectedVal=$('#CallingCodes').val();if(selectedVal!="0"){$(".callingcodes-options").each(function(){if($(this).val()==selectedVal){$('#hdnCountryName').val($(this).attr("countryName"));$('#hdnCountryGUID').val($(this).attr("countryGuid"));$('#hdnCountryCode').val(selectedVal);}});}});window.history.forward(1);setTimeout("$('input:text:first:visible').focus()",100);});})();
﻿function setCountryName(objLi){$('#hdnCountryName').val($(objLi).html());}
$(function(){$('#terms').click(function(){new Boxy.load("/StaticPages/TermsConditionsData",{title:"Terms of Use",modal:true,options:{height:"500px",width:"500px"}});});});(function(){ZOOMIN.namespace("ZOOMIN.Register.Signin");var signin=ZOOMIN.Register.Signin;var common=ZOOMIN.Common;var ctrlDefaultText=signin.ctrlDefaultText;$(document).ready(function(){common.DropdownToUL("countryguid",setCountryName);$('#UserPassWord').keypress(function(){var e=arguments[0]||event;return common.isSpecialKey(e);});$('#FirstName').keypress(function(){var e=arguments[0]||event;return common.isSpecialKey(e);});$('#UserName').keypress(function(){var e=arguments[0]||event;return common.IsValidUserName(e);});$('#UserName').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#UserName').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#UserPassWord').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#UserEmailId').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#FirstName').keydown(function(){common.CheckEnterKeyClicked($('#btnRegister'));});$('#CallingCodes').change(function(){var selectedVal=$('#CallingCodes').val();if(selectedVal!="0"){$(".callingcodes-options").each(function(){if($(this).val()==selectedVal){$('#hdnCountryName').val($(this).attr("countryName"));$('#hdnCountryGUID').val($(this).attr("countryGuid"));$('#hdnCountryCode').val(selectedVal);}});}});$('#UserName').focus();$("#btnRegister").click(function(e){$(".form input").removeClass("validation-error");var errorHtml="";if($.trim($("#UserName").val())==''){$("#UserName").addClass("validation-error");errorHtml+="<li>Please enter your desired username</li>";}
if($.trim($("#UserEmailId").val())==''){$("#UserEmailId").addClass("validation-error");errorHtml+="<li>Please enter your email address</li>";}
if($.trim($("#UserPassWord").val())==''){$("#UserPassWord").addClass("validation-error");errorHtml+="<li>Please enter your desired password</li>";}
if(!$("#termsOfUse").attr("checked")){$("#termsOfUse").addClass("validation-error");errorHtml+="<li>Please review and accept our terms of use</li>";}
if(errorHtml!=""){$('#Error').html(errorHtml);e.preventDefault();}});});})();