function emailCheck(n){var i='[^\\s\\(\\)<>@,;:\\\\\\"\\.\\[\\]]+',o="("+i+'|("[^"]*"))',c=new RegExp("^"+o+"(\\."+o+")*$"),l=new RegExp("^"+i+"(\\."+i+")*$"),f=n.match(/^(.+)@(.+)$/),s,r,e,u,h,y;if(f==null||(s=f[1],r=f[2],s.match(c)==null))return!1;if(e=r.match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/),e!=null){for(u=1;u<=4;u++)if(e[u]>255)return!1;return!0}if(h=r.match(l),h==null)return!1;var a=new RegExp(i,"g"),t=r.match(a),v=t.length;return t[t.length-1].length<2||t[t.length-1].length>3?!1:v<2?(y="This address is missing a hostname!",!1):!0}function LeavePage(n){var t=confirm("Are you sure you want to continue?\n\nClick OK to confirm. Any unsaved changes you have made will be lost.");t&&(document.location.href=n)}function ResetRegistrationRegion(){document.frmReg.StateAbbr.selectedIndex=0;document.frmReg.StateAbbr.options[0].selected=!0;document.frmReg.MemberRegionID.selectedIndex=0;document.frmReg.MemberRegionID.options[0].selected=!0;document.frmReg.MemberRegionID.disabled=!0}function ValidateURL(n){learnRegExp(n==!1)&&alert("Invalid website address")}function learnRegExp(n){return n.match(/^(ht|f)tps?:\/\/[a-z0-9-\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?$/)}function ResetState(){document.frmReg.CountryID.selectedIndex=0;document.frmReg.CountryID.options[0].selected=!0;document.frmReg.StateID.selectedIndex=0;document.frmReg.StateID.options[0].selected=!0;document.frmReg.StateID.disabled=!0}function OnBlurEmailValidate(){var n=0;document.frmProfile.PrEmail.value==""&&(alert("Please enter your email address."),document.frmProfile.PrEmail.focus(),n=n+1);n==0&&echeck(document.frmProfile.PrEmail.value)==!1&&(alert("Invalid email address"),document.frmProfile.PrEmail.focus(),n=n+1)}function validateContact(){var n=0;document.frmEmail.Email.value==""&&(alert("Please enter your email address."),document.frmEmail.Email.focus(),n=n+1);n==0&&echeck(document.frmEmail.Email.value)==!1&&(alert("Invalid email address"),document.frmEmail.Email.focus(),n=n+1);n==0&&document.frmEmail.FirstName.value==""&&(alert("Please enter your first name."),document.frmEmail.FirstName.focus(),n=n+1);n==0&&document.frmEmail.LastName.value==""&&(alert("Please enter your last name."),document.frmEmail.LastName.focus(),n=n+1);n==0&&document.frmEmail.Subject.value==""&&(alert("Please enter the subject."),document.frmEmail.Subject.focus(),n=n+1);n==0&&document.frmEmail.EmailBody.value==""&&(alert("Please describe the problem you encountered."),document.frmEmail.EmailBody.focus(),n=n+1);n==0&&document.frmEmail.submit()}function validateProblem(){var n=0;document.frmEmailProblems.Email.value==""&&(alert("Please enter your email address."),document.frmEmailProblems.Email.focus(),n=n+1);n==0&&echeck(document.frmEmailProblems.Email.value)==!1&&(alert("Invalid email address"),document.frmEmailProblems.Email.focus(),n=n+1);n==0&&document.frmEmailProblems.FirstName.value==""&&(alert("Please enter your first name."),document.frmEmailProblems.FirstName.focus(),n=n+1);n==0&&document.frmEmailProblems.LastName.value==""&&(alert("Please enter your last name."),document.frmEmailProblems.LastName.focus(),n=n+1);n==0&&document.frmEmailProblems.Subject.value==""&&(alert("Please enter the subject."),document.frmEmailProblems.Subject.focus(),n=n+1);n==0&&document.frmEmailProblems.EmailBody.value==""&&(alert("Please describe the problem you encountered."),document.frmEmailProblems.EmailBody.focus(),n=n+1);n==0&&document.frmEmailProblems.submit()}function NewUserValidate(){var n=0,t=document.frmReg.agreecheck.checked;document.frmReg.Email.value==""&&(alert("Please enter your email address."),document.frmReg.Email.focus(),n=n+1);n==0&&echeck(document.frmReg.Email.value)==!1&&(alert("Invalid email address"),document.frmReg.Email.focus(),n=n+1);n==0&&document.frmReg.Email.value!=document.frmReg.Email2.value&&(alert("Entered emails do not match."),document.frmReg.Email.focus(),n=n+1);n==0&&document.frmReg.CountryID.value==""&&(alert("Please select the country."),document.frmReg.CountryID.focus(),n=n+1);n==0&&document.frmReg.FirstName.value==""&&(alert("Please enter your first name."),document.frmReg.FirstName.focus(),n=n+1);n==0&&document.frmReg.LastName.value==""&&(alert("Please enter your lastname."),document.frmReg.LastName.focus(),n=n+1);n==0&&document.frmReg.City.value==""&&(alert("Please enter the city."),document.frmReg.City.focus(),n=n+1);n==0&&document.frmReg.StateID.value==""&&(alert("Please select the state."),document.frmReg.StateID.focus(),n=n+1);n==0&&document.frmReg.Zip.value==""&&(alert("Please enter the ZIP code."),document.frmReg.Zip.focus(),n=n+1);n==0&&document.frmReg.Zip.value.length!=5&&(alert("The ZIP code should contain 5 digits."),document.frmReg.Zip.focus(),n=n+1);n==0&&IsNumeric(document.frmReg.Zip.value)==!1&&(alert("The ZIP code should only contain numbers."),document.frmReg.Zip.focus(),n=n+1);n==0&&document.frmReg.tbPhone1a.value==""&&(alert("Please enter a telephone number."),document.frmReg.tbPhone1a.focus(),n=n+1);n==0&&(document.frmReg.tbPhone1a.value!=""||document.frmReg.tbPhone1b.value!=""||document.frmReg.tbPhone1c.value!="")&&(n==0&&document.frmReg.tbPhone1a.value==""&&(alert("Please enter the complete telephone number."),document.frmReg.tbPhone1a.focus(),n=n+1),n==0&&document.frmReg.tbPhone1b.value==""&&(alert("Please enter the complete telephone number."),document.frmReg.tbPhone1b.focus(),n=n+1),n==0&&document.frmReg.tbPhone1c.value==""&&(alert("Please enter the complete telephone number."),document.frmReg.tbPhone1c.focus(),n=n+1),n==0&&document.frmReg.ddPhone1Type.value==""&&(alert("Please select the type of phone."),document.frmReg.ddPhone1Type.focus(),n=n+1));n==0&&(document.frmReg.tbPhone2a.value!=""||document.frmReg.tbPhone2b.value!=""||document.frmReg.tbPhone2c.value!="")&&(n==0&&document.frmReg.tbPhone2a.value==""&&(alert("Please enter the complete telephone number."),document.frmReg.tbPhone2a.focus(),n=n+1),n==0&&document.frmReg.tbPhone2b.value==""&&(alert("Please enter the complete telephone number."),document.frmReg.tbPhone2b.focus(),n=n+1),n==0&&document.frmReg.tbPhone2c.value==""&&(alert("Please enter the complete telephone number."),document.frmReg.tbPhone2c.focus(),n=n+1),n==0&&document.frmReg.ddPhone2Type.value==""&&(alert("Please select the type of phone."),document.frmReg.ddPhone2Type.focus(),n=n+1));n==0&&document.frmReg.DOBMonth.value==""&&(alert("Please select a date of birth."),document.frmReg.DOBMonth.focus(),n=n+1);n==0&&document.frmReg.DOBDay.value==""&&(alert("Please select a date of birth."),document.frmReg.DOBDay.focus(),n=n+1);n==0&&document.frmReg.DOBYear.value==""&&(alert("Please select a date of birth."),document.frmReg.DOBYear.focus(),n=n+1);n==0&&document.frmReg.MemberRegionID.value==""&&(alert("Please select a storeboard region."),document.frmReg.MemberRegionID.focus(),n=n+1);n==0&&document.frmReg.tbPassword.value==""&&(alert("Please enter a password."),document.frmReg.tbPassword.focus(),n=n+1);n==0&&document.frmReg.tbPassword.value.length<8&&(alert("Password must be at least 8 characters in length."),document.frmReg.tbPassword.focus(),n=n+1);n==0&&document.frmReg.RetypePassword.value==""&&(alert("Please enter the confirmation password."),document.frmReg.RetypePassword.focus(),n=n+1);n==0&&document.frmReg.tbPassword.value!=document.frmReg.RetypePassword.value&&(alert("Entered passwords do not match."),document.frmReg.tbPassword.focus(),n=n+1);n==0&&document.frmReg.CAPTCHA.value==""&&(alert("Please enter the 8 characters you see in the image."),document.frmReg.CAPTCHA.focus(),n=n+1);n==0&&(t?document.frmReg.submit():(alert("You must accept the Terms and Conditions to register."),document.frmReg.agreecheck.focus(),n=n+1))}function reloadCAPTCHA(){document.getElementById("captcha").src="/inc/aspcaptcha.asp?"+Math.random()}function Showlit(n){n=="star1"&&(document.frmPostRave.Rating.value=="0"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_empty.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="1"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_empty.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="2"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="3"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="4"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="5"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_full.png"),document.getElementById("RankingName").innerHTML=Rank1);n=="star2"&&(document.frmPostRave.Rating.value=="0"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="1"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="2"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="3"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="4"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="5"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_full.png"),document.getElementById("RankingName").innerHTML=Rank2);n=="star3"&&(document.frmPostRave.Rating.value=="0"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="1"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="2"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="3"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="4"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="5"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_full.png"),document.getElementById("RankingName").innerHTML=Rank3);n=="star4"&&(document.frmPostRave.Rating.value=="0"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="1"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="2"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="3"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="4"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_empty.png"),document.frmPostRave.Rating.value=="5"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_full.png"),document.getElementById("RankingName").innerHTML=Rank4);n=="star5"&&(document.images.star1.src="/images/star_over.png",document.images.star2.src="/images/star_over.png",document.images.star3.src="/images/star_over.png",document.images.star4.src="/images/star_over.png",document.images.star5.src="/images/star_over.png",document.getElementById("RankingName").innerHTML=Rank5)}function ShowVote(n){n=="star1"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_empty.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.frmPostRave.Rating.value="1",document.getElementById("RankingName").innerHTML=Rank1);n=="star2"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.frmPostRave.Rating.value="2",document.getElementById("RankingName").innerHTML=Rank2);n=="star3"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.frmPostRave.Rating.value="3",document.getElementById("RankingName").innerHTML=Rank3);n=="star4"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_empty.png",document.frmPostRave.Rating.value="4",document.getElementById("RankingName").innerHTML=Rank4);n=="star5"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_full.png",document.frmPostRave.Rating.value="5",document.getElementById("RankingName").innerHTML=Rank5)}function Hidelit(){document.frmPostRave.Rating.value==0&&(document.images.star1.src="/images/star_empty.png",document.images.star2.src="/images/star_empty.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.getElementById("RankingName").innerHTML=Rank0);document.frmPostRave.Rating.value=="1"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_empty.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.getElementById("RankingName").innerHTML=Rank1);document.frmPostRave.Rating.value=="2"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_empty.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.getElementById("RankingName").innerHTML=Rank2);document.frmPostRave.Rating.value=="3"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_empty.png",document.images.star5.src="/images/star_empty.png",document.getElementById("RankingName").innerHTML=Rank3);document.frmPostRave.Rating.value=="4"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_empty.png",document.getElementById("RankingName").innerHTML=Rank4);document.frmPostRave.Rating.value=="5"&&(document.images.star1.src="/images/star_full.png",document.images.star2.src="/images/star_full.png",document.images.star3.src="/images/star_full.png",document.images.star4.src="/images/star_full.png",document.images.star5.src="/images/star_full.png",document.getElementById("RankingName").innerHTML=Rank5)}function ConfirmFriendDelete(n){var t=confirm("Are you sure you wish to remove this friend?\n");t&&(document.location.href="/members/my-friends/?MODE=REMOVECONN&ConnMemberID="+n+"")}function OpenDashContainer(n){var t=17;if(document.getElementById("dashboard"+n).style.display=="")for(i=1;i<=t;i++)document.getElementById("dashboard"+i).style.display="none";else{for(i=1;i<=t;i++)document.getElementById("dashboard"+i).style.display="none";document.getElementById("dashboard"+n).style.display=""}}function OpenAdminContainer(n){var t=7;if(document.getElementById("adminboard"+n).style.display=="")for(i=1;i<=t;i++)document.getElementById("adminboard"+i).style.display="none";else{for(i=1;i<=t;i++)document.getElementById("adminboard"+i).style.display="none";document.getElementById("adminboard"+n).style.display=""}}function OpenDashUploadMedia(){document.getElementById("UploadMediaSection").style.display==""?(document.getElementById("UploadMediaSection").style.display="none",document.getElementById("UploadGraphic").innerHTML='<a href="javascript:void(0);" onclick="OpenDashUploadMedia();"><img src="/images/plus_menu.gif" alt="Upload Media" style="border:none"/><\/a>'):(document.getElementById("UploadMediaSection").style.display="",document.getElementById("UploadGraphic").innerHTML='<a href="javascript:void(0);" onclick="OpenDashUploadMedia();"><img src="/images/minus_menu.gif" alt="Upload Media" style="border:none"/><\/a>')}function AllDashShowHide(){var n=17;if(document.getElementById("dashboard1").style.display=="")for(i=1;i<=n;i++)document.getElementById("dashboard"+i).style.display="none";else for(i=1;i<=n;i++)document.getElementById("dashboard"+i).style.display=""}function AllDashHide(){for(i=1;i<=17;i++)document.getElementById("dashboard"+i)!=null&&(document.getElementById("dashboard"+i).style.display="none")}function FillInUsername(n){document.getElementById("UserName").value=n}function ShowTowns(n){for(i=0;i<=50;i++)document.getElementById("showtown"+i).style.display="none";document.getElementById("showtown"+n).style.display=""}function autojump(n,t,i){var u=document.forms[document.forms.length-1],r=u.elements[n];r.nextField=u.elements[t];r.maxLength==null&&(r.maxLength=i);r.onkeydown=autojump_keyDown;r.onkeyup=autojump_keyUp}function autojump_keyDown(){this.beforeLength=this.value.length;downStrokeField=this}function autojump_keyUp(){this==downStrokeField&&this.value.length>this.beforeLength&&this.value.length>=this.maxLength&&this.nextField.focus();downStrokeField=null}function testPassword(n){var i=[],t,r;i[0]='<table border="0" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="2"><tr style="height:11px"><td style="width:30px; background-color:#FF0000"><\/td><td style="width:120px; background-color:#DDDDDD"><\/td><\/tr><\/table><\/td><\/tr><\/table>';i[1]='<table border="0" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="2"><tr style="height:11px"><td style="width:60px; background-color:#BB0000"><\/td><td style="width:90px; background-color:#DDDDDD"><\/td><\/tr><\/table><\/td><\/tr><\/table>';i[2]='<table border="0" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="2"><tr style="height:11px"><td style="width:90px; background-color:#FF9900"><\/td><td style="width:60px; background-color:#DDDDDD"><\/td><\/tr><\/table><\/td><\/tr><\/table>';i[3]='<table border="0" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="2"><tr style="height:11px"><td style="width:120px; background-color:#00BB00"><\/td><td style="width:30px; background-color:#DDDDDD"><\/td><\/tr><\/table><\/td><\/tr><\/table>';i[4]='<table border="0" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="2"><tr style="height:11px"><td style="width:150px; background-color:#00EE00"><\/td><\/tr><\/table><\/td><\/tr><\/table>';i[5]='<table border="0" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="2"><tr style="height:11px"><td style="width:150px; background-color:#DDDDDD"><\/td><\/tr><\/table><\/td><\/tr><\/table>';t=0;r=0;n.length!=0&&n.length?n.length>0&&n.length<5?t=t+3:n.length>4&&n.length<8?t=t+6:n.length>7&&n.length<12?t=t+12:n.length>11&&(t=t+18):t=-1;n.match(/[a-z]/)&&(t=t+1);n.match(/[A-Z]/)&&(t=t+5);n.match(/\d+/)&&(t=t+5);n.match(/(.*[0-9].*[0-9].*[0-9])/)&&(t=t+5);n.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)&&(t=t+5);n.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)&&(t=t+5);n.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(t=t+2);n.match(/(\d.*\D)|(\D.*\d)/)&&(t=t+2);n.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)&&(t=t+2);t==-1?(r=i[5],document.getElementById("PasswordRating").innerHTML=" "):t>-1&&t<16?(r=i[0],document.getElementById("PasswordRating").innerHTML="Unsafe"):t>15&&t<25?(r=i[1],document.getElementById("PasswordRating").innerHTML="Weak"):t>24&&t<35?(r=i[2],document.getElementById("PasswordRating").innerHTML="Safe"):t>34&&t<45?(r=i[3],document.getElementById("PasswordRating").innerHTML="Correct"):(r=i[4],document.getElementById("PasswordRating").innerHTML="Optimal");document.getElementById("PasswordIndicator").innerHTML=r}function IsNumeric(n){var r,t=!0;for(i=0;i<n.length&&t==!0;i++)r=n.charAt(i),"0123456789.-".indexOf(r)==-1&&(t=!1);return t}function captalizeFirst(n){var t=n.value,i=t.length,r=t.substring(0,1).toUpperCase(),u=t.substring(1,i),f=r+u;n.value=f}function numbersonly(n,t,i){var r,u;if(window.event)r=window.event.keyCode;else if(t)r=t.which;else return!0;return u=String.fromCharCode(r),r==null||r==0||r==8||r==9||r==13||r==27?!0:"0123456789.".indexOf(u)>-1?!0:i&&u=="."?(n.form.elements[i].focus(),!1):!1}function echeck(n){var i="@",t=".",r=n.indexOf(i),u=n.length,f=n.indexOf(t);return n.indexOf(i)==-1?!1:n.indexOf(i)==-1||n.indexOf(i)==0||n.indexOf(i)==u?!1:n.indexOf(t)==-1||n.indexOf(t)==0||n.indexOf(t)==u?!1:n.indexOf(i,r+1)!=-1?!1:n.substring(r-1,r)==t||n.substring(r+1,r+2)==t?!1:n.indexOf(t,r+2)==-1?!1:n.indexOf(" ")!=-1?!1:!0}function valid(n,t){n.value=n.value.replace(r[t],"")}function MM_preloadImages(){var n=document,t,r,i;if(n.images)for(n.MM_p||(n.MM_p=[]),r=n.MM_p.length,i=MM_preloadImages.arguments,t=0;t<i.length;t++)i[t].indexOf("#")!=0&&(n.MM_p[r]=new Image,n.MM_p[r++].src=i[t])}function FindSpaces(n){return n.indexOf(" ")!=-1?!1:!0}function textCounter(n,t,i){n.value.length>i?n.value=n.value.substring(0,i):document.getElementById(t).innerHTML=i-n.value.length}function ShowPasswords(n){document.getElementById("CurrentPassword").type=n.checked?"text":"password";document.getElementById("NewPassword").type=n.checked?"text":"password";document.getElementById("ConfirmNewPassword").type=n.checked?"text":"password"}function FocusCommentBox(){document.frmMediaComment.taMediaComments.value=="Write A Comment!"&&(document.frmMediaComment.taMediaComments.value="",document.getElementById("submit-button").style.display="")}function ConfirmMediaCommentDelete(n){var i=confirm("Are you sure you want to delete this comment?\n"),t;if(i)return t="",$j.post("/ajax/mediacomment_delete.asp",{MemberID:t,MediaCommentID:n},function(t){result=new String(t);document.getElementById("MediaComment"+n).style.display="none"}),!1}function BlurCommentBox(){document.frmMediaComment.taMediaComments.value==""&&(document.frmMediaComment.taMediaComments.value="Write A Comment!",document.getElementById("submit-button").style.display="none")}function SaveMediaComments(){var t=document.getElementById("taMediaComments").value;t=t.replace(/%/g,"perc3nt");t=t.replace(/&/g,"amp3rsand");t=t.replace(/#/g,"criss6cross");var i=document.getElementById("hidMediaType").value,r=document.getElementById("hidMediaID").value,u=document.getElementById("hidMemberID").value,n=GetXmlHttpObject(),f="/ajax/media_comment.asp?MemberID="+u+"&MediaComment="+t+"&MediaType="+i+"&MediaID="+r;if(!n){alert("Browser does not support HTTP Request");return}n.onreadystatechange=function(){n.readyState==1&&(document.getElementById("BlankForm").style.display="none",document.getElementById("BusyForm").style.display="");(n.readyState==4||n.readyState=="complete")&&(document.getElementById("AllComments").innerHTML=n.responseText,document.getElementById("taMediaComments").value="Write A Comment!",document.getElementById("submit-button").style.display="none",document.getElementById("BlankForm").style.display="",document.getElementById("BusyForm").style.display="none")};n.open("GET",f,!0);n.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function ChangeLikeMedia(n,t,i){document.getElementById("fmeProcess").src=t=="l"?"/ajax/like_unlike_media.asp?mediaid="+n+"&mediatype="+i+"&option="+t:"/ajax/like_unlike_media.asp?mediaid="+n+"&mediatype="+i+"&option="+t;setTimeout(LikeMedia(n,t,i),2e3)}function LikeMedia(n,t,i){var r=GetXmlHttpObject(),u="/ajax/like_media.asp?mediaid="+n+"&mediatype="+i;if(!r){alert("Browser does not support HTTP Request");return}r.onreadystatechange=function(){r.readyState==1&&(document.getElementById("LikeCountDisplay").style.display="",document.getElementById("LikeMediaBar").innerHTML='<table cellpadding="0" cellspacing="0" border="0"><tr style="height:26px"><td style="padding-left:5px"><img src="/images/register_loading.gif" alt="Loading"/><\/td><td style="color:#c0c0c0;padding-left:8px">Loading...<\/td><\/tr><\/table>',document.getElementById("LikeMediaBarGap").style.display="");(r.readyState==4||r.readyState=="complete")&&(r.responseText=="NoLikes"?(document.getElementById("LikeCountDisplay").style.display="none",document.getElementById("LikeMediaBar").innerHTML="&nbsp;",document.getElementById("LikeMediaBarGap").style.display="none",document.getElementById("MediaLike").innerHTML='&nbsp;&middot; <a href="javascript:ChangeLikeMedia('+n+",'l','"+i+"')\">Like<\/a>",alert("NoLikes")):(document.getElementById("LikeCountDisplay").style.display="",document.getElementById("LikeMediaBar").innerHTML=r.responseText,document.getElementById("LikeMediaBarGap").style.display="",document.getElementById("MediaLike").innerHTML='&nbsp;&middot; <a href="javascript:ChangeLikeMedia('+n+",'u','"+i+"')\">Unlike<\/a>",alert("YesLikes")))};r.open("GET",u,!0);r.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function AlertClose(){document.getElementById("SuccessfulPost").style.display="none"}function PowershareNL(n){var t=confirm("Powershare (which allows a "+n+" Member to share on "+n+", LinkedIn, Facebook, and Twitter all at once) is only available to "+n+" Members. Sign Up?");t&&(document.location,window.open("/sign-up/"))}function PowerShare(){var i=0,n=document.frmPowerShareMedia.ShareOnSocials.value,t,h;console.log(n);var o=document.frmPowerShareMedia.hidMediaID.value,s=document.frmPowerShareMedia.hidMediaType.value,c=document.getElementById("cbFacebook"),l=document.getElementById("cbLinkedIn"),a=document.getElementById("cbTwitter");n=n.replace(/%/g,"perc3nt");n=n.replace(/&/g,"amp3rsand");n=n.replace(/#/g,"criss6cross");console.log(n);var r="N",u="N",f="N",e="N";if(document.frmPowerShareMedia.cbThisSite.checked==!0&&(e="Y"),a!=null&&document.frmPowerShareMedia.cbTwitter.checked==!0&&(u="Y"),l!=null&&document.frmPowerShareMedia.cbLinkedIn.checked==!0&&(f="Y"),c!=null&&document.frmPowerShareMedia.cbFacebook.checked==!0&&(r="Y"),n==""&&(alert("Please type in a comment before clicking share."),document.frmPowerShareMedia.ShareOnSocials.focus(),i=i+1),n.length>1e3&&(alert("Status Updates are limited to 1000 characters. You have entered "+n.length+" characters."),i=i+1),u=="N"&&e=="N"&&f=="N"&&r=="N"&&(alert("You must select at least one social media site to post on."),document.frmPowerShareMedia.ShareOnSocials.focus(),i=i+1),i==0){if(t=GetXmlHttpObject(),console.log("/ajax/powershare.asp?MediaID="+o+"&MediaType="+s+"&StatusUpdate="+n+"&StatusTwitter="+u+"&StatusFacebook="+r+"&StatusLinkedIn="+f+"&StatusSite="+e),h="/ajax/powershare.asp?MediaID="+o+"&MediaType="+s+"&StatusUpdate="+n+"&StatusTwitter="+u+"&StatusFacebook="+r+"&StatusLinkedIn="+f+"&StatusSite="+e,!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){t.readyState==1&&(document.getElementById("Saving").style.display="",document.getElementById("NotSaving").style.display="none");(t.readyState==4||t.readyState=="complete")&&(document.getElementById("Saving").style.display="none",document.getElementById("NotSaving").style.display="",document.frmPowerShareMedia.ShareOnSocials.value="",document.getElementById("PowerShareWindow").style.display="none",document.getElementById("SuccessfulPost").style.display="",setTimeout("AlertClose();",5200))};t.open("GET",h,!0);t.send(null)}}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function LoadCities(n){var t=GetXmlHttpObject(),i="/ajax/cls_load_cities.asp?StateID="+n;if(!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){t.readyState==1&&(document.getElementById("LocationCities").innerHTML='<select name="City" class="f1" tabindex="10" disabled="disabled" style="width:130px;"><option value="">Loading...<\/option><\/select>');(t.readyState==4||t.readyState=="complete")&&(document.getElementById("LocationCities").innerHTML=t.responseText)};t.open("GET",i,!0);t.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function addEvent(n,t,i){if(t=="DOMContentLoaded"||t=="domload"){addDOMLoadEvent(i);return}if(n.addEventListener)n.addEventListener(t,i,!1);else{i.$$guid||(i.$$guid=addEvent.guid++);n.events||(n.events={});var r=n.events[t];r||(r=n.events[t]={},n["on"+t]&&(r[0]=n["on"+t]));r[i.$$guid]=i;n["on"+t]=handleEvent}}function removeEvent(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.events&&n.events[t]&&delete n.events[t][i.$$guid]}function handleEvent(n){var i=!0,t,r;n=n||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);t=this.events[n.type];for(r in t)this.$$handleEvent=t[r],this.$$handleEvent(n)===!1&&(i=!1);return i}function fixEvent(n){return n.preventDefault=fixEvent.preventDefault,n.stopPropagation=fixEvent.stopPropagation,n}function addDOMLoadEvent(n){window.onDOMLoadEvents[window.onDOMLoadEvents.length]=n}function DOMContentLoadedInit(){var n,t;if(!window.DOMContentLoadedInitDone)for(window.DOMContentLoadedInitDone=!0,n=0;n<window.onDOMLoadEvents.length;n++)t=window.onDOMLoadEvents[n],t()}function DOMContentLoadedScheduler(){if(window.DOMContentLoadedInitDone)return!0;if(/KHTML|WebKit/i.test(navigator.userAgent))/loaded|complete/.test(document.readyState)?DOMContentLoadedInit():setTimeout("DOMContentLoadedScheduler()",250);else if(document.getElementById("__ie_onload"))return!0;return typeof DOMContentLoadedCustom=="function"&&typeof document.getElementsByTagName!="undefined"&&(document.getElementsByTagName("body")[0]!=null||document.body!=null)&&(DOMContentLoadedCustom()?DOMContentLoadedInit():setTimeout("DOMContentLoadedScheduler()",250)),!0}function Calendar(){g_Calendar=this;this.daysOfWeek="Sun Mon Tue Wed Thu Fri Sat".split(" ");this.months="January February March April May June July August September October November December".split(" ");this.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];this.containerLayer=null;this.dayMask=[1,1,1,1,1,1,1];this.Holidays=null;this.showHolidays=!0}function calendarTimeout(){cp_timeoutDelay&&(cp_timeoutId=setTimeout("g_Calendar.hide();",cp_timeoutDelay))}function calendarClearTimeout(){cp_timeoutId&&clearTimeout(cp_timeoutId)}function cp_handleDocumentClick(){g_Calendar.containerLayer&&(g_Calendar.isHidden()||g_Calendar.hide())}function parseMonth(n){var t=monthNames.filter(function(t){return new RegExp("^"+n,"i").test(t)});if(t.length==0)throw new Error("Invalid month string");if(t.length>1)throw new Error("Ambiguous month");return monthNames.indexOf(t[0])}function parseWeekday(n){var t=weekdayNames.filter(function(t){return new RegExp("^"+n,"i").test(t)});if(t.length==0)throw new Error("Invalid day string");if(t.length>1)throw new Error("Ambiguous weekday");return weekdayNames.indexOf(t[0])}function parseDateString(n){for(var t=0;t<dateParsePatterns.length;t++){var r=dateParsePatterns[t].re,u=dateParsePatterns[t].handler,i=r.exec(n);if(i)return u(i)}throw new Error("Invalid date string");}function dp_DateString(d){var dateDelim,delim,month,day,year;dp_dateFormat=dp_dateFormat||"m/d/yyyy";dp_dateFormat.indexOf("/")!=-1?(delim=eval("/\\//g"),dateDelim="/"):dp_dateFormat.indexOf("-")!=-1?(delim=eval("/\\-/g"),dateDelim="-"):dp_dateFormat.indexOf(".")!=-1?(delim=eval("/\\./g"),dateDelim="."):(delim=eval("/\\ /g"),dateDelim=" ");month=d.getMonth();day=d.getDate();year=d.getFullYear();switch(dp_dateFormat.replace(delim,"")){case"ddmmmyyyy":return dp_padZero(day)+dateDelim+monthNames[month].substr(0,3)+dateDelim+year;case"dmmmyyyy":return day+dateDelim+monthNames[month].substr(0,3)+dateDelim+year;case"ddmmyyyy":return dp_padZero(day)+dateDelim+dp_padZero(month+1)+dateDelim+year;case"dmmyyyy":return day+dateDelim+dp_padZero(month+1)+dateDelim+year;case"mmddyyyy":return dp_padZero(month+1)+dateDelim+dp_padZero(day)+dateDelim+year;case"mddyyyy":return month+1+dateDelim+dp_padZero(day)+dateDelim+year;case"mdyyyy":return month+1+dateDelim+day+dateDelim+year;case"yyyymmdd":return year+dateDelim+dp_padZero(month+1)+dateDelim+dp_padZero(day);default:return month+1+dateDelim+day+dateDelim+year}}function dp_padZero(n){return n<=9?"0"+n:n}function magicDate(n,t){var f,e,u,r,i;if(!t&&n.value=="")return!0;f=!0;e=n.id+"Msg";try{u=parseDateString(n.value);n.value=dp_DateString(u);n.className="";i=document.getElementById(e);i?(i.firstChild.nodeValue=u.toDateString(),i.className="normal"):u.toDateString()}catch(o){n.className="error";r=o.message;(!r.length||r.indexOf("is null or not an object")>-1)&&(r="Invalid date string");i=document.getElementById(e);i?(i.firstChild.nodeValue=r,i.className="error"):alert(r);f=!1}return f}function LoadRegions(n){var t=GetXmlHttpObject(),i="/ajax/nowyouknowa_load_regions.asp?StateID="+n;if(!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){t.readyState==1&&(document.getElementById("RegionHolder").innerHTML='<select name="ddRegions" class="f1" tabindex="10" disabled="disabled" style="width:200px;"><option value="">Loading...<\/option><\/select>');(t.readyState==4||t.readyState=="complete")&&(document.getElementById("RegionHolder").innerHTML=t.responseText)};t.open("GET",i,!0);t.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function validateHeader(){var n=0;(document.frmMainSearch.tbSearchQuery.value=="What Are You Looking For?"||document.frmMainSearch.tbSearchQuery.value.trim()=="")&&(document.frmMainSearch.tbSearchQuery.focus(),n=n+1);n==0&&(typeof document.frmMainSearch.KeySearchURL!="undefined"&&document.frmMainSearch.KeySearchURL.value!=""&&(document.frmMainSearch.action=document.frmMainSearch.KeySearchURL.value+"?sq="+document.frmMainSearch.tbSearchQuery.value),document.frmMainSearch.submit())}function ConfirmMainStatusRemoval(n){var r=confirm("Are you sure you want to delete this comment?\n"),t,i;if(r){if(t=GetXmlHttpObject(),i="/ajax/status_delete.asp?MainStatusCommentID="+n,!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){if(t.readyState==1&&(document.getElementById("CURRENTSTATUSDATETIME").innerHTML="",document.getElementById("CURRENTSTATUSID").innerHTML='<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/images/register_loading.gif" alt="Removing"/><\/td><td style="color:#c0c0c0;padding-left:8px">Removing Status...<\/td><\/tr><\/table>',document.getElementById("CURRENTSTATUS").innerHTML=""),t.readyState==4||t.readyState=="complete"){var r=t.responseText,i=r.split("~~");document.getElementById("CURRENTSTATUSDATETIME").innerHTML=i[1];document.getElementById("CURRENTSTATUSID").innerHTML='<a href="javascript:ConfirmMainStatusRemoval('+i[2]+')">Remove<\/a>';document.getElementById("CURRENTSTATUS").innerHTML=i[0];document.getElementById("MemberStatus"+n).style.display="none";document.getElementById("MemberStatus"+n+"spacer").style.display="none"}};t.open("GET",i,!0);t.send(null)}}function FetchLastStatus(){var n=GetXmlHttpObject();if(!n){alert("Browser does not support HTTP Request");return}n.onreadystatechange=function(){if(n.readyState==1&&(document.getElementById("CURRENTSTATUSDATETIME").innerHTML="",document.getElementById("CURRENTSTATUSID").innerHTML='<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/images/register_loading.gif" alt="Removing"/><\/td><td style="color:#c0c0c0;padding-left:8px">Removing Status...<\/td><\/tr><\/table>',document.getElementById("CURRENTSTATUS").innerHTML=""),n.readyState==4||n.readyState=="complete"){var i=n.responseText,t=i.split("~~");document.getElementById("CURRENTSTATUSDATETIME").innerHTML=t[1];document.getElementById("CURRENTSTATUSID").innerHTML='<a href="javascript:ConfirmMainStatusRemoval('+t[2]+')">Remove<\/a>';document.getElementById("CURRENTSTATUS").innerHTML=t[0]}};n.open("GET","/ajax/last_status.asp",!0);n.send(null)}function SaveStatusUpdate(){var i=0,n=document.frmDashboardStatusUpdate.StatusUpdate.value,u=document.frmDashboardStatusUpdate.hidBusinessNetwork.value,f=document.frmDashboardStatusUpdate.hidCountyID.value,e=document.frmDashboardStatusUpdate.hidLocalPageID.value,o=document.frmDashboardStatusUpdate.hidStateID.value,s=document.frmDashboardStatusUpdate.hidMediaID.value,h=document.frmDashboardStatusUpdate.hidMediaType.value,c=document.frmDashboardStatusUpdate.hidDefaultStatus.value,l,t,r;if(n=n.replace(/%/g,"perc3nt"),n=n.replace(/&/g,"amp3rsand"),n=n.replace(/#/g,"criss6cross"),l=document.frmDashboardStatusUpdate.StatusUpdate.value,document.frmDashboardStatusUpdate.StatusUpdate.value==c&&(alert("Please type in a status message before clicking share"),document.frmDashboardStatusUpdate.StatusUpdate.focus(),i=i+1),n.length>1e3&&(alert("Status Updates are limited to 1000 characters. You have entered "+n.length+" characters."),i=i+1),i==0){if(t=GetXmlHttpObject(),r="/ajax/status_update.asp?BusinessNetworkID="+u+"&CountyID="+f+"&MediaID="+s+"&MediaType="+h+"&StateID="+o+"&LocalPageID="+e+"&StatusUpdate="+n+"&StatusTwitter=N&StatusFacebook=N&StatusLinkedIn=N",!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){(t.readyState==4||t.readyState=="complete")&&(document.frmDashboardStatusUpdate.StatusUpdate.value="",document.frmDashboardStatusUpdate.hidMediaID.value="",document.frmDashboardStatusUpdate.hidMediaType.value="",$("#RefreshLink").click())};t.open("GET",r,!0);t.send(null)}}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function ShortenURL(){var t=0,r=document.frmDashboardStatusUpdate.tbShortURL.value,n,i;if(document.frmDashboardStatusUpdate.tbShortURL.value=="Shorten A URL Here"&&(document.frmDashboardStatusUpdate.tbShortURL.focus(),alert("Please enter a URL before clicking 'Shorten'"),t=t+1),t==0){if(n=GetXmlHttpObject(),i="/ajax/shortenurl.asp?OriginalURL="+r,!n){alert("Browser does not support HTTP Request");return}n.onreadystatechange=function(){n.readyState==1&&(document.getElementById("ShortenURLButton").innerHTML='<table cellpadding="0" cellspacing="0" border="0" style="width:60px"><tr><td align="center"><img src="/images/register_loading.gif" alt="Converting"/><\/td><\/tr><\/table>');(n.readyState==4||n.readyState=="complete")&&(document.frmDashboardStatusUpdate.StatusUpdate.value=="Share Something New and Interesting!"?document.frmDashboardStatusUpdate.StatusUpdate.value=n.responseText:document.frmDashboardStatusUpdate.StatusUpdate.value+=" "+n.responseText,document.getElementById("ShortenURLButton").innerHTML='<input type="button" value="Shorten" onclick="ShortenURL();" class="f5"/>',document.frmDashboardStatusUpdate.tbShortURL.value="Shorten A URL Here",document.getElementById("tbShortURL").className="f5 greytext",textCounterTwitter(document.frmDashboardStatusUpdate.StatusUpdate,"charsRemaining",140))};n.open("GET",i,!0);n.send(null)}}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function MediaLikeSU(n,t,i){document.getElementById("fmeProcess").setAttribute("src","/ajax/like_unlike_media.asp?mediaid="+i+"&mediatype="+n+"&thumb="+t)}function LikeSU(n,t,i){var r="";typeof i!="undefined"&&(r=i);var u=document.getElementById("LikeCountDisplay"+n),f=GetXmlHttpObject(),e="/ajax/like_status.asp?statusid="+n;$.ajax({url:"/ajax/like_unlike.asp?statusid="+n+"&mediaid="+r+"&option="+t,type:"GET",dataType:"html",success:function(){u!=null&&(document.getElementById("LikeCountDisplay"+n).style.display="",document.getElementById("LikeStatusBar"+n).innerHTML='<table cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left:5px"><img src="/images/register_loading.gif" alt="Loading"/><\/td><td style="color:#c0c0c0;padding-left:8px">Loading...<\/td><\/tr><\/table>',document.getElementById("LikeStatusBar"+n+"Gap").style.display="");document.getElementById("StatusLike"+n).innerHTML=t=="l"?'<a href="javascript:void(0)" onclick="LikeSU('+n+",'u',"+r+')"><img src="/css/whiteLayout/images/new/Likeicon2.0.png" alt="Unlike" title="Unlike" class="dashlike" /><\/a>':'<a href="javascript:void(0)" onclick="LikeSU('+n+",'l',"+r+')"><img src="/css/whiteLayout/images/new/Likeicon2.0.png" alt="Like" title="Like" class="dashlike" /><\/a>';$.ajax({url:"/ajax/like_status.asp?statusid="+n,type:"GET",dataType:"html",success:function(t){t=="NoLikes"?u!=null&&(document.getElementById("LikeCountDisplay"+n).style.display="none",document.getElementById("LikeStatusBar"+n).innerHTML="&nbsp;",document.getElementById("LikeStatusBar"+n+"Gap").style.display="none"):u!=null&&(document.getElementById("LikeCountDisplay"+n).style.display="",document.getElementById("LikeStatusBar"+n).innerHTML=t,document.getElementById("LikeStatusBar"+n+"Gap").style.display="")},error:function(){}})},error:function(){}})}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function HideAnnouncement(){var n=GetXmlHttpObject();if(!n){alert("Browser does not support HTTP Request");return}n.onreadystatechange=function(){(n.readyState==4||n.readyState=="complete")&&(document.getElementById("DashAnnounceWidget").style.display="none")};n.open("GET","/ajax/hide_announcement.asp",!0);n.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function OpenClosePremiumAds(n){n=="C"?(document.getElementById("plusUnderline").style.borderBottomColor="#F2FCFF",document.getElementById("PlusAds").style.display="none",document.getElementById("OpenCloseAd").innerHTML='<a href="javascript:void(0);" onclick="OpenClosePremiumAds(\'O\');">Open Ads<\/a>'):(document.getElementById("plusUnderline").style.borderBottomColor="#BFF0FF",document.getElementById("PlusAds").style.display="",document.getElementById("OpenCloseAd").innerHTML='<a href="javascript:void(0);" onclick="OpenClosePremiumAds(\'C\');">Close Ads<\/a>')}function FireDropMenu(n){document.getElementById(n).style.display!=""&&CloseAllDropMenus();document.getElementById(n).style.display=""}function ShowMore(n){document.getElementById("More"+n).style.display="inline";document.getElementById("Less"+n).style.display="none"}function ShowLess(n){document.getElementById("More"+n).style.display="none";document.getElementById("Less"+n).style.display="inline"}function BoardReadMore(n){var t=document.getElementById("dots"+n),i=document.getElementById("more"+n),r=document.getElementById("ShowMoreLess"+n);t.style.display==="none"?(t.style.display="inline",i.style.display="none",r.innerHTML="Show More"):(t.style.display="none",i.style.display="inline",r.innerHTML="Show Less")}function CloseAllDropMenus(n){for(var i=["NetworkCats","VideoCats","AudioCats","ImageCats","CouponCats","MemberCats","AdsCats2","ProductCats","DirectoryCats","BlogCats","GroupCats","ForumCats","DealCats","LocationCats"],r=i.length,t=0;t<r;t++)i[t]!=n&&(document.getElementById(i[t]).style.display="none")}function HideNetworkCats(){document.getElementById("NetworkCats").style.display="none"}function HideLocationCats(){document.getElementById("LocationCats").style.display="none"}function HideDealCats(){document.getElementById("DealCats").style.display="none"}function HideForumCats(){document.getElementById("ForumCats").style.display="none"}function HideGroupCats(){document.getElementById("GroupCats").style.display="none"}function HideBlogCats(){document.getElementById("BlogCats").style.display="none"}function HideVideoCats(){document.getElementById("VideoCats").style.display="none"}function HideAudioCats(){document.getElementById("AudioCats").style.display="none"}function HideImageCats(){document.getElementById("ImageCats").style.display="none"}function HideCouponCats(){document.getElementById("CouponCats").style.display="none"}function HideAdsCats2(){document.getElementById("AdsCats2").style.display="none"}function HideProductCats(){document.getElementById("ProductCats").style.display="none"}function HideMemberCats(){document.getElementById("MemberCats").style.display="none"}function HideDirectoryCats(){document.getElementById("DirectoryCats").style.display="none"}function MenusBlur(){document.getElementById("VideoCats")!=null&&(document.getElementById("VideoCats").style.display="none");document.getElementById("AudioCats")!=null&&(document.getElementById("AudioCats").style.display="none");document.getElementById("ImageCats")!=null&&(document.getElementById("ImageCats").style.display="none");document.getElementById("CouponCats")!=null&&(document.getElementById("CouponCats").style.display="none");document.getElementById("AdsCats2")!=null&&(document.getElementById("AdsCats2").style.display="none");document.getElementById("ProductCats")!=null&&(document.getElementById("ProductCats").style.display="none");document.getElementById("MemberCats")!=null&&(document.getElementById("MemberCats").style.display="none");document.getElementById("BlogCats")!=null&&(document.getElementById("BlogCats").style.display="none");document.getElementById("GroupCats")!=null&&(document.getElementById("GroupCats").style.display="none");document.getElementById("ForumCats")!=null&&(document.getElementById("ForumCats").style.display="none");document.getElementById("DealCats")!=null&&(document.getElementById("DealCats").style.display="none");document.getElementById("LocationCats")!=null&&(document.getElementById("LocationCats").style.display="none");document.getElementById("DirectoryCats")!=null&&(document.getElementById("DirectoryCats").style.display="none");document.getElementById("TwitterSetup")!=null&&(document.getElementById("TwitterSetup").style.display="none");document.getElementById("FacebookSetup")!=null&&(document.getElementById("FacebookSetup").style.display="none");document.getElementById("LinkedInSetup")!=null&&(document.getElementById("LinkedInSetup").style.display="none");document.getElementById("OtherStateLogoDM")!=null&&(document.getElementById("OtherStateLogoDM").style.display="none");document.getElementById("OtherCountriesLogoDM")!=null&&(document.getElementById("OtherCountriesLogoDM").style.display="none");document.getElementById("OtherCitiesLogoDM")!=null&&(document.getElementById("OtherCitiesLogoDM").style.display="none");document.getElementById("OtherCountyLogoDM")!=null&&(document.getElementById("OtherCountyLogoDM").style.display="none");document.getElementById("OtherCountyCitiesLogoDM")!=null&&(document.getElementById("OtherCountyCitiesLogoDM").style.display="none")}function SaveStatusLocation(n){document.frmDashboardStatusUpdate.hidLocalPageID.value=n;document.getElementById("StatusLocations").style.display="none";document.getElementById("StatusMedias").style.display="";document.getElementById("ddBusinessNetwork")!=null&&(document.frmDashboardStatusUpdate.ddBusinessNetwork.selectedIndex=0);document.getElementById("ddBusinessNetwork")!=null&&(document.frmDashboardStatusUpdate.ddBusinessNetwork.options[0].selected=!0);document.getElementById("hidBusinessNetwork")!=null&&(document.frmDashboardStatusUpdate.hidBusinessNetwork.value="");document.getElementById("SocialNetworkLinks").style.display=""}function SaveStatusNetwork(n){document.frmDashboardStatusUpdate.hidBusinessNetwork.value=n;document.getElementById("StatusLocations").style.display="none";document.getElementById("StatusMedias").style.display="";document.getElementById("ddSBLocationCity")!=null&&(document.frmDashboardStatusUpdate.ddSBLocationCity.selectedIndex=0);document.getElementById("ddSBLocationCity")!=null&&(document.frmDashboardStatusUpdate.ddSBLocationCity.options[0].selected=!0);document.getElementById("hidLocalPageID")!=null&&(document.frmDashboardStatusUpdate.hidLocalPageID.value="");document.getElementById("SocialNetworkLinks").style.display=""}function CloseLocation(){document.getElementById("StatusLocations").style.display="none";document.getElementById("StatusMedias").style.display="";document.getElementById("SocialNetworkLinks").style.display=""}function ShowStatusLocations(){(document.getElementById("StatusLocations").style.display="")?(document.getElementById("StatusLocations").style.display="none",document.getElementById("SocialNetworkLinks").style.display="",document.getElementById("StatusMedias").style.display=""):(document.getElementById("StatusLocations").style.display="",document.getElementById("SocialNetworkLinks").style.display="none",document.getElementById("StatusMedias").style.display="none")}function OpenCloseLogoCityMenu(){CloseAllDropMenus();document.getElementById("OtherStateLogoDM")!=null&&(document.getElementById("OtherStateLogoDM").style.display="none");document.getElementById("OtherCountriesLogoDM")!=null&&(document.getElementById("OtherCountriesLogoDM").style.display="none");document.getElementById("OtherCountyLogoDM")!=null&&(document.getElementById("OtherCountyLogoDM").style.display="none");document.getElementById("OtherCountyCitiesLogoDM")!=null&&(document.getElementById("OtherCountyCitiesLogoDM").style.display="none");document.getElementById("OtherCitiesLogoDM").style.display=document.getElementById("OtherCitiesLogoDM").style.display==""?"none":""}function OpenCloseLogoCountyCitiesMenu(){CloseAllDropMenus();document.getElementById("OtherStateLogoDM")!=null&&(document.getElementById("OtherStateLogoDM").style.display="none");document.getElementById("OtherCountriesLogoDM")!=null&&(document.getElementById("OtherCountriesLogoDM").style.display="none");document.getElementById("OtherCountyLogoDM")!=null&&(document.getElementById("OtherCountyLogoDM").style.display="none");document.getElementById("OtherCitiesLogoDM")!=null&&(document.getElementById("OtherCitiesLogoDM").style.display="none");document.getElementById("OtherCountyCitiesLogoDM").style.display=document.getElementById("OtherCountyCitiesLogoDM").style.display==""?"none":""}function OpenCloseLogoCountriesMenu(){CloseAllDropMenus();document.getElementById("OtherCitiesLogoDM")!=null&&(document.getElementById("OtherCitiesLogoDM").style.display="none");document.getElementById("OtherStateLogoDM")!=null&&(document.getElementById("OtherStateLogoDM").style.display="none");document.getElementById("OtherCountyLogoDM")!=null&&(document.getElementById("OtherCountyLogoDM").style.display="none");document.getElementById("OtherCountyCitiesLogoDM")!=null&&(document.getElementById("OtherCountyCitiesLogoDM").style.display="none");document.getElementById("OtherCountriesLogoDM").style.display=document.getElementById("OtherCountriesLogoDM").style.display==""?"none":""}function OpenCloseLogoStateMenu(){CloseAllDropMenus();document.getElementById("OtherCitiesLogoDM")!=null&&(document.getElementById("OtherCitiesLogoDM").style.display="none");document.getElementById("OtherCountriesLogoDM")!=null&&(document.getElementById("OtherCountriesLogoDM").style.display="none");document.getElementById("OtherCountyLogoDM")!=null&&(document.getElementById("OtherCountyLogoDM").style.display="none");document.getElementById("OtherCountyCitiesLogoDM")!=null&&(document.getElementById("OtherCountyCitiesLogoDM").style.display="none");document.getElementById("OtherStateLogoDM").style.display=document.getElementById("OtherStateLogoDM").style.display==""?"none":""}function OpenCloseLogoCountyMenu(){CloseAllDropMenus();document.getElementById("OtherCitiesLogoDM")!=null&&(document.getElementById("OtherCitiesLogoDM").style.display="none");document.getElementById("OtherCountriesLogoDM")!=null&&(document.getElementById("OtherCountriesLogoDM").style.display="none");document.getElementById("OtherStateLogoDM")!=null&&(document.getElementById("OtherStateLogoDM").style.display="none");document.getElementById("OtherCountyCitiesLogoDM")!=null&&(document.getElementById("OtherCountyCitiesLogoDM").style.display="none");document.getElementById("OtherCountyLogoDM").style.display=document.getElementById("OtherCountyLogoDM").style.display==""?"none":""}function MainSearchEnter(n,t){var i;if(window.event)i=window.event.keyCode;else if(t)i=t.which;else return!0;return i==13?(validateHeader(),!1):!0}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function OpenCountryTowns(n){document.getElementById(n).style.display=document.getElementById(n).style.display==""?"none":""}function ShowMoreStates(){document.getElementById("MoreCountries").style.display="none";document.getElementById("MoreCities").style.display=document.getElementById("MoreCities").style.display==""?"none":""}function ShowMoreCountries(){document.getElementById("MoreCities").style.display="none";document.getElementById("MoreCountries").style.display=document.getElementById("MoreCountries").style.display==""?"none":""}function getElementsByClassName(n,t){var i,f;t||(t=document.getElementsByTagName("body")[0]);var u=[],e=new RegExp("\\b"+n+"\\b"),r=t.getElementsByTagName("*");for(i=0,f=r.length;i<f;i++)e.test(r[i].className)&&u.push(r[i]);return u}function ShowHideFriends(){document.getElementById("FriendsDisplay1").style.display==""?(document.getElementById("FriendsDisplay1").style.display="none",document.getElementById("FriendsDisplay2").style.display="none"):(document.getElementById("FriendsDisplay1").style.display="",document.getElementById("FriendsDisplay2").style.display="")}function ShowProfileChat(){document.getElementById("FriendsDisplayProfiles").style.display=="none"?(document.getElementById("FriendsDisplayProfiles").style.display="",document.getElementById("FriendsDisplayChat").style.display="none",document.getElementById("ProfileChatButton").innerHTML="Chat"):(document.getElementById("FriendsDisplayProfiles").style.display="none",document.getElementById("FriendsDisplayChat").style.display="",document.getElementById("ProfileChatButton").innerHTML="Profiles")}function onMediastripPhotoAjaxSuccess(){$("a.thumb").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:200,speedOut:200,overlayShow:!0,showCloseButton:!1,titlePosition:"inside",titleFormat:formatTitle});$("#images #inner").quickpaginate({perpage:5,pager:$("#photopager")});var n=document.getElementById("ProfileMediaStrip")}function ShowTwitterSetup(){document.getElementById("TwitterSetup").style.display="";document.getElementById("FacebookSetup").style.display="none";document.getElementById("LinkedInSetup").style.display="none"}function ShowFacebookSetup(){document.getElementById("FacebookSetup").style.display="";document.getElementById("TwitterSetup").style.display="none";document.getElementById("LinkedInSetup").style.display="none"}function ShowLinkedInSetup(){document.getElementById("LinkedInSetup").style.display="";document.getElementById("FacebookSetup").style.display="none";document.getElementById("TwitterSetup").style.display="none"}function showMoreWire(){var t=document.getElementById("fmeFriendStatus"),n=new Number(new String(t.style.height).replace("px",""));return n=(n>100?n:150)+100,n<=1500&&(t.style.height=n+"px"),!1}function showLessWire(){var t=document.getElementById("fmeFriendStatus"),n=new Number(new String(t.style.height).replace("px",""));return n=n-100,n>=200&&(t.style.height=n+"px"),!1}function ConfirmStatusCommentDelete(n){var i=confirm("Are you sure you want to delete this comment?\n"),t;if(i)return t="",$j.post("/ajax/statuscomment_delete.asp",{MemberID:t,MainStatusCommentID:n},function(t){result=new String(t);document.getElementById("StatusComment"+n).style.display="none"}),!1}function ShowNetworkBoardPref(n){var t=$("#NetworkBoardPrefs");t.attr("data-shown")=="true"?(t.attr("data-shown","false"),t.css("display","none")):(HideBoardPref(n),HideWorldBoardPref(n),t.attr("data-shown","true"),t.css("display","block"))}function HideNetworkBoardPref(n){if(n.stopPropagation(),document.getElementById("NetworkBoardPrefs")!=null){var t=$("#NetworkBoardPrefs");t.attr("data-shown","false");t.css("display","none")}}function ShowBoardPref(n){var t=$("#BoardPrefs");t.attr("data-shown")=="true"?(t.attr("data-shown","false"),t.css("display","none")):(HideNetworkBoardPref(n),HideWorldBoardPref(n),t.attr("data-shown","true"),t.css("display","block"))}function HideBoardPref(n){if(n.stopPropagation(),document.getElementById("BoardPrefs")!=null){var t=$("#BoardPrefs");t.attr("data-shown","false");t.css("display","none")}}function ShowWorldBoardPref(n){var t=$("#WorldBoardPrefs");t.attr("data-shown")=="true"?(t.attr("data-shown","false"),t.css("display","none")):(HideNetworkBoardPref(n),HideBoardPref(n),t.attr("data-shown","true"),t.css("display","block"))}function HideWorldBoardPref(n){if(n.stopPropagation(),document.getElementById("WorldBoardPrefs")!=null){var t=$("#WorldBoardPrefs");t.attr("data-shown","false");t.css("display","none")}}function HideSearchDropMenu(){document.getElementById("SearchPrefs")!=null&&(document.getElementById("SearchPrefs").style.display="none")}function ReduceIFrame(n){document.getElementById("fmeMedia").style.height=n;document.getElementById("ProfileMediaStrip").style.height=n}function ConfirmStatusRemoval(n){var i=confirm("Are you sure you want to delete this post?\n"),t;if(i)return t="",$j.post("/ajax/status_removal.asp",{MemberID:t,MainStatusID:n},function(t){result=new String(t);document.getElementById("MemberStatus"+n).style.display="none";document.getElementById("MemberStatus"+n+"spacer").style.display="none"}),!1}function ShowCommentBox(n){document.getElementById("yescomment"+n).style.display=="none"?(document.getElementById("yescomment"+n).style.display="",document.getElementById("taStatusComments"+n).focus()):document.getElementById("taStatusComments"+n).value==""&&(document.getElementById("yescomment"+n).style.display="none")}function CommentEdit(n){document.getElementById("StatusComment"+n).style.display="none";document.getElementById("editcomment"+n).style.display="";document.getElementById("taComment"+n).focus()}function ShowMoreProfiles(){document.getElementById("NewestMembers").style.height=="352px"?(document.getElementById("NewestMembers").style.height="450px",document.getElementById("MoreLessLink").innerHTML="Less"):(document.getElementById("NewestMembers").style.height="352px",document.getElementById("MoreLessLink").innerHTML="More")}function ShowNewsEvents(n){n=="E"?(document.getElementById("EventsWidget").style.display="",document.getElementById("NewsWidget").style.display="none",document.getElementById("EventButton").style.background="#E1E1E1",document.getElementById("NewsButton").style.background="#F4F4F4"):n=="N"&&(document.getElementById("EventsWidget").style.display="none",document.getElementById("NewsWidget").style.display="",document.getElementById("EventButton").style.background="#F4F4F4",document.getElementById("NewsButton").style.background="#E1E1E1")}function dbShowClassCats(n){for(i=0;i<=10;i++)document.getElementById("classcat"+i).style.display="none",document.getElementById("dbacat"+i).src="/images/dbca_btn"+i+"_Off.gif";return document.getElementById("classcat"+n).style.display="block",document.getElementById("dbacat"+n).src="/images/dbca_btn"+n+"_On.gif",document.getElementById("classcatselected").innerHTML=n,!1}function fireEvent(n,t){var r=n,i;document.createEvent?(i=document.createEvent("MouseEvents"),i.initEvent(t,!0,!1),r.dispatchEvent(i)):document.createEventObject&&r.fireEvent("on"+t)}function ShowHideMediaBar(){if(document.getElementById("MediaBarDisplay").style.display=="none")document.getElementById("MediaBarDisplay").style.display="",document.getElementById("MediaBarButton").setAttribute("title","Hide Your Media");else{for(i=1;i<=6;i++)document.getElementById("manage_"+i).style.display="none";document.getElementById("ProfileMediaStrip").style.display="none";document.getElementById("MediaTabStrip").style.display="none";document.getElementById("TabWindowState2").innerHTML="";document.getElementById("MediaBarDisplay").style.display="none";document.getElementById("MediaBarButton").setAttribute("title","View & Share Your Media")}}function showProfileMediaImg(n,t){var i=document.getElementById("ProfileMediaImgLink"),r=document.getElementById("ProfileMediaImg");return r.setAttribute("src",n),i.setAttribute("href",n),i.setAttribute("title",t),fireEvent(i,"click"),!1}function textCounterTwitter(){}function sb_textarea_onfocus(n,t){n&&n.value==t&&(n.value="",n.className="f5")}function sb_textarea_onblur(n,t){n&&n.value==""&&(n.value=t,n.className="f5 greytext")}function callImproveProfile(n){var t=document.getElementById("hiddenclicker");t.href=n;$("#hiddenclicker").trigger("click")}function VideoLoad(n,t){var i=GetXmlHttpObject(),r="/dashboard/ajax/videos_state_ajax.asp?md="+n+"&st="+t;if(!i){alert("Browser does not support HTTP Request");return}i.onreadystatechange=function(){if(i.readyState==1&&(document.getElementById("videos_inner").innerHTML=LoadingAlert),i.readyState==4||i.readyState=="complete"){var n=i.responseText;document.getElementById("videos_inner").innerHTML=n}};i.open("GET",r,!0);i.send(null)}function ClassLoad(n,t){var i=GetXmlHttpObject(),r="/dashboard/ajax/class_state_ajax.asp?md="+n+"&st="+t;if(!i){alert("Browser does not support HTTP Request");return}i.onreadystatechange=function(){if(i.readyState==1&&(document.getElementById("class_inner").innerHTML=LoadingAlert),i.readyState==4||i.readyState=="complete"){var n=i.responseText;document.getElementById("class_inner").innerHTML=n}};i.open("GET",r,!0);i.send(null)}function BlogsLoad(n,t){var i=GetXmlHttpObject(),r="/dashboard/ajax/blogs_ajax.asp?md="+n+"&st="+t;if(!i){alert("Browser does not support HTTP Request");return}i.onreadystatechange=function(){if(i.readyState==1&&(document.getElementById("blogs_inner").innerHTML=LoadingAlert),i.readyState==4||i.readyState=="complete"){var n=i.responseText;document.getElementById("blogs_inner").innerHTML=n}};i.open("GET",r,!0);i.send(null)}function CouponLoad(n,t){var i=GetXmlHttpObject(),r="/dashboard/ajax/coupon_ajax.asp?md="+n+"&st="+t;if(!i){alert("Browser does not support HTTP Request");return}i.onreadystatechange=function(){if(i.readyState==1&&(document.getElementById("coupon_inner").innerHTML=LoadingAlert),i.readyState==4||i.readyState=="complete"){var n=i.responseText;document.getElementById("coupon_inner").innerHTML=n}};i.open("GET",r,!0);i.send(null)}function ProductsLoad(n){var t=GetXmlHttpObject(),i="/dashboard/ajax/prod_ajax.asp?md="+n;if(!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){if(t.readyState==1&&(document.getElementById("prod_inner").innerHTML=LoadingAlert),t.readyState==4||t.readyState=="complete"){var n=t.responseText;document.getElementById("prod_inner").innerHTML=n}};t.open("GET",i,!0);t.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function ShowLocationCats(){document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("BlogCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display=""}function HideLocationCats(){document.getElementById("LocationCats").style.display="none"}function ShowDealCats(){document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("BlogCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("DealCats").style.display=""}function HideDealCats(){document.getElementById("DealCats").style.display="none"}function ShowForumCats(){document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("BlogCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("ForumCats").style.display=""}function HideForumCats(){document.getElementById("ForumCats").style.display="none"}function ShowGroupCats(){document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("BlogCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("GroupCats").style.display=""}function HideGroupCats(){document.getElementById("GroupCats").style.display="none"}function ShowBlogCats(){document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("BlogCats").style.display=""}function HideBlogCats(){document.getElementById("BlogCats").style.display="none"}function ShowVideoCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("VideoCats").style.display=""}function HideVideoCats(){document.getElementById("VideoCats").style.display="none"}function ShowAudioCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("AudioCats").style.display=""}function HideAudioCats(){document.getElementById("AudioCats").style.display="none"}function ShowImageCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("ImageCats").style.display=""}function HideImageCats(){document.getElementById("ImageCats").style.display="none"}function ShowCouponCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("CouponCats").style.display=""}function HideCouponCats(){document.getElementById("CouponCats").style.display="none"}function ShowAdsCats2(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("AdsCats2").style.display=""}function HideAdsCats2(){document.getElementById("AdsCats2").style.display="none"}function ShowProductCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("ProductCats").style.display=""}function HideProductCats(){document.getElementById("ProductCats").style.display="none"}function ShowMemberCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("MemberCats").style.display=""}function HideMemberCats(){document.getElementById("MemberCats").style.display="none"}function ShowDirectoryCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("GroupCats").style.display="none";document.getElementById("ForumCats").style.display="none";document.getElementById("DealCats").style.display="none";document.getElementById("LocationCats").style.display="none";document.getElementById("DirectoryCats").style.display=""}function HideDirectoryCats(){document.getElementById("DirectoryCats").style.display="none"}function getElementsByClassName(n,t){var i,f;t||(t=document.getElementsByTagName("body")[0]);var u=[],e=new RegExp("\\b"+n+"\\b"),r=t.getElementsByTagName("*");for(i=0,f=r.length;i<f;i++)e.test(r[i].className)&&u.push(r[i]);return u}function HideAllTowns(n){var t=getElementsByClassName(n);for(i in t)t[i].style.display="none"}function RemoveLinkProfile(n,t,i,r){var u=GetXmlHttpObject(),f="/ajax/removelink_profile.asp?id="+r;if(!u){alert("Browser does not support HTTP Request");return}u.onreadystatechange=function(){(u.readyState==4||u.readyState=="complete")&&u.responseText=="Done"&&(document.getElementById(n).style.display="none",document.getElementById(t).style.display="none",document.getElementById(i).style.display="none")};u.open("GET",f,!0);u.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function HideGroupFromProfile(n,t){var i=GetXmlHttpObject(),r="/groups/ajax/removegroup_profile.asp?mid="+t+"&gid="+n;if(!i){alert("Browser does not support HTTP Request");return}i.onreadystatechange=function(){(i.readyState==4||i.readyState=="complete")&&i.responseText=="Done"&&(document.getElementById("GroupRow"+n).style.display="none")};i.open("GET",r,!0);i.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function LoadProfileCityList(n){var t=GetXmlHttpObject(),i="/ajax/prf_load_cities.asp?StateID="+n;if(!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){t.readyState==1&&(document.getElementById("PRCITYSELECT").innerHTML='<select name="PrCity" class="f1" tabindex="10" disabled="disabled" style="width:300px;"><option value="">Loading...<\/option><\/select>');(t.readyState==4||t.readyState=="complete")&&(document.getElementById("PRCITYSELECT").innerHTML=t.responseText)};t.open("GET",i,!0);t.send(null)}function LoadProfileZipList(n,t){var i=GetXmlHttpObject(),r="/ajax/prf_load_zips.asp?StateID="+n+"&City="+t;if(!i){alert("Browser does not support HTTP Request");return}i.onreadystatechange=function(){i.readyState==1&&(document.getElementById("ZIPSELECT").innerHTML='<select name="PrZip" class="f1" tabindex="10" disabled="disabled" style="width:300px;"><option value="">Loading...<\/option><\/select>');(i.readyState==4||i.readyState=="complete")&&(document.getElementById("ZIPSELECT").innerHTML=i.responseText)};i.open("GET",r,!0);i.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function ShowBlogCats(){document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("BlogCats").style.display=""}function HideBlogCats(){document.getElementById("BlogCats").style.display="none"}function ShowVideoCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("VideoCats").style.display=""}function HideVideoCats(){document.getElementById("VideoCats").style.display="none"}function ShowAudioCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("AudioCats").style.display=""}function HideAudioCats(){document.getElementById("AudioCats").style.display="none"}function ShowImageCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("ImageCats").style.display=""}function HideImageCats(){document.getElementById("ImageCats").style.display="none"}function ShowCouponCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("CouponCats").style.display=""}function HideCouponCats(){document.getElementById("CouponCats").style.display="none"}function ShowAdsCats2(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("AdsCats2").style.display=""}function HideAdsCats2(){document.getElementById("AdsCats2").style.display="none"}function ShowProductCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("ProductCats").style.display=""}function HideProductCats(){document.getElementById("ProductCats").style.display="none"}function ShowMemberCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("DirectoryCats").style.display="none";document.getElementById("MemberCats").style.display=""}function HideMemberCats(){document.getElementById("MemberCats").style.display="none"}function ShowDirectoryCats(){document.getElementById("BlogCats").style.display="none";document.getElementById("VideoCats").style.display="none";document.getElementById("AudioCats").style.display="none";document.getElementById("ImageCats").style.display="none";document.getElementById("CouponCats").style.display="none";document.getElementById("AdsCats2").style.display="none";document.getElementById("ProductCats").style.display="none";document.getElementById("MemberCats").style.display="none";document.getElementById("DirectoryCats").style.display=""}function HideDirectoryCats(){document.getElementById("DirectoryCats").style.display="none"}function storeitem_submenu(n,t,i,r){var u=GetXmlHttpObject(),f;if(n==""&&(n=i),f="/ajax/create_storeitem_menu.asp?id="+n+"&selectedID="+i+"&IsMobileRequest="+r,!u){alert("Browser does not support HTTP Request");return}u.onreadystatechange=function(){if(u.readyState==1)try{document.getElementById("cat2a").style.display="";document.getElementById("cat2b").style.display="";document.getElementById("cat2c").style.display="";document.getElementById(t).innerHTML='<select id="ddSubCategory" name="ddSubCategory" class="f1" style="width: 350px" disabled><option>Loading...<\/option><\/select>'}catch(i){}(u.readyState==4||u.readyState=="complete")&&(n==""?(document.getElementById("cat2a").style.display="none",document.getElementById("cat2b").style.display="none",document.getElementById("cat2c").style.display="none"):u.responseText==""?(document.getElementById("cat2a").style.display="none",document.getElementById("cat2b").style.display="none",document.getElementById("cat2c").style.display="none",document.getElementById("ddCategory").value=n,document.getElementById("SelectedStoreItemCatID").value=n,CheckDefaultMainCat(n,"#btnMainCategory")):(document.getElementById("cat2a").style.display="",document.getElementById("cat2b").style.display="",document.getElementById("cat2c").style.display="",document.getElementById(t).innerHTML=u.responseText))};u.open("GET",f,!0);u.send(null)}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}function ConfirmMainStatusRemoval(n){var r=confirm("Are you sure you want to delete this comment?\n"),t,i;if(r){if(t=GetXmlHttpObject(),i="/ajax/status_delete.asp?MainStatusCommentID="+n,!t){alert("Browser does not support HTTP Request");return}t.onreadystatechange=function(){if(t.readyState==1&&(document.getElementById("CURRENTSTATUSDATETIME").innerHTML="",document.getElementById("CURRENTSTATUSID").innerHTML='<table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/images/register_loading.gif" alt="Removing"/><\/td><td style="color:#c0c0c0;padding-left:8px">Removing Status...<\/td><\/tr><\/table>',document.getElementById("CURRENTSTATUS").innerHTML=""),t.readyState==4||t.readyState=="complete"){var i=t.responseText,n=i.split("~~");document.getElementById("CURRENTSTATUSDATETIME").innerHTML=n[1];document.getElementById("CURRENTSTATUSID").innerHTML='<a href="javascript:ConfirmMainStatusRemoval('+n[2]+')">Remove<\/a>';document.getElementById("CURRENTSTATUS").innerHTML=n[0]}};t.open("GET",i,!0);t.send(null)}}function GetXmlHttpObject(){var n=null;return window.XMLHttpRequest?n=new XMLHttpRequest:window.ActiveXObject&&(n=new ActiveXObject("Microsoft.XMLHTTP")),n}var swfobject=function(){function v(){var i,r,n;if(!c){try{i=t.getElementsByTagName("body")[0].appendChild(h("span"));i.parentNode.removeChild(i)}catch(u){return}for(c=!0,r=w.length,n=0;n<r;n++)w[n]()}}function yt(n){c?n():w[w.length]=n}function pt(n){if(typeof r.addEventListener!=i)r.addEventListener("load",n,!1);else if(typeof t.addEventListener!=i)t.addEventListener("load",n,!1);else if(typeof r.attachEvent!=i)ui(r,"onload",n);else if(typeof r.onload=="function"){var u=r.onload;r.onload=function(){u();n()}}else r.onload=n}function gt(){lt?ni():it()}function ni(){var o=t.getElementsByTagName("body")[0],u=h(f),r,e;u.setAttribute("type",p);r=o.appendChild(u);r?(e=0,function(){if(typeof r.GetVariable!=i){var t=r.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),n.pv=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}else if(e<10){e++;setTimeout(arguments.callee,10);return}o.removeChild(u);r=null;it()}()):it()}function it(){var y=s.length,r,t,h,c,v;if(y>0)for(r=0;r<y;r++){var f=s[r].id,e=s[r].callbackFn,o={success:!1,id:f};if(n.pv[0]>0){if(t=u(f),t)if(!g(s[r].swfVersion)||n.wk&&n.wk<312)if(s[r].expressInstall&&ut()){h={};h.data=s[r].expressInstall;h.width=t.getAttribute("width")||"0";h.height=t.getAttribute("height")||"0";t.getAttribute("class")&&(h.styleclass=t.getAttribute("class"));t.getAttribute("align")&&(h.align=t.getAttribute("align"));var p={},a=t.getElementsByTagName("param"),w=a.length;for(c=0;c<w;c++)a[c].getAttribute("name").toLowerCase()!="movie"&&(p[a[c].getAttribute("name")]=a[c].getAttribute("value"));ft(h,p,f,e)}else ti(t),e&&e(o);else l(f,!0),e&&(o.success=!0,o.ref=rt(f),e(o))}else l(f,!0),e&&(v=rt(f),v&&typeof v.SetVariable!=i&&(o.success=!0,o.ref=v),e(o))}}function rt(n){var r=null,t=u(n),e;return t&&t.nodeName=="OBJECT"&&(typeof t.SetVariable!=i?r=t:(e=t.getElementsByTagName(f)[0],e&&(r=e))),r}function ut(){return!d&&g("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function ft(f,e,o,s){var c,v,l,a;d=!0;nt=s||null;at={success:!1,id:o};c=u(o);c&&(c.nodeName=="OBJECT"?(y=et(c),k=null):(y=c,k=o),f.id=ht,(typeof f.width==i||!/%$/.test(f.width)&&parseInt(f.width,10)<310)&&(f.width="310"),(typeof f.height==i||!/%$/.test(f.height)&&parseInt(f.height,10)<137)&&(f.height="137"),t.title=t.title.slice(0,47)+" - Flash Player Installation",v=n.ie&&n.win?"ActiveX":"PlugIn",l="MMredirectURL="+r.location.toString().replace(/&/g,"%26")+"&MMplayerType="+v+"&MMdoctitle="+t.title,typeof e.flashvars!=i?e.flashvars+="&"+l:e.flashvars=l,n.ie&&n.win&&c.readyState!=4&&(a=h("div"),o+="SWFObjectNew",a.setAttribute("id",o),c.parentNode.insertBefore(a,c),c.style.display="none",function(){c.readyState==4?c.parentNode.removeChild(c):setTimeout(arguments.callee,10)}()),ot(f,e,o))}function ti(t){if(n.ie&&n.win&&t.readyState!=4){var i=h("div");t.parentNode.insertBefore(i,t);i.parentNode.replaceChild(et(t),i);t.style.display="none",function(){t.readyState==4?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(et(t),t)}function et(t){var u=h("div"),e,i,o,r;if(n.win&&n.ie)u.innerHTML=t.innerHTML;else if(e=t.getElementsByTagName(f)[0],e&&(i=e.childNodes,i))for(o=i.length,r=0;r<o;r++)i[r].nodeType==1&&i[r].nodeName=="PARAM"||i[r].nodeType==8||u.appendChild(i[r].cloneNode(!0));return u}function ot(t,r,e){var v,y=u(e),w,o,k,a,c,s,l;if(n.wk&&n.wk<312)return v;if(y)if(typeof t.id==i&&(t.id=e),n.ie&&n.win){w="";for(o in t)t[o]!=Object.prototype[o]&&(o.toLowerCase()=="data"?r.movie=t[o]:o.toLowerCase()=="styleclass"?w+=' class="'+t[o]+'"':o.toLowerCase()!="classid"&&(w+=" "+o+'="'+t[o]+'"'));k="";for(a in r)r[a]!=Object.prototype[a]&&(k+='<param name="'+a+'" value="'+r[a]+'" />');y.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+w+">"+k+"<\/object>";b[b.length]=t.id;v=u(t.id)}else{c=h(f);c.setAttribute("type",p);for(s in t)t[s]!=Object.prototype[s]&&(s.toLowerCase()=="styleclass"?c.setAttribute("class",t[s]):s.toLowerCase()!="classid"&&c.setAttribute(s,t[s]));for(l in r)r[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"&&ii(c,l,r[l]);y.parentNode.replaceChild(c,y);v=c}return v}function ii(n,t,i){var r=h("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function wt(t){var i=u(t);i&&i.nodeName=="OBJECT"&&(n.ie&&n.win?(i.style.display="none",function(){i.readyState==4?ri(t):setTimeout(arguments.callee,10)}()):i.parentNode.removeChild(i))}function ri(n){var t=u(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}}function u(n){var i=null;try{i=t.getElementById(n)}catch(r){}return i}function h(n){return t.createElement(n)}function ui(n,t,i){n.attachEvent(t,i);a[a.length]=[n,t,i]}function g(t){var r=n.pv,i=t.split(".");return i[0]=parseInt(i[0],10),i[1]=parseInt(i[1],10)||0,i[2]=parseInt(i[2],10)||0,r[0]>i[0]||r[0]==i[0]&&r[1]>i[1]||r[0]==i[0]&&r[1]==i[1]&&r[2]>=i[2]?!0:!1}function bt(r,u,o,s){var a,c,l;n.ie&&n.mac||(a=t.getElementsByTagName("head")[0],a)&&(c=o&&typeof o=="string"?o:"screen",s&&(e=null,tt=null),e&&tt==c||(l=h("style"),l.setAttribute("type","text/css"),l.setAttribute("media",c),e=a.appendChild(l),n.ie&&n.win&&typeof t.styleSheets!=i&&t.styleSheets.length>0&&(e=t.styleSheets[t.styleSheets.length-1]),tt=c),n.ie&&n.win?e&&typeof e.addRule==f&&e.addRule(r,u):e&&typeof t.createTextNode!=i&&e.appendChild(t.createTextNode(r+" {"+u+"}")))}function l(n,t){if(vt){var i=t?"visible":"hidden";c&&u(n)?u(n).style.visibility=i:bt("#"+n,"visibility:"+i)}}function kt(n){var t=/[\\\"<>\.;]/.exec(n)!=null;return t&&typeof encodeURIComponent!=i?encodeURIComponent(n):n}var i="undefined",f="object",st="Shockwave Flash",dt="ShockwaveFlash.ShockwaveFlash",p="application/x-shockwave-flash",ht="SWFObjectExprInst",ct="onreadystatechange",r=window,t=document,o=navigator,lt=!1,w=[gt],s=[],b=[],a=[],y,k,nt,at,c=!1,d=!1,e,tt,vt=!0,n=function(){var l=typeof t.getElementById!=i&&typeof t.getElementsByTagName!=i&&typeof t.createElement!=i,e=o.userAgent.toLowerCase(),s=o.platform.toLowerCase(),a=s?/win/.test(s):/win/.test(e),v=s?/mac/.test(s):/mac/.test(e),y=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,h=!+"\v1",u=[0,0,0],n=null,c;if(typeof o.plugins!=i&&typeof o.plugins[st]==f)n=o.plugins[st].description,!n||typeof o.mimeTypes!=i&&o.mimeTypes[p]&&!o.mimeTypes[p].enabledPlugin||(lt=!0,h=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),u[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10),u[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10),u[2]=/[a-zA-Z]/.test(n)?parseInt(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof r.ActiveXObject!=i)try{c=new ActiveXObject(dt);c&&(n=c.GetVariable("$version"),n&&(h=!0,n=n.split(" ")[1].split(","),u=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]))}catch(w){}return{w3:l,pv:u,wk:y,ie:h,win:a,mac:v}}(),fi=function(){n.w3&&((typeof t.readyState!=i&&t.readyState=="complete"||typeof t.readyState==i&&(t.getElementsByTagName("body")[0]||t.body))&&v(),c||(typeof t.addEventListener!=i&&t.addEventListener("DOMContentLoaded",v,!1),n.ie&&n.win&&(t.attachEvent(ct,function(){t.readyState=="complete"&&(t.detachEvent(ct,arguments.callee),v())}),r==top&&function(){if(!c){try{t.documentElement.doScroll("left")}catch(n){setTimeout(arguments.callee,0);return}v()}}()),n.wk&&function(){if(!c){if(!/loaded|complete/.test(t.readyState)){setTimeout(arguments.callee,0);return}v()}}(),pt(v)))}(),ei=function(){n.ie&&n.win&&window.attachEvent("onunload",function(){for(var e=a.length,r,i,u,f,t=0;t<e;t++)a[t][0].detachEvent(a[t][1],a[t][2]);for(r=b.length,i=0;i<r;i++)wt(b[i]);for(u in n)n[u]=null;n=null;for(f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(t,i,r,u){if(n.w3&&t&&i){var f={};f.id=t;f.swfVersion=i;f.expressInstall=r;f.callbackFn=u;s[s.length]=f;l(t,!1)}else u&&u({success:!1,id:t})},getObjectById:function(t){if(n.w3)return rt(t)},embedSWF:function(t,r,u,e,o,s,h,c,a,v){var y={success:!1,id:r};n.w3&&!(n.wk&&n.wk<312)&&t&&r&&u&&e&&o?(l(r,!1),yt(function(){var n,b,p,k,w,d;if(u+="",e+="",n={},a&&typeof a===f)for(b in a)n[b]=a[b];if(n.data=t,n.width=u,n.height=e,p={},c&&typeof c===f)for(k in c)p[k]=c[k];if(h&&typeof h===f)for(w in h)typeof p.flashvars!=i?p.flashvars+="&"+w+"="+h[w]:p.flashvars=w+"="+h[w];if(g(o))d=ot(n,p,r),n.id==r&&l(r,!0),y.success=!0,y.ref=d;else{if(s&&ut()){n.data=s;ft(n,p,r,v);return}l(r,!0)}v&&v(y)})):v&&v(y)},switchOffAutoHideShow:function(){vt=!1},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:g,createSWF:function(t,i,r){return n.w3?ot(t,i,r):undefined},showExpressInstall:function(t,i,r,u){n.w3&&ut()&&ft(t,i,r,u)},removeSWF:function(t){n.w3&&wt(t)},createCSS:function(t,i,r,u){n.w3&&bt(t,i,r,u)},addDomLoadEvent:yt,addLoadEvent:pt,getQueryParamValue:function(n){var r=t.location.search||t.location.hash,u,i;if(r){if(/\?/.test(r)&&(r=r.split("?")[1]),n==null)return kt(r);for(u=r.split("&"),i=0;i<u.length;i++)if(u[i].substring(0,u[i].indexOf("="))==n)return kt(u[i].substring(u[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(d){var t=u(ht);t&&y&&(t.parentNode.replaceChild(y,t),k&&(l(k,!0),n.ie&&n.win&&(y.style.display="block")),nt&&nt(at));d=!1}}}}(),votesubmit=0,Rank0="&nbsp;",Rank1="Would Not Recommend",Rank2="OK",Rank3="Above Average",Rank4="Very Good",Rank5="Great!",downStrokeField,r={special:/[\W]/g,quotes:/['\''&'\"']/g,notnumbers:/[^\d]/g},monthNames,weekdayNames,dateParsePatterns,dp_dateFormat,sEventType,LoadingAlert;addEvent.guid=1;fixEvent.preventDefault=function(){this.returnValue=!1};fixEvent.stopPropagation=function(){this.cancelBubble=!0};window.addEventListener||(document.onreadystatechange=function(){window.onload&&window.onload!=handleEvent&&(addEvent(window,"load",window.onload),window.onload=handleEvent)});window.onDOMLoadEvents=[];window.DOMContentLoadedInitDone=!1;setTimeout("DOMContentLoadedScheduler()",250);addEvent(window,"load",DOMContentLoadedInit);document.addEventListener&&document.addEventListener("DOMContentLoaded",DOMContentLoadedInit,!1);var cp_timeoutDelay=2e3,cp_timeoutId=!1,cp_location=1,g_startDay=0,g_Calendar;Calendar.prototype.show=function(e,target,dateFormat,dateFrom,dateTo,menuYearFrom,menuYearTo){var elSrc,x,y,obj,yScroll,tmp,atmp,delim,i,theDate,tmpCurYear;if(!document.getElementById){alert("This browser is not suppored for a calendar popup.");return}if(!document.getElementById(target)){alert('Error: input field "'+target+'" does not exist.');return}if(this.containerLayer=document.getElementById("calcontainer"),this.containerLayer||(this.containerLayer=document.createElement("div"),this.containerLayer.id="calcontainer",this.containerLayer.onmouseout=calendarTimeout,this.containerLayer.onmouseover=calendarClearTimeout,this.containerLayer.onclick=this.handleClick,document.body.insertBefore(this.containerLayer,document.body.childNodes[0])),this.isVisible()){this.hide();return}if(calendarClearTimeout(),e||(e=window.event),e.target?elSrc=e.target:e.srcElement&&(elSrc=e.srcElement),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),x=y=0,obj=cp_location==1?document.getElementById(target):elSrc,obj.offsetParent)while(obj)x+=obj.offsetLeft,y+=obj.offsetTop,obj=obj.offsetParent;else x=obj.x,y=obj.y;if(cp_location==1?(self.pageYOffset?yScroll=self.pageYOffset:document.documentElement&&document.documentElement.scrollTop?yScroll=document.documentElement.scrollTop:document.body&&(yScroll=document.body.scrollTop),this.containerLayer.style.left=x+"px",this.containerLayer.style.top=y+document.getElementById(target).offsetHeight+1+this.containerLayer.offsetHeight>this.getWindowHeight()+yScroll?y-this.containerLayer.offsetHeight-1+"px":y+document.getElementById(target).offsetHeight+1+"px"):(this.containerLayer.style.left=x+elSrc.offsetWidth+1+"px",this.containerLayer.style.top=y+"px"),this.dateFrom=dateFrom||new Date(1900,0,1),this.dateFromDay=this.padZero(this.dateFrom.getDate()),this.dateFromMonth=this.padZero(this.dateFrom.getMonth()),this.dateFromYear=this.dateFrom.getFullYear(),this.dateTo=dateTo||new Date(3e3,0,1),this.dateToDay=this.padZero(this.dateTo.getDate()),this.dateToMonth=this.padZero(this.dateTo.getMonth()),this.dateToYear=this.dateTo.getFullYear(),this.dateToday=new Date,this.tYear=this.dateToday.getFullYear(),this.tMonth=this.dateToday.getMonth(),this.tDay=this.dateToday.getDate(),dateFormat?this.dateFormat=dateFormat:dp_dateFormat?this.dateFormat=dp_dateFormat:this.dateFormat||(this.dateFormat="m/d/yyyy"),dp_dateFormat=this.dateFormat,this.dateDelim=this.dateFormat.indexOf("-")!=-1?"-":this.dateFormat.indexOf("/")!=-1?"/":this.dateFormat.indexOf(".")!=-1?".":this.dateFormat.indexOf(" ")!=-1?" ":"/",this.target=target,tmp=document.getElementById(this.target),tmp.className=tmp.className.replace("error","").replace("  "," "),tmp&&tmp.value&&tmp.value.split(this.dateDelim).length==3){atmp=tmp.value.split(this.dateDelim);delim=eval("/\\"+this.dateDelim+"/g");switch(this.dateFormat.replace(delim,"")){case"ddmmmyyyy":case"dmmmyyyy":for(this.day=1,this.year=this.oYear=parseInt(atmp[2],10),i=0;i<this.months.length;i++)if(atmp[1].toLowerCase()==this.months[i].substr(0,3).toLowerCase()){this.month=this.oMonth=i;break}this.day=parseInt(atmp[0],10);break;case"ddmmyyyy":case"dmmyyyy":case"dmyyyy":this.day=1;this.year=this.oYear=parseInt(atmp[2],10);this.month=this.oMonth=parseInt(atmp[1]-1,10);this.day=parseInt(atmp[0],10);break;case"mmddyyyy":case"mddyyyy":case"mdyyyy":this.day=1;this.year=this.oYear=parseInt(atmp[2],10);this.month=this.oMonth=parseInt(atmp[0]-1,10);this.day=parseInt(atmp[1],10);break;case"yyyymmdd":this.day=1;this.year=this.oYear=parseInt(atmp[0],10);this.month=this.oMonth=parseInt(atmp[1]-1,10);this.day=parseInt(atmp[2],10)}}else theDate=new Date,this.year=this.oYear=theDate.getFullYear(),this.month=this.oMonth=theDate.getMonth(),this.day=this.oDay=theDate.getDate();this.menuYearFrom=menuYearFrom||this.year-3;this.menuYearTo=menuYearTo||this.year+3;tmpCurYear=(new Date).getFullYear();this.menuYearTo<tmpCurYear&&(this.menuYearTo=tmpCurYear);this.menuYearTo++;this.writeString(this.buildString());this.containerLayer.style.visibility="visible"};Calendar.prototype.buildString=function(){var n="",e=[],u,h,o,i,f,a,v,l,c,s,r;if(this.Holidays)for(u=0;u<this.Holidays.length;u++)this.Holidays[u].date.getFullYear()==this.year&&this.Holidays[u].date.getMonth()==this.month&&(e[e.length]=this.Holidays[u]);for(document.all&&document.getElementById&&!window.Opera&&navigator.appVersion.substr(22,3)!="5.0"&&(n='<iframe src="about:blank" scrolling="no" frameborder="0" style="width: '+this.containerLayer.offsetWidth+"px; height: "+this.containerLayer.offsetHeight+'px; z-index: -1; position: absolute; filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);"><\/iframe>'),n+='<table cellspacing="0">',n+='<thead><tr><td colspan="7"><ul>\n<li id="cp_prevMonth"><a href="javascript:g_Calendar.changeMonth(-1)" title="Goto last month"><span>&lt;<\/span><\/a><\/li>\n<li id="cp_monthMenu"><a href="javascript:g_Calendar.openMenuMonths()" title="Open month menu">'+this.months[this.month]+'<\/a>\n<ul id="cp_months"><li><a href="javascript:g_Calendar.clickMonth(0)">January<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(1)">February<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(2)">March<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(3)">April<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(4)">May<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(5)">June<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(6)">July<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(7)">August<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(8)">September<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(9)">October<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(10)">November<\/a><\/li><li><a href="javascript:g_Calendar.clickMonth(11)">December<\/a><\/li><\/ul><\/li>\n<li id="cp_nextMonth"><a href="javascript:g_Calendar.changeMonth(1)" title="Goto next month"><span>&gt;<\/span><\/a><\/li>\n<li id="cp_prevYear"><a href="javascript:g_Calendar.changeYear(-1)" title="Goto last year"><span>&lt;<\/span><\/a><\/li>\n<li id="cp_yearMenu"><a href="javascript:g_Calendar.openMenuYears();" title="Open year menu">'+this.year+"<\/a>\n",n+=this.menuYearTo-this.menuYearFrom>7?'<ul id="cp_years" style="overflow: auto; overflow-x: hidden; overflow-y: auto;">':'<ul id="cp_years">',h=this.menuYearTo,h<=this.year&&(h=this.year+1),o=this.menuYearFrom;o<h;o++)n+='<li><a href="javascript:g_Calendar.clickYear('+o+')">'+o+"<\/a><\/li>";n+='<\/ul><\/li>\n<li id="cp_nextYear"><a href="javascript:g_Calendar.changeYear(1)" title="Goto next year"><span>&gt;<\/span><\/a><\/li>\n<\/ul><\/td><\/tr>';var t=1,y=(7+this.getFirstDOM()-g_startDay)%7,p=this.getDaysInMonth();for(n+="<tr>",i=0;i<7;i++)n+="<th>"+this.daysOfWeek[(g_startDay+i)%7]+"<\/th>";for(f=new Date,n+='<\/tr><\/thead><tfoot><tr><td colspan="7">Today is: <a href="javascript:g_Calendar.clickToday()" title="Goto current month">'+(/^d/.test(this.dateFormat)?f.getDate()+" "+this.months[f.getMonth()]+" ":this.months[f.getMonth()]+" "+f.getDate()+", ")+f.getFullYear()+"<\/a><\/td><\/tr><\/tfoot><tbody>",a=parseInt(""+this.dateFromYear+this.dateFromMonth+this.dateFromDay,10),v=parseInt(""+this.dateToYear+this.dateToMonth+this.dateToDay,10),c=1;c<=6;c++){for(n+="<tr>",i=1;i<=7;i++){for(s=!0,r="",u=0;u<e.length;u++)e[u].date.getDate()==t&&(this.showHolidays||(s=!1),r=e[u].desc);n+="<td ";7*(c-1)+i>=y+1&&t<=p?(t==this.day&&this.year==this.oYear&&this.month==this.oMonth?n+='class="calHighlightColor"':(i==7-g_startDay||i==(7-g_startDay)%7+1)&&(n+='class="calWeekend"'),n+=">",this.dayMask[i-1]==0?s=!1:(l=parseInt(""+this.year+this.padZero(this.month)+this.padZero(t),10),l>=a&&l<=v||(s=!1)),n+=s?t==this.tDay&&this.year==this.tYear&&this.month==this.tMonth?'<a class="today"'+(r==""?"":' title="'+r+'"')+' href="javascript: g_Calendar.clickDay('+t+');"><strong>'+t+"<\/strong><\/a>":"<a"+(r==""?"":' title="'+r+'"')+' href="javascript: g_Calendar.clickDay('+t+');">'+t+"<\/a>":t==this.tDay&&this.year==this.tYear&&this.month==this.tMonth?"<span"+(r==""?"":' title="'+r+'"')+' class="disabled today"><strong>'+t+"<\/strong><\/span>":"<span"+(r==""?"":' title="'+r+'"')+' class="disabled">'+t+"<\/span>",t++):((i==7-g_startDay||i==(7-g_startDay)%7+1)&&(n+='class="calWeekend"'),n+=(r==""?"":' title="'+r+'"')+">&nbsp;");n+="<\/td>"}n+="<\/tr>"}return n+="<\/tbody>",n+"<\/table>"};Calendar.prototype.setDateFormat=function(n){this.dateFormat=n||"m/d/yyyy";dp_dateFormat=this.dateFormat};Calendar.prototype.setDayMask=function(n){for(var i=this.dayMask.length>n.length?n.length:this.dayMask.length,t=0;t<i;t++)this.dayMask[t]=n[t];return this.dayMask};Calendar.prototype.setHolidays=function(n,t){return this.Holidays=n,this.showHolidays=t,n};Calendar.prototype.getFirstDOM=function(){var n=new Date;return n.setDate(1),n.setMonth(this.month),n.setFullYear(this.year),n.getDay()};Calendar.prototype.getDaysInMonth=function(){return this.month!=1?this.daysInMonth[this.month]:this.isLeapYear(this.year)?29:28};Calendar.prototype.isLeapYear=function(n){return n%4==0&&(n%100!=0||n%400==0)?!0:!1};Calendar.prototype.selectChange=function(n){this.month=n.selectedIndex;this.writeString(this.buildString())};Calendar.prototype.inputChange=function(n){var t=n;t.value>=1900&&t.value<=2100?(this.year=t.value,this.writeString(this.buildString())):t.value=this.year};Calendar.prototype.changeYear=function(n){n==1?this.year++:this.year--;this.writeString(this.buildString())};Calendar.prototype.changeMonth=function(n){this.month==11&&n==1?(this.month=0,this.year++):this.month==0&&n==-1?(this.month=11,this.year--):n==1?this.month++:this.month--;this.writeString(this.buildString())};Calendar.prototype.clickDay=function(n){var t=document.getElementById(this.target);t&&(t.value=this.formatDateAsString(n,this.month,this.year),magicDate&&magicDate(t),t.focus());this.hide()};Calendar.prototype.clickMonth=function(n){this.month=n;this.writeString(this.buildString())};Calendar.prototype.clickYear=function(n){this.year=n;this.writeString(this.buildString())};Calendar.prototype.clickToday=function(){var n=new Date;this.year=n.getFullYear();this.month=n.getMonth();this.writeString(this.buildString())};Calendar.prototype.formatDateAsString=function(day,month,year){var delim=eval("/\\"+this.dateDelim+"/g");switch(this.dateFormat.replace(delim,"")){case"ddmmmyyyy":return this.padZero(day)+this.dateDelim+this.months[month].substr(0,3)+this.dateDelim+year;case"dmmmyyyy":return day+this.dateDelim+this.months[month].substr(0,3)+this.dateDelim+year;case"ddmmyyyy":return this.padZero(day)+this.dateDelim+this.padZero(month+1)+this.dateDelim+year;case"dmmyyyy":return day+this.dateDelim+this.padZero(month+1)+this.dateDelim+year;case"mmddyyyy":return this.padZero(month+1)+this.dateDelim+this.padZero(day)+this.dateDelim+year;case"mddyyyy":return month+1+this.dateDelim+this.padZero(day)+this.dateDelim+year;case"mdyyyy":return month+1+this.dateDelim+day+this.dateDelim+year;case"yyyymmdd":return year+this.dateDelim+this.padZero(month+1)+this.dateDelim+this.padZero(day);default:return month+1+this.dateDelim+this.padZero(day)+this.dateDelim+year}};Calendar.prototype.writeString=function(n){this.containerLayer.innerHTML=n};Calendar.prototype.hide=function(){calendarClearTimeout();this.containerLayer.style.visibility="hidden"};Calendar.prototype.isVisible=function(){return this.containerLayer.style.visibility=="visible"?!0:!1};Calendar.prototype.isHidden=function(){return this.containerLayer.style.visibility=="hidden"?!0:!1};Calendar.prototype.padZero=function(n){return n<=9?"0"+n:n};Calendar.prototype.getWindowHeight=function(){var n=0;return typeof window.innerHeight=="number"?n=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?n=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(n=document.body.clientHeight),n};Calendar.prototype.openMenu=function(n){var t=document.getElementById(n);t&&(t.className=t.className=="open"?"":"open")};Calendar.prototype.closeMenu=function(n){var t=document.getElementById(n);t&&(t.className="")};Calendar.prototype.openMenuMonths=function(){this.closeMenu("cp_years");this.openMenu("cp_months")};Calendar.prototype.openMenuYears=function(){this.closeMenu("cp_months");this.openMenu("cp_years")};Calendar.prototype.closeMenus=function(){this.closeMenu("cp_years");this.closeMenu("cp_months")};Calendar.prototype.handleClick=function(n){n||(n=window.event);n.target?elSrc=n.target:n.srcElement&&(elSrc=n.srcElement);n.pageX||n.pageY?(x=n.pageX,y=n.pageY):(n.clientX||n.clientY)&&(x=n.clientX+document.body.scrollLeft,y=n.clientY+document.body.scrollTop);y>parseInt(g_Calendar.containerLayer.style.top,10)+20&&g_Calendar.closeMenus();n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()};Date.prototype.addDays=function(n){return new Date(n*864e5+this.valueOf())};new Calendar(new Date);window.document.onclick=cp_handleDocumentClick;Array.prototype.indexOf=function(n){for(var t=0;t<this.length;t++)if(this[t]==n)return t;return-1};Array.prototype.filter=function(n){for(var i=[],t=0;t<this.length;t++)n(this[t])&&(i[i.length]=this[t]);return i};monthNames="January February March April May June July August September October November December".split(" ");weekdayNames="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ");dateParsePatterns=[{re:/^tod/i,handler:function(){return new Date}},{re:/^tom/i,handler:function(){var n=new Date;return n.setDate(n.getDate()+1),n}},{re:/^yes/i,handler:function(){var n=new Date;return n.setDate(n.getDate()-1),n}},{re:/^(\d{1,2})(st|nd|rd|th)?$/i,handler:function(n){var t=new Date;return t.setDate(parseInt(n[1],10)),t}},{re:/^(\d{1,2})(?:st|nd|rd|th)? (\w+)$/i,handler:function(n){var t=new Date;return t.setDate(1),t.setMonth(parseMonth(n[2])),t.setDate(parseInt(n[1],10)),t}},{re:/^(\d{1,2})(?:st|nd|rd|th)? (\w+),? (\d{4})$/i,handler:function(n){var t=new Date;return t.setDate(1),t.setYear(n[3]),t.setMonth(parseMonth(n[2])),t.setDate(parseInt(n[1],10)),t}},{re:/^(\w+) (\d{1,2})(?:st|nd|rd|th)?$/i,handler:function(n){var t=new Date;return t.setDate(1),t.setMonth(parseMonth(n[1])),t.setDate(parseInt(n[2],10)),t}},{re:/^(\w+) (\d{1,2})(?:st|nd|rd|th)?,? (\d{4})$/i,handler:function(n){var t=new Date;return t.setDate(1),t.setYear(n[3]),t.setMonth(parseMonth(n[1])),t.setDate(parseInt(n[2],10)),t}},{re:/^ne(?:xt)* (\w+)$/i,handler:function(n){var i=new Date,r=i.getDay(),u=parseWeekday(n[1]),t=u-r;return(u<=r||t+r<7)&&(t+=7),1==t&&(t+=7),i.setDate(i.getDate()+t),i}},{re:/^la(?:st)* (\w+)$/i,handler:function(n){var i=new Date,r=i.getDay(),u=parseWeekday(n[1]),t=-1*(r+7-u)%7;return 0==t?t=-7:-1==t&&(t-=7),i.setDate(i.getDate()+t),i}},{re:/^th(?:is)* (\w+)$/i,handler:function(n){var t=new Date,i=t.getDay(),r=parseWeekday(n[1]),u=r-i;return r<=i&&(u+=7),t.setDate(t.getDate()+u),t}},{re:/^fir(?:st)* (\w+)$/i,handler:function(n){var t=new Date,i,r,u;return(t.setDate(1),i=t.getDay(),r=parseWeekday(n[1]),i==r)?t:(u=r-i,r<i&&(u+=7),t.setDate(t.getDate()+u),t)}},{re:/^sec(?:ond)* (\w+)$/i,handler:function(n){var t=new Date;t.setDate(1);var r=t.getDay(),u=parseWeekday(n[1]),i=u-r;return u<r&&(i+=7),i+=7,t.setDate(t.getDate()+i),t}},{re:/^thi(?:rd)* (\w+)$/i,handler:function(n){var t=new Date;t.setDate(1);var r=t.getDay(),u=parseWeekday(n[1]),i=u-r;return u<r&&(i+=7),i+=14,t.setDate(t.getDate()+i),t}},{re:/^fo(?:urth)* (\w+)$/i,handler:function(n){var t=new Date;t.setDate(1);var r=t.getDay(),u=parseWeekday(n[1]),i=u-r;return u<r&&(i+=7),i+=21,t.setDate(t.getDate()+i),t}},{re:/^fi(?:fth)* (\w+)$/i,handler:function(n){var t=new Date;t.setDate(1);var r=t.getDay(),u=parseWeekday(n[1]),i=u-r;return u<r&&(i+=7),i+=28,t.setDate(t.getDate()+i),t}},{re:/(\d{1,2})\/(\d{1,2})\/(\d{4})/,handler:function(n){var t=new Date;return t.setDate(1),dp_dateFormat&&dp_dateFormat.substr(0,1)!="m"?(t.setYear(n[3]),t.setMonth(parseInt(n[2],10)-1),t.setDate(parseInt(n[1],10))):(t.setYear(n[3]),t.setMonth(parseInt(n[1],10)-1),t.setDate(parseInt(n[2],10))),t}},{re:/(\d{1,2})-(\d{1,2})-(\d{4})/,handler:function(n){var t=new Date;return t.setDate(1),dp_dateFormat&&dp_dateFormat.substr(0,1)!="m"?(t.setYear(n[3]),t.setMonth(parseInt(n[2],10)-1),t.setDate(parseInt(n[1],10))):(t.setYear(n[3]),t.setMonth(parseInt(n[1],10)-1),t.setDate(parseInt(n[2],10))),t}},{re:/(\d{1,2})\.(\d{1,2})\.(\d{4})/,handler:function(n){var t=new Date;return t.setDate(1),dp_dateFormat&&dp_dateFormat.substr(0,1)!="m"?(t.setYear(n[3]),t.setMonth(parseInt(n[2],10)-1),t.setDate(parseInt(n[1],10))):(t.setYear(n[3]),t.setMonth(parseInt(n[1],10)-1),t.setDate(parseInt(n[2],10))),t}},{re:/(\d{4})-(\d{1,2})-(\d{1,2})/,handler:function(n){var t=new Date;return t.setDate(1),t.setYear(parseInt(n[1],10)),t.setMonth(parseInt(n[2],10)-1),t.setDate(parseInt(n[3],10)),t}}];try{if(addEvent){try{addDOMLoadEvent&&(sEventType="DOMContentLoaded")}catch(e){sEventType="load"}addEvent(window,sEventType,function(){for(var t=document.getElementsByTagName("input"),n=0;n<t.length;n++)/\bdateparse\b/.test(t[n].className)&&(addEvent(t[n],"blur",function(){magicDate(this)}),addEvent(t[n],"focus",function(){this.className!="error"&&this.select()}))})}}catch(e){}LoadingAlert='<table cellpadding="0" cellspacing="0" border="0"><tr><td style="height:10px"><\/td><\/tr><table><table cellpadding="3" cellspacing="1" border="0" style="background-color:#EEEEEE"><tr><td style="background-color:#F7F7F7"><table cellpadding="0" cellspacing="0" border="0"><tr style="height:22px"><td><img src="<%=G_CDNROOT%>/images/register_loading.gif"><\/td><td class="f5" style="color:#999999;padding-left:10px">&nbsp;Loading...<\/td><\/tr><\/table><\/td><\/tr><\/table>'