jQuery.cookie=function(H,D,A){if(typeof D!="undefined"){A=A||{};if(D===null){D="";A.expires=-1}var G="";if(A.expires&&(typeof A.expires=="number"||A.expires.toUTCString)){var B;if(typeof A.expires=="number"){B=new Date();B.setTime(B.getTime()+(A.expires*60*60*1000))}else{B=A.expires}G="; expires="+B.toUTCString()}var K=A.path?"; path="+(A.path):"";var C=A.domain?"; domain="+(A.domain):"";var I=A.secure?"; secure":"";document.cookie=[H,"=",encodeURIComponent(D),G,K,C,I].join("")}else{var F=null;if(document.cookie&&document.cookie!=""){var L=document.cookie.split(";");for(var J=0;J<L.length;J++){var E=jQuery.trim(L[J]);if(E.substring(0,H.length+1)==(H+"=")){F=decodeURIComponent(E.substring(H.length+1));break}}}return F}};
var GlobalSearchDefaultText="";var isLoggedIn=false;jQuery(document).ready(function(){jQuery("#superdrop_btn").click(function(){toggleSuperdrop()});jQuery("#global_search").focus(function(){if(jQuery("#global_search").val()==GlobalSearchDefaultText){jQuery("#global_search").val("")}});jQuery("#global_search").blur(function(){if(jQuery("#global_search").val()==""){jQuery("#global_search").val(GlobalSearchDefaultText)}});if(jQuery("#global_search").length>0){GlobalSearchDefaultText=jQuery("#global_search").val()}jQuery(".lang_select ul a").click(function(){if(jQuery("#login").is(":visible")){jQuery("#login").slideUp("fast",function(){jQuery("#langsel").slideDown("normal",function(){jQuery(".lang_select ul a").addClass("active")})})}else{if(jQuery("#langsel").is(":hidden")){jQuery("#langsel").slideDown("normal",function(){jQuery(".lang_select ul a").addClass("active")})}else{jQuery("#langsel").slideUp("normal",function(){jQuery(".lang_select ul a").removeClass("active")})}}});jQuery("#langsel").mouseenter(function(){if(typeof(lt)!="undefined"){clearTimeout(lt)}});jQuery(".lang_select ul a").mouseleave(function(){lt=setTimeout("closeSelector()",1500)});jQuery(".lang_select ul a").mouseenter(function(){if(typeof(lt)!="undefined"){clearTimeout(lt)}});jQuery("#langsel").mouseleave(function(){lt=setTimeout("closeSelector()",1500)});var B=jQuery("#global_select").width();jQuery("#global_select").sSelect();jQuery(".newListSelected").css({width:B+10+"px"});jQuery(".newList").css({width:B+10+"px",top:"25px"});var A=jQuery(".g_search_select").width()+200;jQuery(".globalsearch .rel").css({width:A+"px",margin:"auto",visibility:"visible"});jQuery(".newList").mouseleave(function(){selecttimer=setTimeout("closeSelect()",1500)});jQuery(".newList").mouseenter(function(){if(typeof(selecttimer)!="undefined"){clearTimeout(selecttimer)}})});function resolveLoginState(){if(isLoggedIn==false){jQuery("#login_btn").click(function(){if(jQuery("#langsel").is(":visible")){jQuery("#langsel").slideUp("fast",function(){jQuery("#login").slideDown("normal",function(){jQuery("#login_btn").addClass("active");jQuery("#txtemail").focus()})})}else{if(jQuery("#login").is(":hidden")){jQuery("#login").slideDown("normal",function(){jQuery("#login_btn").addClass("active");jQuery("#txtemail").focus()})}else{jQuery("#login").slideUp("normal",function(){jQuery("#login_btn").removeClass("active")})}}});jQuery("#login").mouseenter(function(){if(typeof(lgt)!="undefined"){clearTimeout(lgt)}});var A=function(){lgt=setTimeout("closeLogin()",1500)};jQuery("#login").bind("mouseleave",A);jQuery("#login_btn").mouseenter(function(){if(typeof(lgt)!="undefined"){clearTimeout(lgt)}});jQuery("#login_form #txtemail").focus(function(){jQuery("#login").unbind("mouseleave",A)});jQuery("#login_form #txtemail").blur(function(){jQuery("#login").bind("mouseleave",A)});jQuery("#login_form #txtpwd").focus(function(){jQuery("#login").unbind("mouseleave",A)});jQuery("#login_form #txtpwd").blur(function(){jQuery("#login").bind("mouseleave",A)})}}function closeSelector(){jQuery("#langsel").slideUp("normal",function(){jQuery(".lang_select ul a").removeClass("active");clearTimeout(lt)})}function closeLogin(){jQuery("#login").slideUp("normal",function(){jQuery("#login_btn").removeClass("active");clearTimeout(lgt)})}function toggleSuperdrop(){if(jQuery(".globaldrop").is(":hidden")){jQuery(".globaldrop").slideDown("slow",function(){jQuery("#superdrop_btn").addClass("active")})}else{jQuery(".globaldrop").slideUp("slow",function(){jQuery("#superdrop_btn").removeClass("active")})}}function closeSelect(){if(typeof(selecttimer)!="undefined"){clearTimeout(selecttimer)}jQuery(".newList").hide()}function selectReplacement(G){G.className+=" replaced";var F=document.createElement("ul");F.className="selectReplacement";var A=G.options;for(var E=0;E<A.length;E++){var C;if(A[E].selected){C=E;break}else{C=0}}for(var E=0;E<A.length;E++){var D=document.createElement("li");var B=document.createTextNode(A[E].text);D.appendChild(B);D.selIndex=A[E].index;D.selectID=G.id;D.onclick=function(){selectMe(this)};if(E==C){D.className="selected";D.onclick=function(){this.parentNode.className+=" selectOpen";this.onclick=function(){selectMe(this)}}}if(window.attachEvent){D.onmouseover=function(){this.className+=" hover"};D.onmouseout=function(){this.className=this.className.replace(new RegExp(" hover\\b"),"")}}F.appendChild(D)}G.parentNode.insertBefore(F,G)}function selectMe(C){var B=C.parentNode.getElementsByTagName("li");for(var A=0;A<B.length;A++){if(B[A]!=C){B[A].className="";B[A].onclick=function(){selectMe(this)}}else{setVal(C.selectID,C.selIndex);C.className="selected";C.parentNode.className=C.parentNode.className.replace(new RegExp(" selectOpen\\b"),"");C.onclick=function(){C.parentNode.className+=" selectOpen";this.onclick=function(){selectMe(this)}}}}}function setVal(B,A){var C=document.getElementById(B);C.selectedIndex=A}function setForm(B){var A=document.getElementById(B);selectReplacement(A)}function executeFunctionOnEnter(B,C){B=B||window.event;var A=B.keyCode||B.which;if(A==13){C();return false}else{return true}};
(function(A){A("html").addClass("stylish-select");Array.prototype.indexOf=function(C,D){for(var B=(D||0);B<this.length;B++){if(this[B]==C){return B}}};A.fn.extend({getSetSSValue:function(B){if(B){A(this).val(B).change();return this}else{return A(this).find(":selected").val()}},resetSS:function(){var B=A(this).data("ssOpts");$this=A(this);$this.next().remove();$this.unbind().sSelect(B)}});A.fn.sSelect=function(B){return this.each(function(){var N={defaultText:"Please select",animationSpeed:0,ddMaxHeight:""};var Q=A.extend(N,B),W=A(this),O=A('<div class="selectedTxt"></div>'),G=A('<div class="newListSelected" tabindex="0"></div>'),D=A('<ul class="newList"></ul>'),I=-1,V=-1,R=[],L=false,K=false,Z;A(this).data("ssOpts",B);G.insertAfter(W);O.prependTo(G);D.appendTo(G);W.hide();if(W.children("optgroup").length==0){W.children().each(function(b){var c=A(this).text();var a=A(this).val();R.push(c.charAt(0).toLowerCase());if(A(this).attr("selected")==true){Q.defaultText=c;V=b}D.append(A("<li value="+a+'><a href="JavaScript:void(0);" >'+c+"</a></li>").data("key",a))});Z=D.children().children()}else{W.children("optgroup").each(function(){var a=A(this).attr("label"),c=A('<li class="newListOptionTitle">'+a+"</li>");c.appendTo(D);var b=A("<ul></ul>");b.appendTo(c);A(this).children().each(function(){++I;var e=A(this).text();var d=A(this).val();R.push(e.charAt(0).toLowerCase());if(A(this).attr("selected")==true){Q.defaultText=e;V=I}b.append(A('<li><a href="JavaScript:void(0);">'+e+"</a></li>").data("key",d))})});Z=D.find("ul li a")}var T=D.height(),S=G.height(),C=Z.length;if(V!=-1){M(V,true)}else{O.text(Q.defaultText)}function E(){var b=G.offset().top,a=jQuery(window).height(),c=jQuery(window).scrollTop();if(T>parseInt(Q.ddMaxHeight)){T=parseInt(Q.ddMaxHeight)}b=b-c;if(b+T>=a){D.css({top:"-"+T+"px",height:T});W.onTop=true}else{D.css({top:S+"px",height:T});W.onTop=false}}E();A(window).resize(function(){E()});A(window).scroll(function(){E()});function H(){G.css("position","relative")}function U(){G.css("position","static")}O.click(function(a){a.stopPropagation();A(".newList").not(A(this).next()).hide().parent().removeClass("newListSelFocus");D.toggle();H();Z.eq(V).focus()});Z.click(function(b){var a=A(b.target);V=Z.index(a);K=true;M(V);D.hide();G.css("position","static")});Z.hover(function(b){var a=A(b.target);a.addClass("newListHover")},function(b){var a=A(b.target);a.removeClass("newListHover")});function M(a,d){Z.removeClass("hiLite").eq(a).addClass("hiLite");if(D.is(":visible")){Z.eq(a).focus()}var c=Z.eq(a).text();var b=Z.eq(a).parent().data("key");if(d==true){W.val(b);O.text(c);return false}W.val(b);W.change();O.text(c)}W.change(function(a){$targetInput=A(a.target);if(K==true){K=false;return false}$currentOpt=$targetInput.find(":selected");V=$targetInput.find("option").index($currentOpt);M(V,true)});function F(a){a.onkeydown=function(d){var c;if(d==null){c=event.keyCode}else{c=d.which}K=true;switch(c){case 40:case 39:J();return false;break;case 38:case 37:P();return false;break;case 33:case 36:Y();return false;break;case 34:case 35:X();return false;break;case 13:case 27:D.hide();U();return false;break}keyPressed=String.fromCharCode(c).toLowerCase();var b=R.indexOf(keyPressed);if(typeof b!="undefined"){++V;V=R.indexOf(keyPressed,V);if(V==-1||V==null||L!=keyPressed){V=R.indexOf(keyPressed)}M(V);L=keyPressed;return false}}}function J(){if(V<(C-1)){++V;M(V)}}function P(){if(V>0){--V;M(V)}}function Y(){V=0;M(V)}function X(){V=C-1;M(V)}G.click(function(){F(this)});G.focus(function(){A(this).addClass("newListSelFocus");F(this)});G.blur(function(){A(this).removeClass("newListSelFocus")});A("body").click(function(){G.removeClass("newListSelFocus");D.hide();U()});O.hover(function(b){var a=A(b.target);a.parent().addClass("newListSelHover")},function(b){var a=A(b.target);a.parent().removeClass("newListSelHover")});D.css("left","0").hide()})}})(jQuery);
function v8(){this.label_array=new Array();this.test_array=new Array();this.custommessage_array=new Array();this.name_array=new Array();this.message_array=new Array();this.invalid_label_array=new Array()}v8.prototype.message_obj=new Object();v8.prototype.message_obj.intro="The following fields are incomplete or incorrect:";v8.prototype.message_obj.outro="Please correct and resubmit form.";v8.prototype.message_obj.notfound="{field} was not found";v8.prototype.message_obj.invalid="{field} is invalid";v8.prototype.message_obj.required="{field} is required";v8.prototype.message_obj.email="{field} must be a valid email address";v8.prototype.message_obj.url="{field} must be a valid url";v8.prototype.message_obj.number="{field} must be a number";v8.prototype.message_obj.number_fix="{field} must be a number equal to {minimum}";v8.prototype.message_obj.number_min="{field} must be a number greater than or equal to {minimum}";v8.prototype.message_obj.number_max="{field} must be a number less than or equal to {maximum}";v8.prototype.message_obj.number_minandmax="{field} must be a number between {minimum} and {maximum}";v8.prototype.message_obj.string="{field} must be a greater than or equal to {minimum} characters";v8.prototype.message_obj.string_fix="{field} must be a equal to {minimum} characters";v8.prototype.message_obj.string_min="{field} must be a greater than or equal to {minimum} characters";v8.prototype.message_obj.string_max="{field} must be a less than or equal to {maximum} characters";v8.prototype.message_obj.string_minandmax="{field} must be a between {minimum} and {maximum} characters";v8.prototype.message_obj.datetime="{field} must be a valid date/time";v8.prototype.message_obj.date="{field} must be a valid date";v8.prototype.message_obj.time="{field} must be a valid time";v8.prototype.message_obj.allow="{field} contains invalid characters";v8.prototype.message_obj.deny="{field} contains invalid characters";v8.prototype.message_obj.mask="{field} is not in the correct format";v8.prototype.message_obj.guid="{field} is not in the correct format";v8.prototype.message_obj.compare_equal="{field} must be equal to {field2}";v8.prototype.message_obj.compare_notequal="{field} must not be equal to {field2}";v8.prototype.setlabel=function(C,A){var B=new Object();B.name=C;B.label=A;this.label_array.push(B)};v8.prototype.setmessage=function(D,C,B){var A=new Object();A.name=D;A.test=C;A.message=B;switch(A.test){case"r":case"required":case"req":A.test="required";break;case"email":case"emailaddress":A.test="email";break;case"guid":case"uniqueidentifier":A.test="guid";break}this.custommessage_array.push(A)};v8.prototype.addtest=function(E,D){var A="";for(var C=0;C<this.label_array.length;C++){if(this.label_array[C].name==E){A=this.label_array[C].label;break}}if(A==""){A=E}var B=new Object();B.name=E;B.test=D.toLowerCase();B.label=A;B.data=new Array();B.data[0]=(arguments.length<2)?"":arguments[2];B.data[1]=(arguments.length<3)?"":arguments[3];B.testmessage=B.test;switch(B.test){case"r":case"required":case"req":B.test="required";B.testmessage=B.test;break;case"email":case"emailaddress":B.test="email";B.testmessage=B.test;break;case"guid":case"uniqueidentifier":B.test="guid";B.testmessage=B.test;break;case"compare":if(B.data[0]!=""&&B.data[1]!=""){B.testmessage+="_"+B.data[1]}break;case"date":case"time":B.test="datetime";break;case"number":case"string":if(B.data[0]!=""&&B.data[1]!=""){if(B.data[0]==B.data[1]){B.testmessage+="_fix"}else{B.testmessage+="_minandmax"}}else{if(B.data[0]!=""&&B.data[1]==""){B.testmessage+="_min"}else{if(B.data[0]==""&&B.data[1]!=""){B.testmessage+="_max"}}}break}this.test_array.push(B)};v8.prototype.setIntro=function(A){this.message_obj.intro=A};v8.prototype.setOutro=function(A){this.message_obj.outro=A};v8.prototype.test=function(){this.name_array=new Array();this.message_array=new Array();for(var C=0;C<this.test_array.length;C++){this.highlight(this.test_array[C].name,false);this.trimvalue(this.test_array[C].name);var A=this.getvalue(this.test_array[C].name);switch(this.test_array[C].test){case"required":if(A==""){this.invalid(this.test_array[C])}break;case"email":if(!this.validate_emailaddress(A)){this.invalid(this.test_array[C])}break;case"url":if(!this.validate_url(A)){this.invalid(this.test_array[C])}break;case"datetime":if(!this.validate_datetime(A)){this.invalid(this.test_array[C])}break;case"guid":if(!this.validate_guid(A)){this.invalid(this.test_array[C])}break;case"number":if(!this.validate_number(A,this.test_array[C].data[0],this.test_array[C].data[1])){this.invalid(this.test_array[C])}break;case"string":if(!this.validate_string(A,this.test_array[C].data[0],this.test_array[C].data[1])){this.invalid(this.test_array[C])}break;case"allow":if(!this.validate_charactercheck(A,this.test_array[C].data[0],"")){this.invalid(this.test_array[C])}break;case"deny":if(!this.validate_charactercheck(A,"",this.test_array[C].data[0])){this.invalid(this.test_array[C])}break;case"mask":if(!this.validate_mask(A,this.test_array[C].data[0])){this.invalid(this.test_array[C])}break;case"compare":var B=this.getvalue(this.test_array[C].data[0]);this.test_array[C].label2=this.test_array[C].data[0];for(var D=0;D<this.label_array.length;D++){if(this.label_array[D].name==this.test_array[C].data[0]){this.test_array[C].label2=this.label_array[D].label;break}}if(!this.validate_compare(A,B,this.test_array[C].data[1])){this.invalid(this.test_array[C])}break;case"custom":this.invalid(this.test_array[C])}}};v8.prototype.alert=function(A,D){var B=document.getElementById(A);var E=document.getElementById(D);if(this.name_array.length>0){window.scroll(0,0);this.focusto(this.name_array[0]);for(var C=0;C<this.name_array.length;C++){this.highlight(this.name_array[C],true)}if(B&&E){E.innerHTML="<p>"+this.message_obj.intro+"</p><ul><li>"+this.message_array.join("</li><li>")+"</li></ul><p>"+this.message_obj.outro+"</p>";B.style.display=""}else{alert(this.message_obj.intro+"\r\n"+this.message_array.join("\r\n")+"\r\n\r\n"+this.message_obj.outro)}}else{if(B){B.style.display="none"}}};v8.prototype.alertHalfRow=function(A,D){var B=document.getElementById(A);var E=document.getElementById(D);if(this.name_array.length>0){window.scroll(0,0);this.focusto(this.name_array[0]);this.getinvalidlabels();for(var C=0;C<this.invalid_label_array.length;C++){this.highlightHalfRow(this.invalid_label_array[C],true)}if(B&&E){E.innerHTML="<p>"+this.message_obj.intro+"</p><ul><li>"+this.message_array.join("</li><li>")+"</li></ul><p>"+this.message_obj.outro+"</p>";B.style.display=""}else{alert(this.message_obj.intro+"\r\n"+this.message_array.join("\r\n")+"\r\n\r\n"+this.message_obj.outro)}}else{if(B){B.style.display="none"}}};v8.prototype.valid=function(){return(this.name_array==0)};v8.prototype.invalid=function(C){for(var B=0;B<this.name_array.length;B++){if(this.name_array[B]==C.name){return}}this.name_array.push(C.name);var A=this.message_obj.invalid;if(this.message_obj[C.testmessage]){A=this.message_obj[C.testmessage]}for(var B=0;B<this.custommessage_array.length;B++){if(this.custommessage_array[B].name==C.name&&this.custommessage_array[B].test==C.test){A=this.custommessage_array[B].message}}A=A.replace("{field}",C.label);if(C.label2){A=A.replace("{field2}",C.label2)}A=A.replace("{minimum}",C.data[0]);A=A.replace("{maximum}",C.data[1]);this.message_array.push(A)};v8.prototype.getfield=function(D){for(var B=0;B<document.forms.length;B++){for(var C=0;C<document.forms[B].length;C++){var A=document.forms[B][C];if(A.name==D){return A}}}};v8.prototype.getfieldarray=function(E){var B=new Array();for(var C=0;C<document.forms.length;C++){for(var D=0;D<document.forms[C].length;D++){var A=document.forms[C][D];if(A.name==E){B.push(A)}}}return B};v8.prototype.getvalue=function(D){var A=this.getfield(D);if(!A){return""}switch(A.type){case"text":case"password":case"file":case"hidden":case"textarea":return A.value;case"select-one":return A.options[A.selectedIndex].value;case"select-multiple":var B=new Array();var A=A.options;for(var C=0;C<A.length;C++){if(A[C].selected){B.push(A[C].value)}}return B.join(",");case"radio":case"checkbox":var B=new Array();var A=this.getfieldarray(D);for(var C=0;C<A.length;C++){if(A[C].checked){B.push(A[C].value)}}return B.join(",")}return""};v8.prototype.trimvalue=function(B){var A=this.getfield(B);if(!A){return""}switch(A.type){case"text":case"password":case"file":case"hidden":case"textarea":A.value=trim(A.value)}};v8.prototype.highlight=function(E,A){var B=this.getfield(E);if(!B){return}try{for(var C=0;C<20;C++){if(B.nodeName=="DIV"&&B.className.indexOf("row")>-1){if(A){B.className+=" v8"}else{B.className=B.className.replace("v8","")}break}B=B.parentNode}}catch(D){}};v8.prototype.highlightHalfRow=function(B,A){try{for(var C=0;C<20;C++){if(B.nodeName=="DIV"&&B.className.indexOf("half_row")>-1){if(A){B.className+=" v8"}else{B.className=B.className.replace("v8","")}break}B=B.parentNode}}catch(D){}};v8.prototype.getinvalidlabels=function(){var C=document.getElementsByTagName("label"),B;for(B=0;B<C.length;B++){for(j=0;j<this.name_array.length;j++){var A=this.getfield(this.name_array[j]);if(C[B].htmlFor==A.id){this.invalid_label_array.push(C[B]);break}}}};v8.prototype.removeLabelsHighlight=function(){var B=document.getElementsByTagName("label"),A;for(A=0;A<B.length;A++){this.highlightHalfRow(B[A],false)}};v8.prototype.focusto=function(C){var A=this.getfield(C);if(!A){return}if(A.type=="hidden"){var A=this.getfield(C+"d");if(!A||A.type=="hidden"){return}}try{A.focus()}catch(B){}};v8.prototype.validate_datetime=function(A){var B=new Date(A);if(isNaN(B)){return false}return true};v8.prototype.validate_string=function(A,C,B){if(C!=""&&A.length<C){return false}else{if(B!=""&&A.length>B){return false}}return true};function trim(A){return A.replace(/^\s+|\s+$/g,"")}v8.prototype.validate_number=function(A,C,B){if(!isNumber(A)){return false}A=Math.floor(A);if(isNumber(C)&&A<Math.floor(C)){return false}else{if(B!=""&&A>Math.floor(B)){return false}}return true};v8.prototype.validate_guid=function(A){return true};v8.prototype.validate_charactercheck=function(A,C,D){if(C.length>0){for(var B=0;B<A.length;B++){if(C.indexOf(A.charAt(B))==-1){return false}}}for(var B=0;B<D.length;B++){if(A.indexOf(D.charAt(B))!=-1){return false}}return true};v8.prototype.validate_emailaddress=function(A){if(A.length==0){return true}if(A.indexOf("@")==-1||A.indexOf("@")==A.length-1||A.indexOf("@")!=A.lastIndexOf("@")||A.indexOf("@")>A.lastIndexOf(".")){return false}if(A.indexOf(".")==0||A.indexOf(".")==A.length-1||A.indexOf("..")!=-1||A.indexOf("@.")!=-1||A.indexOf(".@")!=-1){return false}return true};v8.prototype.validate_url=function(A){if(A.substr(0,7)!="http://"&&A.substr(0,8)!="https://"&&A.substr(0,6)!="ftp://"){return false}return true};v8.prototype.validate_mask=function(A,B){if(REFindNoCase(B,A,1,false)==1){return true}return false};v8.prototype.validate_compare=function(A,B,C){switch(C){case"equal":if(A!=B){return false}break;case"notequal":if(A==B){return false}break}return true};function isNumber(A){var B=String(A);return((B.length>0)&&!isNaN(Math.floor(B)))};
function checkregister(){var A=new v8();A.setlabel("first_name","First Name");A.setlabel("last_name","Last Name");A.setlabel("email_address","Email");A.setlabel("email_confirm","Email Confirm");A.setlabel("dob_D","Date of Birth Day");A.setlabel("dob_M","Date of Birth Month");A.setlabel("dob_Y","Date of Birth Year");A.setlabel("country","Country");A.setlabel("gender","Gender");A.setlabel("password1","Password");A.setlabel("password_confirm","Password Confirm");A.setlabel("accept_terms","Terms");A.setIntro(incorrectText);A.setOutro(pleaseCorrectText);A.setmessage("accept_terms","required",agreeTermsText);A.setmessage("email_confirm","compare",emailsMustMatchText);A.setmessage("password_confirm","compare",passworsMustMatchText);A.setmessage("first_name","required",firstNameRequiredText);A.setmessage("last_name","required",lastNameRequiredText);A.setmessage("email_address","required",emailRequiredText);A.setmessage("email_confirm","required",emailConfirmRequiredText);A.setmessage("country","required",countryRequiredText);A.setmessage("gender","required",genderRequiredText);A.setmessage("password1","required",passwordRequiredText);A.setmessage("password_confirm","required",passwordConfirmRequiredText);A.setmessage("email_address","email",invalidEmailAddressText);A.addtest("first_name","required");A.addtest("last_name","required");A.addtest("email_address","required");A.addtest("email_address","email");A.addtest("email","string","0","200");A.addtest("email_confirm","required");A.addtest("email_confirm","email");A.addtest("email_confirm","string","0","200");A.addtest("email_confirm","compare","email_address","equal");A.addtest("dob_D","required");A.addtest("dob_M","required");A.addtest("dob_Y","required");A.addtest("country","required");A.addtest("gender","required");A.addtest("password1","required");A.addtest("password_confirm","required");A.addtest("password_confirm","compare","password1","equal");A.addtest("accept_terms","required");A.test();A.alert("alert","alerttext");return A.valid()}function checklogin(){var A=new v8();A.setlabel("emailLogin","Email");A.setlabel("passwordLogin","Password");A.setmessage("emailLogin","required",loginEmailRequiredText);A.setmessage("emailLogin","email",loginInvalidEmailAddressText);A.setmessage("passwordLogin","required",loginPasswordRequiredText);A.addtest("emailLogin","required");A.addtest("passwordLogin","required");A.addtest("emailLogin","email");A.addtest("emailLogin","string","0","200");A.test();A.alert("alertLogin","alerttextLogin");return A.valid()}function checkSendQuizEmail(){var A=new v8();A.setlabel("yourname","Your Name");A.setlabel("friendname","Friend Name");A.setlabel("email","Email");A.setlabel("friendemail","Friend Email");A.setmessage("yourname","required",quizNameRequiredText);A.setmessage("friendname","required",quizFriendNameRequiredText);A.setmessage("email","required",quizEmailRequiredText);A.setmessage("email","email",quizInvalidEmailAddressText);A.setmessage("friendemail","required",quizFriendEmailRequiredText);A.setmessage("friendemail","email",quizInvalidFriendEmailAddressText);A.addtest("yourname","required");A.addtest("friendname","required");A.addtest("email","required");A.addtest("email","email");A.addtest("friendemail","required");A.addtest("friendemail","email");A.removeLabelsHighlight();A.test();A.alertHalfRow("alertSendEmail","alerttextSendEmail");return A.valid()};
