var minCheckLength=3;jQuery(document).ready(function(){$("#message_modal").jqm({toTop:true})});function setCountryLoad(){if(document.forms[0].name=="contact_form"){setCountry(document.contact_form);minCheckLength=8}}function setCountry(b){var a=b.r_con_country.selectedIndex;if(a==1){$.ajax({type:"POST",url:"/countryloadusstates/detail/"+Math.round(Math.random()),success:function(c){$("#con_stateprov").html(c)}})}else{if(a==2){$.ajax({type:"POST",url:"/countryloadcaprovinces/detail/"+Math.round(Math.random()),success:function(c){$("#con_stateprov").html(c)}})}else{$("#con_stateprov").html('<div class="noSelect">(None)</div><input type="hidden" name="r_con_state" value="" />')}}}function accountProceed(){var a="form.regForm";$("#regSwap").hide(300);$.ajax({type:"POST",data:$(a).serialize(),url:"/accountproceed/detail/"+Math.round(Math.random()),success:function(b){setupDynamic(b)}})}function loadStep(e,b){var d=$("#currstep").html();var a=false;var c=$("#listep_"+b);if(d!="validate"&&d!="done"&&(c.hasClass("complete")||c.hasClass("current"))){a=true}if(a){relocate("/newaccount/detail/"+e)}else{if(d=="validate"||d=="done"){$("#dialog").html("Your account is already established.  You can make changes to your account in our Profile area, after you have validated your email and have logged in.");$("#dialog").dialog("open")}}}function startover(){if(confirm("Are you sure you wish to abandon all the information entered thus far and start over with account creation?")){relocate("/startovernewaccount")}}function panelLoad(a){$("#simple_update_val").val(a);$.ajax({type:"POST",data:$("form#simple_update").serialize(),url:"/accountproceedpanelload/detail/"+Math.round(Math.random()),success:function(b){setupDynamic(b)}})}function setupDynamic(a){$("#regSwap").html(a);$("#regSwap").show(300);execJSInDiv("regDisplayActions");setCountryLoad();$(".pass_strength").pstrength();$(".usernamecheck").liveSearch({ajaxURL:"/usernamecheck/detail/"});$(".emailcheck").liveSearch({ajaxURL:"/emailcheck/detail/"})};