function showHiddenCImages(c,b){showElement("hiddenCImages");var a=document.getElementById("displayAllOrLessCImages");a.innerHTML='<span class="linkStyle" onclick="hideCImages('+c+",'"+b+"')\">Show fewer "+b+"</span>"}function hideCImages(c,b){hideElement("hiddenCImages");var a=document.getElementById("displayAllOrLessCImages");a.innerHTML='<span class="linkStyle" onclick="javascript:showHiddenCImages('+c+",'"+b+"')\">See all "+c+" "+b+"</span>";document.location.href="#myCImagesSection"}function showHiddenPages(c,b){showElement("hiddenPages");var a=document.getElementById("displayAllOrLess");a.innerHTML='<span class="linkStyle" onclick="hidePages('+c+",'"+b+"')\">Show fewer "+b+"</span>"}function hidePages(c,b){hideElement("hiddenPages");var a=document.getElementById("displayAllOrLess");a.innerHTML='<span class="linkStyle" onclick="javascript:showHiddenPages('+c+",'"+b+"')\">See all "+c+" "+b+"</span>";document.location.href="#myPagesSection"}function showHiddenFriends(b){showElement("hiddenFriends");var a=document.getElementById("displayAllOrLessFriends");a.innerHTML='<span class="linkStyle" onclick="hideFriends('+b+')">Show fewer friends</span>'}function hideFriends(b){hideElement("hiddenFriends");var a=document.getElementById("displayAllOrLessFriends");a.innerHTML='<span class="linkStyle" onclick="showHiddenFriends('+b+')">See all '+b+" friends</span>";document.location.href="#myFriendsSection"}function deleteFriendComment(a){var b=new Object();b.frm_action="deleteComment";b.frm_commentId=a;formSubmit("frm_id",b)}function deleteFriend(a){var b=document.getElementById("deleteFriendMessage").value;result=confirm(b);if(result==true){var c=new Object();c.frm_action="deleteFriend";c.frm_friendUserId=a;formSubmit("frm_id",c)}}function blockUser(){showPopupAboveRight(document.getElementById("blockUser"),400,190,document.getElementById("blocUserPopUp").innerHTML,false,-200,20,"popUpDiv","popUpContent")}function blockFriend(a){showPopupAboveRight(document.getElementById("blockUser_"+a),400,190,document.getElementById("blocUserPopUp_"+a).innerHTML,false,-200,20,"popUpDiv","popUpContent")}function cancelBlock(){hideElement("blockUserPopUpdiv")}function confirmAction(c,b){var a=confirm(b);if(a==true){formSubmit("frm_id",{frm_action:c})}}function confirmSelectedAction(e,f,b){var d=document.getElementsByName(f).length;var c=false;for(i=0;i<d;i++){if(document.getElementsByName(f)[i].checked){c=true;break}}if(!c){alert("Please select a checkbox!")}else{var a=confirm(b);if(a==true){formSubmit("frm_id",{frm_action:e})}}}function deleteSb(b){var a=confirm("Are you sure you want to delete this Styleboard?");if(a==true){formSubmit("sbform_id",{sb_action:"deleteSb",sb_id:b})}}function validateFileName(a,b){if(validateImageFile("imageUrlId",false,"fileNameId","imageErrorMsgId")){formSubmit(a,b)}}var temp="";function showCommentPopup(a,c,b){if(typeof(b)!="undefined"&&b.length>0){window.location=b;return}if(trim(document.getElementById("giveAPropDiv"+c).innerHTML)!=""){temp=document.getElementById("giveAPropDiv"+c).innerHTML;document.getElementById("giveAPropDiv"+c).innerHTML="";showPopupAboveRight(document.getElementById(a),620,400,temp,false,-800,300,"popUpDiv","popUpContent",true)}}function resetPopupDiv(a){hideElement("popUpDiv");document.getElementById("popUpContent").innerHTML="";document.getElementById("giveAPropDiv"+a).innerHTML=temp}function onClickTxtArea(txtArea,id){var config=eval("config_"+id);if(txtArea.value.indexOf(config.inputDefault)!=-1||txtArea.value==config.inputDefault2){txtArea.value="";txtArea.className=""}}function selectType(type,imgPath,id,displayName){var config=eval("config_"+id);var textarea=document.getElementById("inputComment"+id);if(textarea!=null){if(type!=0&&(textarea.value==""||textarea.value.indexOf(config.inputDefault)!=-1||textarea.value==config.inputDefault2)){textarea.value=displayName+"! "+config.inputDefault;textarea.className="gray-text"}}try{config._g_selectedType=type;document.getElementById("cmr"+type).checked=true}catch(e){}}function giveAProp(id){var config=eval("config_"+id);var textarea=document.getElementById("inputComment"+id);if(textarea!=null){var commentToAdd=textarea.value;if(commentToAdd.indexOf(config.inputDefault)!=-1||commentToAdd==config.inputDefault2||(commentToAdd==""&&config._g_selectedType!=0)){commentToAdd=""}}formSubmit("frm_id",{frm_action:"postComment",commentType:config._g_selectedType,commentToAdd:commentToAdd})}function countryChanged(a){hideElement("usStates");hideElement("canadaStates");if(a=="United States"){showElement("usStates")}if(a=="Canada"){showElement("canadaStates")}}function abtMeCBShow(){showElement("abtMeINlineId","")}function abtMeCBHide(){hideElement("abtMeINlineId","")}function deleteDomainSelected(c){var b=document.getElementById("domainBlock_"+c);var a=document.getElementById("domainRestrict_"+c);if(document.getElementById("domainDelete_"+c).checked){b.checked=false;a.checked=false;b.style.display="none";a.style.display="none"}else{b.style.display="block";a.style.display="block"}}function blockDomainSelected(b){var a=document.getElementById("domainRestrict_"+b);if(document.getElementById("domainBlock_"+b).checked){a.checked=false;a.style.display="none"}else{a.style.display="block"}}function selectAllMessages(){var a=document.getElementsByName("selectedMessages");if(document.getElementById("selectAllRows").checked==true){for(var b=0;b<a.length;b++){a[b].checked=true}}else{for(b=0;b<a.length;b++){a[b].checked=false}}}function submitOperation(h,a,f,c,g,e,d){var j=document.getElementById("frm_id");document.getElementById("frm_action").value="blockDomain";document.getElementById("selectedDomain").value=c;if(d==true){j.operationType.value=document.getElementById("domainDelete_"+g).checked}else{j.operationType.value=false}j.operationType.value+="#"+document.getElementById("domainBlock_"+g).checked;j.operationType.value+="#"+document.getElementById("domainRestrict_"+g).checked;if(e==0){if(d==true){document.getElementById("deleteDomainContent").value=document.getElementById("domainDelete_"+g).checked}else{document.getElementById("deleteDomainContent").value=false}document.getElementById("blockDomainContent").value=document.getElementById("domainBlock_"+g).checked;document.getElementById("restrictDomainContent").value=document.getElementById("domainRestrict_"+g).checked;formSubmit("frm_id",{frm_action:"blockDomain"})}else{var b=true;if(d){if(document.getElementById("domainDelete_"+g).checked){b=confirm("This will delete and block all the content from this domain. Are you sure you want to delete and block all the content from this domain?")}else{if(document.getElementById("domainBlock_"+g).checked){b=confirm("This will block content from this domain. Are you sure you want to block content from this domain?")}else{if(document.getElementById("domainRestrict_"+g).checked){b=confirm("This will restrict content from this domain. Are you sure you want to restrict content from this domain?")}else{b=confirm("This will either unblock the domain or un-restirct content. Are you sure you want to do this?")}}}}else{if(document.getElementById("domainBlock_"+g).checked){b=confirm("This will block content from this domain. Are you sure you want to block content from this domain?")}else{if(document.getElementById("domainRestrict_"+g).checked){b=confirm("This will restrict content from this domain. Are you sure you want to restrict content from this domain?")}else{b=confirm("This will either unblock the domain or un-restirct content. Are you sure you want to do this?")}}}if(!b){return}j.submit()}}function hideShowRequest(b,a){if(b){hideElement("alistReq_"+a);hideElement("hide_"+a);showElement("show_"+a,"inline")}else{showElement("alistReq_"+a,"inline");showElement("hide_"+a,"inline");hideElement("show_"+a)}}function showCommentBox(a){showElement("commentBlock_"+a,"inline")}function addRequestComment(a,b){var c=document.getElementById("adminComment_"+a);if(c.value==""){alert("Please Add some Comment");return}formSubmit("frm_id",{frm_action:"editEliteRequestComment",requestId:b,adminComment:c.value})}function cancelRequestComment(a){var b=document.getElementById("adminComment_"+a);b.value="";hideElement("commentBlock_"+a)}function listFilter(b,a){a=a+"&listFilter="+b;window.location=a}function listDelete(b,e,c){var d;if(c==0){d="Are you sure you want to delete this list?"}else{d="Are you sure you want to remove this list?"}var a=confirm(d);if(a==true){formSubmit(b,e)}}function showblockUserPopup(h,c,b,f,j,g){document.getElementById("ufbpfriendUserId").value=b;document.getElementById("friendScreenName").innerHTML=c;document.getElementById("friendScreenName1").innerHTML=c;document.getElementById("friendScreenName2").innerHTML=c;f=(typeof f=="undefined")?0:f;j=(typeof j=="undefined")?0:j;g=(typeof g=="undefined")?0:g;if(f==1){document.getElementById("message").checked=true}else{document.getElementById("message").checked=false}if(j==1){document.getElementById("activity").checked=true}else{document.getElementById("activity").checked=false}if(g==1){document.getElementById("request").checked=true}else{document.getElementById("request").checked=false}hideSelectBoxes();var a;var d;var e=new KaboodlePopup(document.getElementById(h),400,250,false,-300,40,"blockUserPopUpdiv","blockUserPopUpCont",false,a,d);e.showPopup()}function userImageaction(d,c,a){var b=new Object();b.frm_user_action=c;b.resourceGroupId=d;b.p_ret=a;formSubmit("frmphotoactions",b)}function showLargeImagePopup(d){var a;var c;var b=new KaboodlePopup(document.getElementById("profileleft"),320,380,false,10,d,"largeImagePopup","largeImagePopup",false,a,c);b.showPopup();document.getElementById("profileleft").disable=true}function hideLargeImagePopup(){hideElement("largeImagePopup")}function removeStore(a){result=confirm("Are you sure you want to remove fan membership for this brand?");if(result==true){var b=new Object();b.frm_action="quitGroup";b.frm_groupId=a;formSubmit("frm_id",b)}}function removeAllStore(){var a=confirm("Are you sure you want to remove fan membership for all brands?");if(a==true){var b=new Object();b.frm_action="quitAllGroups";formSubmit("frm_id",b)}}function deleteSelectedLists(e,f,b){var d=document.getElementsByName(f).length;var c=false;for(i=0;i<d;i++){if(document.getElementsByName(f)[i].checked){c=true;if(document.getElementById("selectedListsId").value==""){document.getElementById("selectedListsId").value=document.getElementsByName(f)[i].value}else{document.getElementById("selectedListsId").value=document.getElementById("selectedListsId").value+"_"+document.getElementsByName(f)[i].value}}}if(!c){alert("Please select a checkbox!")}else{var a=confirm(b);if(a==true){formSubmit("listFrm",{frmAction:e})}}};