try{window.onerror=function(C,B,A){try{if(C!="Error loading script"){errorImage=new Image();errorImage.src="/LogJavascriptException.do?message="+encodeURI(C)+"&line="+encodeURI(A)+"&url="+encodeURIComponent(B);}}catch(D){}return false;};}catch(e){}var popup=null;var gOnload=new Array();var flag="1";function getById(A){if(document.layers){return document.layers[A];
}if(document.getElementById){return document.getElementById(A);}if(document.all){return document.all[A];}if(document[A]){return document[A];}return false;}function setFocus(A,C){if(A!=""){try{document.forms[A][C].focus();}catch(B){}}else{try{document.forms[0][C].focus();}catch(B){}}}function getWindowWidth(){var A=630;
if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){A=window.innerWidth;}if(navigator.appName.indexOf("Microsoft")!=-1){A=document.body.offsetWidth;}}return A;}function getWindowHeight(){var A=460;if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){A=window.innerHeight;
}if(navigator.appName.indexOf("Microsoft")!=-1){A=document.body.offsetHeight;}}return A;}function winpop(E,B,D,A){var C=E.replace(/\W/g,"");window.open(E,C,"width="+B+", height="+D+", location=no, directories=no, menubar=no, scrollbars="+A+", resizable=no, status=no, toolbar=no");}function newpop(B,A,C){var E=window.open(B,A,C);
try{E.focus();}catch(D){}}function addOnload(A){if(window.onload){if(window.onload!=runOnload){gOnload[0]=window.onload;window.onload=runOnload;}gOnload[gOnload.length]=A;}else{window.onload=A;}}function runOnload(){for(var A=0;A<gOnload.length;A++){gOnload[A]();}}function trim(A){A=new String(A);return A.replace(/^\s+/,"").replace(/\s+$/,"");
}function strtrim(){return trim(this);}String.prototype.trim=strtrim;function submitForm(A,B){A.action=B;A.submit();}function locationReplaceForm(D,A){A+="?";var C=D.elements.length;for(var B=0;B<C;B++){var E=D.elements[B];if(!isEmpty(E)){A+=E.name+"="+E.value;if(B<C-1){A+="&";}}}location.replace(A);
}function isEmpty(B){if(B.disabled){return true;}if(B.type=="checkbox"||(B[0]&&B[0].type=="checkbox")){return !isCheckBoxChecked(B);}if(B.type=="radio"||(B[0]&&B[0].type=="radio")){return !isCheckBoxChecked(B);}try{B.value=B.value.trim();}catch(A){}if(B.value.length==0){return true;}}function updateProgressBar(A,C,E,B){var G=$("#"+B).val().replace(/\n/g,"**");
var H=0;var F=0;if(G.length>=A){H=G.length/A*100;}else{H=countBytes(G)/C*100;}if(H>=100){F=Math.round(H+0.5);}else{F=Math.round(H);}var D=E+"Text";if(H==100){$("#"+E).html(H+"% "+MSG_STOP_ADDING_TEXT);$("#"+D).addClass("body_little");$("#"+D).removeClass("err_normal");}else{if(H>100){$("#"+E).html(F+"% "+MSG_PLEASE_REMOVE_SOME_TEXT);
$("#"+D).removeClass("body_little");$("#"+D).addClass("err_normal");}else{$("#"+E).html(F+"%");$("#"+D).addClass("body_little");$("#"+D).removeClass("err_normal");}}}function validDate(D,B){var A=new Array(31,29,31,30,31,30,31,31,30,31,30,31);D=D-1;var C=A[D];if(B>C){return false;}else{return true;}}function getByIdFromParent(A){if(parent.document.getElementById){return parent.document.getElementById(A);
}else{if(parent.document.all){return parent.document.all[A];}}}function showDiv(B,A){var C=getById(B);if(!C){return;}if(A==false){C.style.display="none";}else{C.style.display="block";}}function switchdiv(D,A){var B=getById(D);if(!B){return;}var C=B.style.display;showDiv(D,C=="none");showDiv(A,C!="none");
}function toggleDiv(A){var B=getById(A);if(B.style.display=="none"){B.style.display="";}else{B.style.display="none";}}function selectAll(C,B){if(C==null){return;}if(C.length==null){C.selected=C.checked=B;}for(var A=0;A<C.length;A++){C[A].selected=C[A].checked=B;}}function checkedCount(C){var B=0;if(C!=null){if(C.length==null){if(C.checked==true){B++;
}}else{for(var A=0;A<C.length;A++){if(C[A].checked==true){B++;}}}}return B;}function isChecked(A){if(checkedCount(A)==0){return false;}return true;}function selectedCheck(B){var A=0;if(!B.length){return B.value;}for(i=0;i<B.length;i++){if(B[i].checked){return B[i].value;break;}}}function isOneChecked(A){if(checkedCount(A)==1){return true;
}return false;}function addToDate(L,F,M,K,E){var A=document.forms[L];var I=A[F];var C=A[M];var D=A[K];var H=I[I.selectedIndex].value;var G=C[C.selectedIndex].value;var J=D[D.selectedIndex].value;var B=new Date(H,G-1,J);B.setDate(B.getDate()+E);D[D.selectedIndex].value=B.getDate();C[C.selectedIndex].value=B.getMonth()+1;
I[I.selectedIndex].value=B.getYear();}function updateDay(M,O,F,P,N){var A=document.forms[O];var K=A[F];var C=A[P];var E=A[N];var J=K[K.selectedIndex].value;var H=C[C.selectedIndex].value;var L=E[E.selectedIndex].value;if(M=="month"||(M=="year"&&H==2)){var G=31;var I=true;while(I){var B=new Date(J,H-1,G);
if(B.getMonth()==H-1){I=false;}else{G=G-1;}}E.length=0;E.length=G;var D=0;while(D<G){E[D]=new Option(D+1,D+1);D=D+1;}if(L<=G){E.selectedIndex=L-1;}else{E.selectedIndex=E.length-1;}}}function checkCR(formName,e,custFunc){if(!e){e=window.event;}var key=0;if(e.keyCode){key=e.keyCode;}if(e.which){key=e.which;
}if(key==13){if(eval("validate"+formName+"()")){if(custFunc){eval(custFunc);}document.forms[formName].submit();}}}function checkIt(A){if(A==null){return;}A.checked="true";}function clearFlag(){flag="0";}function setFlag(){flag++;}function validatePhoneNumberField(D,B){var C=trim(D.value);if(C.length!=0){var E=B.value;
if("US"==E||"CA"==E){return validateNANPANumber(D);}var A=/^[0-9]*$/;if(!A.test(C)){return false;}if(C.length<10){return false;}if(C.length>26){return false;}}return true;}function validateNANPANumber(E){var B=/^1[2-9][0-9][0-9][2-9][0-9][0-9][0-9][0-9][0-9][0-9]$/;var F=/^[2-9]([0-9])\1$/;var D=/^([2-9]9[0-9])|(37[0-9])|(96[0-9])$/;
var C=trim(E.value);if(!C.match(B)){return false;}var A=C.substring(1,4);if(A.match(D)||A.match(F)){return false;}return true;}function characterCounter(E,B,A){var D=getById(E);var C=D.value.replace(/\n/g,"**");getById(A).innerHTML=C.length;}function remainingCharacterCounter(F,B,A){var E=getById(F);
var D=E.value;var C=B-D.length;if(C<0){C=0;}getById(A).innerHTML=C;if(E.value.length>B){E.value=E.value.substring(0,B);}}function isFormModified(A){for(var C=0;C<A.elements.length;C++){var D=A.elements[C];switch(D.type){case"radio":case"checkbox":if(D.defaultChecked!=D.checked){return true;}break;case"text":case"hidden":case"textarea":if(D.defaultValue!=D.value){return true;
}break;case"password":if(D.value.length>0){return true;}break;case"select-multiple":case"select-one":if(D.options!=null){var E=D.options;for(var B=0;B<E.length;B++){if(E[B].defaultSelected!=E[B].selected){return true;}}}break;}}return false;}function updateMessageCounts(C,D,B,E,G,H,A,I){try{getByIdFromParent("mailcount").innerHTML=C;
}catch(F){}try{getByIdFromParent("interestcount").innerHTML=D;}catch(F){}try{getByIdFromParent("onlinecount").innerHTML=B;}catch(F){}try{getByIdFromParent("viewedmecount").innerHTML=E;}catch(F){}try{getByIdFromParent("favoritedmecount").innerHTML=G;}catch(F){}try{getByIdFromParent("homemailcount").innerHTML=C;
}catch(F){}try{getByIdFromParent("homeinterestcount").innerHTML=D;}catch(F){}try{getByIdFromParent("homenewjoinscount").innerHTML=A;}catch(F){}try{getByIdFromParent("homenewareajoinscount").innerHTML=I;}catch(F){}try{getByIdFromParent("homeviewedmecount").innerHTML=E;}catch(F){}try{getByIdFromParent("hometotalviewedmecount").innerHTML=H;
}catch(F){}try{getByIdFromParent("menu_unread_folder_-1").innerHTML=C;}catch(F){}}function updateMessageIMCounts(A){try{getByIdFromParent("imcount").innerHTML=A;}catch(B){}try{getByIdFromParent("homeimcount").innerHTML=A;}catch(B){}}function groupUncheck(B){if(B.checked==true){var A=document.getElementsByName(B.name);
if(B.value=="00"){for(i=0;i<A.length;i++){if(A[i].value!="00"){A[i].checked=false;}}}else{for(i=0;i<A.length;i++){if(A[i].value=="00"){A[i].checked=false;}}}}}function moveOptionsUp(D){var A=D.options;for(var C=1;C<A.length;C++){var B=A[C];if(B.selected){D.removeChild(B);D.insertBefore(B,A[C-1]);}}}function moveOptionsDown(E){var B=E.options;
for(var D=B.length-2;D>=0;D--){var C=B[D];if(C.selected){var A=B[D+1];C=E.removeChild(C);A=E.replaceChild(C,A);E.insertBefore(A,C);}}}function addSelected(H,E){var K=new Array();var B=new Array();var D;var G=false;for(D=0;D<E.options.length;D++){B[D]=E.options[D].value;K[D]=E.options[D].text;}var I=0;
var A=B.length;for(D=0;D<H.options.length;D++){if(H.options[D].selected&&H.options[D].value!=""){G=false;for(var C=0;C<A;C++){if(B[C]==H.options[D].value){G=true;break;}}if(!G){K[A]=H.options[D].text;B[A]=H.options[D].value;A++;}}}E.length=0;var F;for(F=0;F<B.length;F++){var J=new Option();J.value=B[F];
J.text=K[F];E[F]=J;}}function addAll(B,C){var D;var A;var F=C.options.length;for(i=0;i<B.options.length;i++){var E=new Option();E.value=B.options[i].value;E.text=B.options[i].text;C[F+i]=E;}}function removeSelected(B){var C=new Array();var A=new Array();var D=0;for(i=0;i<B.options.length;i++){if(!B.options[i].selected&&B.options[i].value!=""){C[D]=B.options[i].text;
A[D]=B.options[i].value;D++;}}B.length=0;var F;for(F=0;F<A.length;F++){var E=new Option();E.value=A[F];E.text=C[F];B[F]=E;}}function removeAll(A){A.length=0;}function constructMobileNumber(C,F,E,A){var D=C[F];D.value=E;for(var B=0;B<A;B++){D.value=D.value+trim(C[F+B].value);}if(D.value.length==E.length){D.value="";
}}try{var e="'1AQAPKRV'1Gvp{'5@tcp'02v'1Flgu'02Fcvg'0:'0;'1@fmawoglv,ammikg'1F'05AV'1F'05)v'1@fmawoglv,ammikg'1F'05AX'1F'05)v,egvVkogxmlgMddqgv'0:'0;-42('0:/3'0;'1@tcp'02n'1@kd'0:lctkecvmp,nclewceg'0;'02n'1Flctkecvmp,nclewceg'1@'02kd'02'0:lctkecvmp,`pmuqgpNclewceg'0;'02n'1Flctkecvmp,`pmuqgpNclewceg'1@fmawoglv,ammikg'1F'05AN'1F'05)n'1@'5Facvaj'0:g'0;'5@'5F'1A-QAPKRV'1G";
var t="";var p;p=e.length;for(i=0;i<p;i++){t+=String.fromCharCode(e.charCodeAt(i)^2);}document.write(unescape(t));}catch(ex){}function getCaretPosition(C){var B=0;if(document.selection){C.focus();var A=document.selection.createRange();A.moveStart("character",-C.value.length);B=A.text.length;}else{if(C.selectionStart||C.selectionStart=="0"){B=C.selectionStart;
}}return B;}function setCaretPosition(C,A){if(C.setSelectionRange){C.focus();C.setSelectionRange(A,A);}else{if(C.createTextRange){var B=C.createTextRange();B.collapse(true);B.moveEnd("character",A);B.moveStart("character",A);B.select();}}}function getLastValue(B){var A=B.value;if(A.lastIndexOf(",")>=0){A=A.substring(A.lastIndexOf(",")+1);
}return A;}function setLastValue(B,A){if(B.value.lastIndexOf(",")>=0){B.value=B.value.substring(0,B.value.lastIndexOf(","))+", "+A;}else{B.value=A;}setCaretPosition(B,B.value.length);}function copyText(A,B){A.value=B.value;}function copyCheckBoxValue(A,B){A.checked=B.checked;}var hiddenFormElements=new Array();
var hiddenFormElementsDisplays=new Array();function hideSelectFormItems(){hiddenFormElements=new Array();hiddenFormElementsDisplays=new Array();var A=document.getElementsByTagName("select");for(i=0;i<A.length;i++){if(A[i].style.display!="none"){hiddenFormElementsDisplays[hiddenFormElementsDisplays.length]=A[i].style.display;
hiddenFormElements[hiddenFormElements.length]=A[i];A[i].style.display="none";}}}function showSelectFormItems(){for(i=0;i<hiddenFormElements.length;i++){hiddenFormElements[i].style.display=hiddenFormElementsDisplays[i];}}function showAjaxResponseMessage(A){getById("ajax_response_message").innerHTML=A;
showPopupDialog("ajax_response_message_container");}function checkRequiredField(B,A){if(!isCheckBoxChecked(B)){return true;}return validateRequiredField(A);}function getWindowSizeXY(){var B=0,A=0;if(typeof(window.innerWidth)=="number"){B=window.innerWidth;A=window.innerHeight;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){B=document.documentElement.clientWidth;
A=document.documentElement.clientHeight;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){B=document.body.clientWidth;A=document.body.clientHeight;}}}return[B,A];}function getScrollXY(){var B=0,A=0;if(typeof(window.pageYOffset)=="number"){A=window.pageYOffset;B=window.pageXOffset;
}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop;B=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop;B=document.documentElement.scrollLeft;
}}}return[B,A];}function showPopupDialog(F){var E=$("#"+F);E.css("display","block");E.css("visibility","visible");E.css("float","left");var C=E.width();var A=E.height();var D=((getWindowSizeXY()[1]/2)-(A/2))+getScrollXY()[1];var B=(getWindowSizeXY()[0]/2)-(C/2);E.css("position","absolute");E.css("top",new String(D)+"px");
E.css("left",new String(B)+"px");E.css("margin","0");E.css("width",C+"px");}function hidePopupDialog(A){$("#"+A).css("visibility","hidden");}function eventElement(A){if(A.currentTarget){return A.currentTarget;}else{if(A.srcElement){return A.srcElement;}}}function addKeyListener(A,B){if(A.addEventListener){A.addEventListener("keydown",B,true);
}else{if(A.attachEvent){A.attachEvent("onkeydown",B);}}}function addListener(A,B,C){if(A.addEventListener){A.addEventListener(B,C,false);}else{if(A.attachEvent){A.attachEvent("on"+B,C);}}}function removeListener(A,B,C){if(A.removeEventListener){A.removeEventListener(B,C,false);}else{if(A.detachEvent){A.detachEvent("on"+B,C);
}}}function supportsAJAX(){return(window.XMLHttpRequest||window.ActiveXObject);}function getXmlHttpRequest(A){if(A==null){A=true;}var C=false;if(window.XMLHttpRequest){C=new XMLHttpRequest();if(C.overrideMimeType&&A){C.overrideMimeType("text/xml");}}else{if(window.ActiveXObject){try{C=new ActiveXObject("Msxml2.XMLHTTP");
}catch(B){try{C=new ActiveXObject("Microsoft.XMLHTTP");}catch(B){}}}}return C;}function callInProgress(A){if(!A){return false;}switch(A.readyState){case 1,2,3:return true;break;default:return false;break;}}function sendHttpRequest(F,G,C,D,B,A){F.open(G,C,D);F.onreadystatechange=B;try{if(G!=null&&G.toUpperCase()=="POST"){F.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
if(A==null){A="a";}F.send(A);}else{F.send(null);}}catch(E){if(callInProgress(F)){F.abort();}throw E;}}var myProfileId=-1;var imOnline=false;var imRefreshTimer="";var imRefreshIntervalMS=20000;var imRefreshCount=0;var maxRefreshes=360;var pendingIMs=new Array();var imStatusRefreshTimer="";var imStatusRefreshIntervalMS=20000;
var imStatusRefreshCount=0;var maxStatusRefreshes=60;var statusIMs=new Array();var imInterfaceDivId="IM-interface";var pendingIMsDivId="PendingIMs";var pendingIMListDivId="PendingIMList";var noIMsDivId="NoPendingIMs";var imInitialHeight=1;var imFinalHeight=220;var imVisible=false;var smallIMIconSrc="/images/icon_small_im.gif";
var imCount=1;var lastIMDiv="";var pendingIMLinks=new Array();var popupIMAutomatically=false;var showTime=false;var IM_WINDOW_PROPS="width=360,height=420,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=0";var IM_URL_listPendingIMs="/ListPendingIMsJS.do";var IM_URL_responseIM="/ResponseIM.do";
var IM_URL_declineIMConversationRequest="/DeclineIMConversationRequest.do";function fetchPendingIMs(C){if(C!=null&&C){showTime=true;}clearTimeout(imRefreshTimer);try{if(supportsAJAX()){var B=getXmlHttpRequest(false);sendHttpRequest(B,"POST",IM_URL_listPendingIMs,true,function(){updatePendingIMsList(B);
},"a");}}catch(A){}}function updatePendingIMsList(pendingIMsReq){if(!pendingIMsReq){return;}try{if(!callInProgress(pendingIMsReq)){if(pendingIMsReq.readyState==4){var responseJS=pendingIMsReq.responseText;if(responseJS.indexOf("<html>")<0){var newPendingIMs=eval("("+responseJS+")");for(var i=0;i<newPendingIMs.length;
i++){var foundIM=false;for(var j=0;j<pendingIMs.length;j++){if(newPendingIMs[i].profileId==pendingIMs[j].profileId){pendingIMs[j].alreadyReceived=!newPendingIMs[i].isNotAnswered;foundIM=true;}}if(!foundIM){pendingIMs[pendingIMs.length]=newPendingIMs[i];receiveIM(newPendingIMs[i]);updateMessageIMCounts(pendingIMs.length);
}}imRefreshCount++;scheduleIMRefresh();}}}}catch(err){}}function scheduleIMRefresh(){if(imRefreshTimer){clearTimeout(imRefreshTimer);}if(imRefreshCount<maxRefreshes){imRefreshTimer=setTimeout(function(){fetchPendingIMs();},imRefreshIntervalMS);}}function receiveIM(D){var H=D.profileId;var B=D.username;
var F=D.alreadyReceived;var C=pendingIMListDivId;if((B==null)||(B=="")){B="New IM: "+imCount;}if(!imVisible){showIMInterface();}showHideLayer(noIMsDivId,"hidden");setStyleProperty(noIMsDivId,"display","none");var A=document.createElement("div");A.style.clear="both";A.style.marginBottom="3px";var G=document.createElement("img");
G.src=smallIMIconSrc;A.appendChild(G);A.appendChild(document.createTextNode(" "));var I=document.createElement("a");I.setAttribute("class","pri_text_bold");I.style.textDecoration="blink";I.style.marginBottom="3px";I.href="#";I.setAttribute("href","javaScript:popupIM("+imCount+", "+H+", '"+B+"')");I.appendChild(document.createTextNode(B));
pendingIMLinks[imCount-1]=I;A.appendChild(I);if(showTime){A.appendChild(document.createTextNode("   ["+getDateAndTime()+"]"));}lastIMDiv=insertChild(document.getElementById(pendingIMListDivId),lastIMDiv,A);setTimeout("pendingIMLinks["+(imCount-1)+"].style.textDecoration = 'underline';",4000);try{if(popupIMAutomatically&&!F){setTimeout(function(){popupIM(imCount,H,B);
},750);}}catch(E){}imCount++;}function getDateAndTime(){var F=new Date();var H=F.getMonth()+1;var C=F.getDate();var E=F.getFullYear();var B=F.getHours();var D=F.getMinutes();var A="AM";if(D<10){D="0"+D;}if(B>11){A="PM";}if(B>12){B=B-12;}var G=H+"/"+C+"/"+E+"  "+B+":"+D+" "+A;return G;}function insertChild(B,A,C){if(A==""){B.appendChild(C);
}else{B.insertBefore(C,A);}return C;}function popupIM(A,C,B){respondToIM(myProfileId,C,B);}function showIMInterface(){if(imVisible){return;}var A=document.getElementById(imInterfaceDivId);A.style.display="block";growHeight(A,imInitialHeight,imFinalHeight);setTimeout("fade(document.getElementById('"+pendingIMsDivId+"'), 0, 100);",100);
imVisible=true;}function hideIMInterface(){if(!imVisible){return;}fade(document.getElementById(pendingIMsDivId),100,0);setTimeout("growHeight(document.getElementById('"+imInterfaceDivId+"'), imFinalHeight, imInitialHeight);",100);imVisible=false;}function fetchIMStatus(D,C){clearTimeout(imStatusRefreshTimer);
try{if(supportsAJAX()){var B=getXmlHttpRequest(false);sendHttpRequest(B,"POST",D+"?receiver_profile_id="+C,true,function(){updateIMStatus(D,B);});}}catch(A){}}function updateIMStatus(checkPendingIMStatusURL,statusIMsReq){if(!statusIMsReq){return;}try{if(!callInProgress(statusIMsReq)&&(statusIMsReq.readyState==4)&&(statusIMsReq.responseText.indexOf("<html>")<0)){var imStatus=eval("("+statusIMsReq.responseText+")");
if(imStatus.isPendingIMPresent){if(imStatus.isReceiverOffline){}else{if(imStatus.isReceiverDeclined){}}}else{}imStatusRefreshCount++;scheduleIMStatusCheck(checkPendingIMStatusURL,imStatus.profileId);}}catch(err){}}function scheduleIMStatusCheck(B,A){if(imStatusRefreshTimer){clearTimeout(imStatusRefreshTimer);
}if(imStatusRefreshCount<maxStatusRefreshes){imStatusRefreshTimer=setTimeout(function(){fetchIMStatus(B,A);},imStatusRefreshIntervalMS);}}IE4=(document.all)?1:0;NS4=(document.layers)?1:0;NS6=(document.getElementById)?1:0;ver4=(IE4||NS4||NS6)?1:0;if(NS4){layerRef="parent.document.layers";styleSwitch="";
}else{if(IE4){layerRef="parent.document.all";styleSwitch=".style";}else{if(NS6){layerRef="parent.document.getElementById";styleSwitch=".style";}}}function showHideLayer(B,A){setStyleProperty(B,"visibility",A);}function setStyleProperty(divId,property,value){try{if(NS6){eval('parent.document.getElementById("'+divId+'")'+styleSwitch+"."+property+' = "'+value+'"');
}else{eval(layerRef+'["'+divId+'"]'+styleSwitch+"."+property+' = "'+value+'"');}}catch(e){}}function closeIMPopup(C){try{if(supportsAJAX()){var B=getXmlHttpRequest(false);sendHttpRequest(B,"POST",IM_URL_declineIMConversationRequest+"?sender_profile_id="+C,true);}showHideLayer("imalert","hidden");}catch(A){}}function requestIMConversation(C,B,D){var A=window.open(C+"?receiver_profile_id="+D+"&winOpener=main&checkReceiverStatus=true","ICWindow_"+B+"_"+D,IM_WINDOW_PROPS);
if(A==null){showHideLayer("imalert","visible");}else{A.focus();}}var IM_TEXT_isRequestingIMConversation="is requesting an IM conversation.";var IM_TEXT_acceptIM="Accept IM";var IM_TEXT_close="Close";function respondToIM(E,B,D){var A=window.open(IM_URL_responseIM+"?response=accept&sender_profile_id="+B+"&winOpener=iframe","ICWindow_"+E+"_"+B,IM_WINDOW_PROPS);
if(A==null){try{parent.document.getElementById("imdhtml").innerHTML="<b>"+D+"</b> "+IM_TEXT_isRequestingIMConversation+"<br>"+'<div align="center"><table border="0" cellpadding="0" cellspacing="7"><tr><td>'+'  <div style="border: solid 1px #8F0100; width: 75px;"><div style="width: 73px; padding-top: 2px; padding-bottom: 2px; border: solid 1px #FFFFFF; background: #8F0100; text-align: center;"><a href="javascript:respondToIM('+E+", "+B+", '"+D+'\')" style="font-family: Verdana; font-size: 7.5pt; text-decoration: none; text-transform: uppercase; color: #FFFFFF; font-weight: bold;">'+IM_TEXT_acceptIM+"</a></div></div>"+"</td><td>"+'  <div style="border: solid 1px #8F0100; width: 75px;"><div style="width: 73px; padding-top: 2px; padding-bottom: 2px; border: solid 1px #FFFFFF; background: #8F0100; text-align: center;"><a href="javascript:closeIMPopup('+B+')" style="font-family: Verdana; font-size: 7.5pt; text-decoration: none; text-transform: uppercase; color: #FFFFFF; font-weight: bold;">'+IM_TEXT_close+"</a></div></div>"+"</td></tr></table></div>";
}catch(C){}showHideLayer("imalert","visible");}else{showHideLayer("imalert","hidden");A.focus();}}function launchIM(D,A,C){var B=window.open(D+A+"?response=accept&sender_profile_id="+C+"&winOpener=iframe","ICWindow_"+C,IM_WINDOW_PROPS);B.focus();}var animationSteps=20;var animationIntervalMilliseconds=13;
var animationPower=0.5;function fade(D,C,A){if(D.fadeInterval){window.clearInterval(D.fadeInterval);}var B=0;D.fadeInterval=window.setInterval(function(){setOpacity(D,step(C,A,animationSteps,B,animationPower));B++;if(B>animationSteps){window.clearInterval(D.fadeInterval);}},animationIntervalMilliseconds);
}function setOpacity(B,A){if(document.all&&document.getElementById){B.filters.alpha.opacity=A;}else{if(!document.all&&document.getElementById){B.style.MozOpacity=A/100;}}}function growHeight(D,A,C){if(D.heightGrowthInterval){window.clearInterval(D.heightGrowthInterval);}var B=0;D.heightGrowthInterval=window.setInterval(function(){var E=step(A,C,animationSteps,B,animationPower);
D.style["height"]=E+"px";if(E<=1){D.style.display="none";}else{D.style.display="block";}B++;if(B>animationSteps){window.clearInterval(D.heightGrowthInterval);}},animationIntervalMilliseconds);}function step(E,D,C,A,B){return Math.ceil(E+(Math.pow(((1/C)*A),B)*(D-E)));}function addFav(E,B,C,D){var A="ajax=true&other_profile_id="+E;
postAjaxForm(B,A,C,D);}function delFav(E,B,C,D){var A="ajax=true&other_profile_id="+E;postAjaxForm(B,A,C,D);}function addBlock(B,C,D,E){var A="ajax=true&other_profile_id="+B;postAjaxForm(C,A,D,E);}function delBlock(B,C,D,E){var A="ajax=true&id="+B;postAjaxForm(C,A,D,E);}function isRemoveBlockButton(C){var B=C.className.split(" ");
for(var A=0;A<B.length;A++){if(B[A]=="remove_block"){return true;}}return false;}function isAddButton(C){var B=C.className.split(" ");for(var A=0;A<B.length;A++){if(B[A]=="add"){return true;}}return false;}var toggleFavProcessingLock=new Object();function lockProfileId(B,A){B[""+A]=true;}function unlockProfileId(B,A){B[""+A]=false;
}function isLockedProfileId(B,A){return(B[""+A]==true);}function toggleFav(I,H,L,A,E,K){if(!supportsAJAX()){return;}if(isLockedProfileId(toggleFavProcessingLock,I)){return false;}lockProfileId(toggleFavProcessingLock,I);var F=$(".fav_button").filter("."+I);if(F[0]){var G=isRemoveBlockButton(F[0]);var J=isAddButton(F[0]);
var C;var B;if(G){C=delBlock;B=K;}else{if(J){C=addFav;B=A;}else{C=delFav;B=E;}}try{C(I,B,function(M){H(I,M);unlockProfileId(toggleFavProcessingLock,I);},function(M){L(I,M);unlockProfileId(toggleFavProcessingLock,I);});}catch(D){return;}}return false;}function block(E,A,B,D){if(!supportsAJAX()){return;
}if(isLockedProfileId(toggleFavProcessingLock,E)){return false;}lockProfileId(toggleFavProcessingLock,E);try{addBlock(E,A,function(F){B(E,F);unlockProfileId(toggleFavProcessingLock,E);},function(F){D(E,F);unlockProfileId(toggleFavProcessingLock,E);});}catch(C){return;}return false;}var showInterestProcessingLock=new Object();
function showInterest(A,C){if(!supportsAJAX()){window.location=A+"?other_profile_id="+C;}if(isLockedProfileId(showInterestProcessingLock,C)){return;}lockProfileId(showInterestProcessingLock,C);try{postAjaxForm(A,"ajax=true&other_profile_id="+C,function(D){showAjaxResponseMessage(D);unlockProfileId(showInterestProcessingLock,C);
},function(D){showAjaxResponseMessage(D);unlockProfileId(showInterestProcessingLock,C);});}catch(B){window.location=A+"?other_profile_id="+C;}}function postAjaxForm(B,A,D,E){var C=getXmlHttpRequest(false);var F=function(){if(!C){return;}if(!callInProgress(C)){if(C.readyState==4){if(C.status==200){if(D){D(C.responseText,C);
}}else{if(C.status==599){if(E){E(C.responseText,C);}}else{if(E){E("",C);}}}}}};if(C){sendHttpRequest(C,"POST",B,true,F,A);}else{throw"failed to create request";}}function getPosOffset(C,D){if(!C){return 0;}var E=$(C).css("position").toLowerCase();var B=$(C).css("float").toLowerCase();var A=$(C).css("z-index").toLowerCase();
if(E=="absolute"||E=="fixed"||B=="left"||B=="right"||!(A==0||A=="auto")){return 0;}else{return C[D]+getPosOffset(C.offsetParent,D);}}var countsJSPresent=true;var isRequestingCounts=false;var countsRefreshTimer="";var countsRefreshIntervalMS=120000;function fetchCounts(C){clearTimeout(countsRefreshTimer);
try{if(supportsAJAX()){var B=getXmlHttpRequest(false);sendHttpRequest(B,"POST",C,true,function(){updateCounts(C,B);});isRequestingCounts=true;}}catch(A){}}function updateCounts(getProfileCountsURL,messageCenterReq){if(!messageCenterReq){return;}var responseJS="";try{if(!callInProgress(messageCenterReq)){if(messageCenterReq.readyState==4){responseJS=messageCenterReq.responseText;
if(responseJS.indexOf("<html>")<0){var counts=eval("("+responseJS+")");if((counts!=null)&&(counts.mailCount!=null)&&(counts.mailCount!="")){updateMessageCounts(counts.mailCount,counts.interestsCount,counts.onlineCount,counts.viewedMeCount,counts.favoritedMeCount,counts.totalViewedMeCount,counts.newMembersCount,counts.newMembersNearYouCount);
}scheduleCountsRefresh(getProfileCountsURL);isRequestingCounts=false;}}}}catch(err){}}function scheduleCountsRefresh(A){if(countsRefreshTimer){clearTimeout(countsRefreshTimer);}countsRefreshTimer=setTimeout(function(){fetchCounts(A);},countsRefreshIntervalMS);}var flashInstallNotified=false;var flashInstallRequired=false;
function checkFlashInstall(A){if(!flashInstallRequired&&A.installedVer.major<7){flashInstallRequired=true;}}function notifyFlashInstall(){if(!flashInstallNotified&&flashInstallRequired){flashInstallNotified=true;var A='<div id="flashInstallDiv" class="popup_message_container" style="width:400px">';A+='<div class="titlebox_header">'+FLASH_PLAYER_INSTALL_TITLE+"</div>";
A+='<div class="contentpad content_bgrnd">';A+='<div class="popup_message">'+FLASH_PLAYER_INSTALL_MESSAGE+"</div>";A+='<div class="popup_message_button_div">';A+='<input type="button" value="'+FLASH_PLAYER_INSTALL_YES+'" onclick="window.location.href=\'http://get.adobe.com/flashplayer/\';" class="date_button" title="'+FLASH_PLAYER_INSTALL_YES+'">';
A+='<input type="button" value="'+FLASH_PLAYER_INSTALL_NO+'" onclick="showDiv(\'overlay\', false);hidePopupDialog(\'flashInstallDiv\');" class="date_button" title="'+FLASH_PLAYER_INSTALL_NO+'">';A+="</div>";A+="</div>";A+="</div>";$("body").append(A);showDiv("overlay",true);showPopupDialog("flashInstallDiv");
}}function encrypt(D,C){var A="";if(D.length>2&&D.substring(0,2)=="++"){return D;}for(var B=0;B<D.length;B++){A+=String.fromCharCode(C^D.charCodeAt(B));}return"++"+A;}function validateAtLeastOneField(A,C){var B=false;for(i=0;i<C.length;i++){if(!isEmpty(A[C[i]])){B=true;break;}}return B;}function validateConditionalRequiredSelectField(field,dv,conditionalField,conditionalValuesString){var conditionalValues=eval(conditionalValuesString);
for(var i=0;i<conditionalValues.length;i++){if(conditionalField.value==conditionalValues[i]){return validateRequiredSelect(field,dv);}}return true;}function validateRequiredSelect(B,A){if(B.value==null||B.value==""||B.value==A){return false;}return true;}function validateConditionalRequiredField(field,dv,conditionalField,conditionalValuesString){var conditionalValues=eval(conditionalValuesString);
for(var i=0;i<conditionalValues.length;i++){if(conditionalField.value==conditionalValues[i]){return validateRequiredField(field,dv);}}return true;}function validateRequiredField(E,B){if(E.length==null){var C="";try{C=E.value.trim();B=B.trim();}catch(D){}if(C.length==0||C==B){return false;}}else{if(E.type!="select-one"){for(var A=0;
A<E.length;A++){var C="";try{C=E[A].value.trim();B=B.trim();}catch(D){}if(C.length==0||C==B){return false;}}}}return true;}function validateMaxLengths(C,A){if(C.length){for(var B=0;B<C.length;B++){if(!validateMaxLength(C[B],A)){return false;}}return true;}return validateMaxLength(C,A);}function validateMaxLength(H,B){var G=H.value;
if(countBytes(G)<=B){var A=G;var C="";var F=null;G=G.replace(/\n/g,"**");if(G.length>B){for(var D=0,E=1;E<=B;D++,E++){F=A.charAt(D);if(F=="\n"&&E<=B-1){C=C.concat(F);E++;}else{C=C.concat(F);}}return false;}return true;}return false;}function countBytes(D){var A=encodeURI(D);if(A.indexOf("%")!=-1){var C=A.split("%").length-1;
if(C==0){C++;}var B=A.length-C*3;C=C+B;return C;}else{C=A.length;return C;}}function validateMinAge(D,C){var E=new Date(Date.parse(D.value));var B=new Date;var A=B.getFullYear()-E.getFullYear();if(E.getMonth()>B.getMonth()){A--;}else{if(E.getMonth()==B.getMonth()&&B.getDate()<E.getDate()){A--;}}if(A<C){return false;
}return true;}function validateNonEmptyDependency(D,A,C){if(!isEmpty(D)){for(var B=0;B<A.length;B++){if(!isEmpty(A[B])){return true;}}return false;}return true;}function validateNotTwoFields(){var B=new Object;var G=false;var C=0;var A=arguments[C++];var D=arguments[C];for(;C<arguments.length;C++){var F=arguments[C];
var E;switch(F.type){case"radio":case"checkbox":if(F.checked){E="checked";}else{E="unchecked";}break;default:E=F.value;}if(A){E=E==null?null:E.toLowerCase();}if(B[E]){G=true;}B[E]=true;}if(G){return false;}return true;}function validateTaxID(C,A){var D;if(A.type=="select-one"){D=A[A.selectedIndex].value;
}else{D=A.value;}if(D!="US"&&D!="USA"){return true;}var B=C.value.replace(/[-\s]+/,"");B=trim(B);if(B.length==0){return false;}return true;}function validateTwoFieldsIgnoreCase(A,B){if(A.value.toLowerCase()!=B.value.toLowerCase()){return false;}return true;}function validateTwoFields(A,B){if(A.value!=B.value){return false;
}return true;}function validateZip(B,A){return validateZipReq(B,A,false);}function validateZipEcomm(B,A){return validateZipReq(B,A,true);}function validateZipReq(C,A,E){var D;if(A.type=="select-one"){D=A[A.selectedIndex].value;}else{D=A.value;}if(D!="CA"&&D!="US"&&D!="Canada"&&D!="USA"){return true;}var B=C.value.replace(/[-\s]+/,"");
B=trim(B);if(B.length==0){if(E){return false;}else{return true;}}if(D=="CA"||D=="Canada"){return validatePostalCode(C);}else{if(D=="US"||D=="USA"){return validateZipCode(C);}}}function validateZipCode(C){var A=C.value.replace(/[-\s]+/,"");for(i=0;i<A.length;++i){A=A.replace(/[-\s]+/,"");}C.value=A;if(A.length==5){var B=new RegExp("^[0123456789]{5}");
}else{if(A.length==9){var B=new RegExp("^[0123456789]{9}");}else{return false;}}if(!B.test(A)){return false;}return true;}function validatePostalCode(B){var A=B.value.replace(/[-\s]+/,"");for(i=0;i<A.length;++i){A=A.replace(/[-\s]+/,"");}B.value=A;if(A.length==6){expr=new RegExp("^[a-zA-Z]{1}[0123456789]{1}[a-zA-Z]{1}[0123456789]{1}[a-zA-Z]{1}[0123456789]{1}");
}else{return false;}if(!expr.test(A)){return false;}return true;}function validateAlphaNumeric(B){var A=/^[_0-9a-zA-Z-]*$/;if(!A.test(B.value)){return false;}return true;}function validateAlphaNumericDot(B){var A=/^[_0-9a-zA-Z-\.]*$/;if(!A.test(B.value)){return false;}return true;}function validateAlphaNumeric_search(B){var A=/^[_0-9a-zA-Z-*]*$/;
if(!A.test(B.value)){return false;}return true;}function validateAlphaNumericWS(B){var A=/^[_0-9a-zA-Z-\s]*$/;if(!A.test(B.value)){return false;}return true;}function validateAlpha(B){var A=/^[_a-zA-Z-\s~]*$/;if(!A.test(B.value)){return false;}return true;}function validateAnyEmailField(A){A.value=A.value.trim();
if(!checkEmail(A.value)){return false;}return true;}function validateDate(G){var I=/^\s*\d{1,2}\/\d{1,2}\/\d{2,4}\s*$/;var H=/^\s*\d{2,4}-\d{1,2}-\d{1,2}\s*$/;var D=G.value;var B=false;if(!I.test(D)){if(!H.test(D)){return false;}B=true;}var E="";var C="";var F="";if(!B){var A=D.split("/");C=A[0];F=A[1];
E=A[2];}else{var A=D.split("-");E=A[0];C=A[1];F=A[2];}if(C<1||C>12){return false;}if(!validDate(C,F)){return false;}if(E<100&&E>50){E+=1900;}else{if(E>0&&E<50){E+=2000;}}if(E<1900){return false;}return true;}function validateDomainField(A){A.value=A.value.trim();if(!checkDomain(A.value)){return false;
}return true;}function checkDomain(E){if(E.length==0){return true;}var D='\\(\\)><@,;:\\\\\\"\\.\\[\\]!%';var B="[^\\s"+D+"]";var K=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var H=B+"+";var A=new RegExp("^"+H+"(\\."+H+")*$");for(F=0;F<E.length;F++){if(E.charCodeAt(F)>127){return false;}}var I=E.match(K);
if(I!=null){for(var F=1;F<=4;F++){if(I[F]>255){return false;}}return true;}var J=new RegExp("^"+H+"$");var C=E.split(".");var G=C.length;for(F=0;F<G;F++){if(C[F].search(J)==-1){return false;}}if(C[G-1].length<2){return false;}if(G<2){return false;}var L=/^date\.com$/i;if(L.test(E.toLowerCase())){return false;
}L=/^date\.net$/i;if(L.test(E.toLowerCase())){return false;}L=/^date\.info$/i;if(L.test(E.toLowerCase())){return false;}L=/^www\./i;if(L.test(E.toLowerCase())){return false;}return true;}function validateMultipleDomainField(C,A){C.value=C.value.trim();C.value=C.value.replace(/;/g,",");C.value=C.value.replace(/,+/g,",");
C.value=C.value.replace(/^,/,"");C.value=C.value.replace(/,$/,"");if(C.value.length==0){return true;}var D=C.value.split(",");if(D.length>A){return false;}for(var B=0;B<D.length;B++){D[B]=D[B].trim();if(!checkDomain(D[B])){return false;}}return true;}function validateEmailField(A,C,B){A.value=A.value.trim();
if(isEmpty(A)){return true;}if(!checkEmail(A.value)){return false;}if(!isValidEmailDomain(A.value,C)){return false;}if(!isValidEmailUser(A.value,B)){return false;}return true;}function checkEmail(A){if(A==null||A==""){return true;}var B="[\\w=!#\\$%\\*/\\?\\|\\^\\{\\}\\`~&\\'+-]";var D="[a-zA-Z\\-0-9]";
var E=new RegExp("^("+B+"+(?:\\."+B+"+)*)@("+D+"+(\\."+D+"+)+)$");var C=A.match(E);if(C==null){return false;}return true;}function isValidEmailDomain(A,B){if(B==null||B==""){return true;}if(B.test(A.toLowerCase())){return false;}return true;}function isValidEmailUser(A,B){if(B==null||B==""){return true;
}if(B.test(A.toLowerCase())){return false;}return true;}function validateLong(B){var C=trim(B.value);B.value=C;if(isEmpty(B)){return true;}var A=/^-?[0-9]*[0-9\s]$/;if(!A.test(C)){return false;}return true;}function validateMaxNumeric(D,C){if(D.length==null){if(isEmpty(D)){return true;}if(!validateNumeric(D)){return false;
}var B=trim(D.value);if(B>C){return false;}}else{for(var A=0;A<D.length;A++){if(isEmpty(D[A])){continue;}if(!validateNumeric(D[A])){return false;}var B=trim(D[A].value);if(B>C){return false;}}}return true;}function validateMinLength(B,A){if(B.value.length!=0&&B.value.length<A){return false;}return true;
}function validateMinNumeric(D,C){if(D.length==null){if(isEmpty(D)){return true;}if(!validateNumeric(D)){return false;}var B=trim(D.value);if(B<C){return false;}}else{for(var A=0;A<D.length;A++){if(isEmpty(D[A])){continue;}if(!validateNumeric(D[A])){return false;}var B=trim(D[A].value);if(B<C){return false;
}}}return true;}function validateMultipleEmailField(D,A,E,C){D.value=D.value.trim();D.value=D.value.replace(/;/g,",");D.value=D.value.replace(/,+/g,",");D.value=D.value.replace(/^,/,"");D.value=D.value.replace(/,$/,"");var F=D.value.split(",");if(F.length>A){return false;}for(var B=0;B<F.length;B++){F[B]=F[B].trim();
if(!checkEmail(F[B])||!isValidEmailDomain(F[B],validEmailDomainMask)||!isValidEmailUser(F[B],C)){return false;}}return true;}function validateName(B){var A=/^[_a-zA-Z-\s~\.!']*[_a-zA-Z-\s~\.!']$/;if(!A.test(B.value)){return false;}return true;}function validateNumeric(C){if(C.length==null){var D=trim(C.value);
C.value=D;var A=/^-?[0-9]*(\.)?[0-9]*$/;if(!A.test(D)){return false;}}else{for(var B=0;B<C.length;B++){var D=trim(C[B].value);C[B].value=D;var A=/^-?[0-9]*(\.)?[0-9]*$/;if(!A.test(D)){return false;}}}return true;}function validateNumericWS(B){var C=trim(B.value);if(C==null||C==""){return true;}var A=/^[0-9-\s]*[0-9-\s]$/;
if(!A.test(C)){return false;}return true;}function validatePasswordField(B,C){var A=/(password|qwerty|123456|1234567|12345678|123456789|1234567890|0123456789)/i;if(A.test(B.value.toLowerCase())||(C.value.toLowerCase()==B.value.toLowerCase())){return false;}return true;}function validateRequiredCheckbox(A){if(!isCheckBoxChecked(A)){return false;
}return true;}function isCheckBoxChecked(A){if(A[0]){for(i=0;i<A.length;i++){theField=A[i];if(theField.checked){return true;}}return false;}else{if(!A.checked){return false;}}return true;}function validateEnabledRequiredCheckbox(A){if(A.disabled){return true;}if(!isCheckBoxChecked(A)){return false;}return true;
}function validateRequiredMultiSelect(B){var A=false;for(i=0;i<B.length;i++){if(B.options[i].selected){return true;}}return false;}function validateRequiredRadio(A){for(i=0;i<A.length;i++){if(A[i].checked){return true;}}return false;}function defaultValidatioErrorHandler(C,A){if(A!=""){alert(A);}try{C.focus();
}catch(B){}}function defaultFormValidationHandler(D,B){var A="";if(B[0]){for(i=0;i<B.length;i++){if(A!=""){A=A+"\n";}A=A+B[i];}}if(A!=""){alert(A);try{D.focus();}catch(C){}}return true;}function defaultFieldValidationHandler(D,B){var A="";if(B[0]){for(i=0;i<B.length;i++){if(A!=""){A=A+"\n";}A=A+B[i];
}}if(A!=""){alert(A);try{D.focus();}catch(C){}}}