function chgClass(A,B){document.getElementById(A).className=B}function reportAbuseCallback(A,B){alert(B.message);mb._refresh()}function showSendMessage(B,A){oMessageDiv=document.getElementById("messageDiv");osendMsgForm=document.getElementById("sendMsgForm");osendMsgForm.recievernamelist.value=A;osendMsgForm.websiteId.value=A;return showComponent(B,"messageDiv")}function hideMessageDiv(){oMessageDiv=document.getElementById("messageDiv");osendMsgForm=document.getElementById("sendMsgForm");osendMsgForm.data.value="";oMessageDiv.style.visibility="hidden"}function sendMessageCallback(A,B){hideMessageDiv();alert(B.message)}function showAbuseBox(B,A){oMessageDiv=document.getElementById("abuseDiv");osendMsgForm=document.getElementById("abuseForm");osendMsgForm.websiteId.value=A;return showComponent(B,"abuseDiv")}function hideAbuseBox(){oMessageDiv=document.getElementById("abuseDiv");osendMsgForm=document.getElementById("abuseForm");osendMsgForm.comment.value="";oMessageDiv.style.visibility="hidden"}function abuseCallback(A,B){hideAbuseBox();alert(B.message)}function showAbuseDeleteBox(B,A){oMessageDiv=document.getElementById("abuseDeleteDiv");osendMsgForm=document.getElementById("abuseDeleteForm");osendMsgForm.websiteCommentId.value=A;return showComponent(B,"abuseDeleteDiv")}function hideAbuseDeleteBox(){oMessageDiv=document.getElementById("abuseDeleteDiv");osendMsgForm.comment.value="";oMessageDiv.style.visibility="hidden"}function abuseDeleteCallback(A,B){hideAbuseDeleteBox();alert(B.message)}function showNameWindow(B,A){oNameDiv=document.getElementById("showNameDiv");osendNameForm=document.getElementById("showNameForm");osendNameForm.websiteId.value=A;return showComponent(B,"showNameDiv")}function hideNameDiv(){oNameDiv=document.getElementById("showNameDiv");osendNameForm=document.getElementById("showNameForm");osendNameForm.websiteId.value="";oNameDiv.style.visibility="hidden"}function addToFriendCallback(A,B){hideNameDiv();alert(B.message)}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function setCookie(B,D,A,F,C,E){document.cookie=B+"="+escape(D)+((A)?"; expires="+A.toGMTString():"")+((F)?"; path="+F:"")+((C)?"; domain="+C:"")+((E)?"; secure":"")}function blockUserCallback(A,B){alert(B.message)}function commentCallback(A,B){alert(B.message);if(B.status=="success"){var C=document.getElementById(B.results[0][0].value);C.style.display="none"}}function acceptCallback(A,B){alert(B.message);mb._refresh()}function rejectCallback(A,B){alert(B.message);mb._refresh()}function onAccessChange(A){oLink=document.getElementById(A);if(oLink!=null){oSpan=document.getElementById("cacSpanId");oSpan.innerHTML=" updating ...";setTimeout(clearUpdate,3000)}}function clearUpdate(){oSpan=document.getElementById("cacSpanId");oSpan.innerHTML=""}function chitChatAccessChangeCallback(A,B){if(B&&B.status&&B.status=="success"){oSpan=document.getElementById("cacSpanId");oSpan.innerHTML=""}else{oCheckBox=document.getElementById("accessChangeCheckBoxId");oCheckBox.checked=!oCheckBox.checked}}function showBithdayWishBox(B,A){birthdayForm=document.getElementById("ajaxmsg");birthdayForm.websiteId.value=A;return showComponent(B,"birthDiv")}function hideBirthdayWishDiv(){oBirthdayForm=document.getElementById("ajaxmsg");oBirthdayForm.websiteId.value="";hideComponent("birthDiv")}function birthdayCallback(A,B){hideBirthdayWishDiv();alert(B.message);myBDay.remove(B.results[0][0].value)}function acceptFrndReqCallback(A,B){alert(B.message);myFrndReq.remove(B.results[0][0].value)}UserAction=function(A,D,B,C){this.container=D;this.count=A;this.countDiv=B;this.reqDiv=C};UserAction.prototype.remove=function(A){var B=document.getElementById(A);B.style.display="none";--this.count;if(this.countDiv!=null){document.getElementById(this.countDiv).innerHTML=this.count}if(this.count<=0){this.removeContainer()}};UserAction.prototype.removeContainer=function(){document.getElementById(this.container).style.display="none";if(this.reqDiv!=null){document.getElementById(this.reqDiv).style.display="none"}};function setTuneCallback(A,B){alert(B.message)}function showWebsiteComment(B,A){oCommentDiv=document.getElementById("commentDiv");owebsiteCommentForm=document.getElementById("websiteCommentForm");owebsiteCommentForm.websiteId.value=A;return showComponent(B,"commentDiv")}function hideCommentDiv(){oCommentDiv=document.getElementById("commentDiv");owebsiteCommentForm=document.getElementById("websiteCommentForm");owebsiteCommentForm.content.value="";oCommentDiv.style.visibility="hidden"}function websiteCommentCallback(A,B){hideCommentDiv();alert("Chitchat added successfully");mb._refresh()}function websiteDeleteCallback(A,B){alert(B.message);if(B.status=="success"){var C=document.getElementById(B.results[0][0].value);C.style.display="none"}}function scrambleCallBack(A,D){var C=D.results[0][1].value;var B=D.results[0][0].value;document.getElementById("value-"+C).innerHTML=B;document.getElementById("unscramble-"+C).style.display="none"}function addThemeCallback2(E,D){var C,B,A;for(C=0;(B=document.getElementsByTagName("link")[C]);C++){if(B.getAttribute("rel").indexOf("style")!=-1&&B.getAttribute("title")){B.disabled=true;if(B.getAttribute("title")==E){B.disabled=false}}}}function addThemeCallback(F,C){var B=false;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){if(a.getAttribute("title")==F){a.disabled=false;B=true}else{a.disabled=true}}}if(!B){var E=document.getElementsByTagName("head");if(E[0]){if(document.createElementNS&&E[0].tagName=="head"){var D=E[0].appendChild(document.createElementNS("http://www.w3.org/1999/xhtml","link"))}else{var D=E[0].appendChild(document.createElement("link"))}D.title=F;D.rel="stylesheet";D.href=addContextPath("/templates/themes2-6/Theme"+F+".css?v=2");D.type="text/css";D.disabled=false}}var A=mb._get("moodSpan");if(A){A.innerHTML="choose"}}function logintoaccess(){alert("You have to be logged in to do this")}function submitForm(B,A){B.method.value=A;B.submit()}function hideDiv(A){oNameDiv=document.getElementById(A);oNameDiv.style.visibility="hidden"}function clearMsg(){var B=document.getElementById("ajaxMessages");for(var A=0;A<B.childNodes.length;A++){if(B.childNodes[A].nodeType==3){continue}B.childNodes[A].style.display="none";B.childNodes[A].innerHTML=""}}function displaySuccessMsg(A){var B=document.getElementById("ajaxMessages");var C=document.createElement("div");B.appendChild(C);if(C){C.className="promptDiv";C.innerHTML="<label color='green'>"+A+"</label>";C.style.visibility="visible";window.setTimeout(clearMsg,5000)}}function displayFailureMsg(A){var B=document.getElementById("ajaxMessages");var C=document.createElement("div");B.appendChild(C);if(C){C.className="errorMsgDiv";C.innerHTML="<label color='red'>"+A+"</label>";C.style.visibility="visible";window.setTimeout(clearMsg,5000)}};