window.status=js_welcome;for(i=0;i<mmImages.length;i++){var preload=new Image();preload.src=mmImages[i]}function swap(A,B){document[""+A+"Img"].src=mmImages[B];if(document[""+A+"Img"].alt!=js_collapse){document[""+A+"Img"].title=js_collapse;document[""+A+"Img"].alt=js_collapse}else{document[""+A+"Img"].title=js_expand;document[""+A+"Img"].alt=js_expand}}function mwpHS(F,G,E){if(document.getElementById){var C=document.getElementById(F).getElementsByTagName(E);var B=jsUniqueID+"hide";var A=F+G;for(var D=0;D<C.length;D++){if(C[D].id==A){if(C[D].style.display!="none"){swap(A,0);C[D].style.display="none";setCookieSubKey(B,A,"1")}else{swap(A,1);C[D].style.display="";setCookieSubKey(B,A,"0")}}}}}function mwpHSx(C){if(document.getElementById){var B=document.getElementById(C);var A=jsUniqueID+"hide";if(B.style.display!="none"){swap(C,0);B.style.display="none";setCookieSubKey(A,C,"1")}else{swap(C,1);B.style.display="block";setCookieSubKey(A,C,"0")}}}var ns4=(document.layers);var ie4=(document.all&&!document.getElementById);var ie5=(document.all&&document.getElementById);var ns6=(!document.all&&document.getElementById);function mwpHSa(C,B){if(ns4){if(document.layers[C]){if(document.layers[C].visibility!="hide"){document.layers[C].visibility="hide"}else{document.layers[C].visibility="show"}}}else{if(ie4){if(document.all[C]){if(document.all[C].style.visibility!="hidden"){document.all[C].style.visibility="hidden"}else{document.all[C].style.visibility="visible"}}}else{if(ie5||ns6){if(document.getElementById(C)){var A=document.getElementById(C);if(A.style.display!="none"){if(B!=3){swap(C,2)}A.style.display="none"}else{if(B!=3){swap(C,3)}A.style.display="block"}}}}}}function mwpHSs(C,B){if(document.getElementById(C)){var A=document.getElementById(C);if(A.style.display!="none"){if(B!=1){swap(C,0)}A.style.display="none"}else{if(B!=1){swap(C,1)}A.style.display="block"}}}function checkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom)?1:0;this.ie4=(document.all&&!this.dom)?1:0;this.ns5=(this.dom&&parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.bw=(this.ie5||this.ie4||this.ns4||this.ns5);return this}bw=new checkBrowser();function showhide(B,A){obj=bw.dom?document.getElementById(B).style:bw.ie4?document.all[B].style:bw.ns4?A?document[A].document[B]:document[B]:0;if(obj.display=="block"||obj.display=="block"){obj.display="none"}else{obj.display="block"}}function show(B,A){obj=bw.dom?document.getElementById(B).style:bw.ie4?document.all[B].style:bw.ns4?A?document[A].document[B]:document[B]:0;obj.display="block"}function hide(B,A){obj=bw.dom?document.getElementById(B).style:bw.ie4?document.all[B].style:bw.ns4?A?document[A].document[B]:document[B]:0;obj.display="none"}function stripHTML(){var A=/<\S[^><]*>/g;for(i=0;i<arguments.length;i++){arguments[i].value=arguments[i].value.replace(A,"")}}function setCookie(B,E){var D=60*60*24;var A=new Date();var G=new Date();G.setTime(A.getTime()+365000*D);var F=G.toGMTString();var C=B+"="+E;var C=C+";expires="+F;document.cookie=C}function getCookie(E){var A="";var F=" "+document.cookie+";";var C=" "+E+"=";var B=F.indexOf(C);var D;if(B!=-1){B+=C.length;D=F.indexOf(";",B);A=unescape(F.substring(B,D))}return A}function getCookieSubKey(B,A){var C=getCookie(B);if(C==""){return""}cookievaluesep=C.split("&");for(c=0;c<cookievaluesep.length;c++){cookienamevalue=cookievaluesep[c].split("=");if(cookienamevalue.length>1){if(cookienamevalue[0]==A){return cookienamevalue[1].toString()}}else{return""}}return""}function setCookieSubKey(B,A,D){var C=getCookie(B);if(C.trim()==""){setCookie(B,A+"="+D);return }getcookiekeyvalue=getCookieSubKey(B,A);newCookieValue=C.trim();if(getcookiekeyvalue==""){newCookieValue+="&"+A+"="+D}else{if(newCookieValue.substr(0,A.length+1)==(A+"=")){totalcookiekeylength=A.length+1+getCookieSubKey(B,A).length+1;newCookieValue=newCookieValue.substr(totalcookiekeylength);if(newCookieValue.trim()==""){newCookieValue=A+"="+D}else{newCookieValue+="&"+A+"="+D}}else{fullcookiekey="&"+A+"="+getcookiekeyvalue;if(newCookieValue.indexOf(fullcookiekey)!=-1){newCookieValue=ReplaceAll(newCookieValue,fullcookiekey,"");if(newCookieValue.trim()==""){newCookieValue=A+"="+D}else{newCookieValue+="&"+A+"="+D}}}}setCookie(B,newCookieValue)}function ReplaceAll(A,B,C){newvarbarray=A.split(B);newvarb=newvarbarray.join(C);return newvarb}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function docodebox(C){var B="thecode"+C;var A=document.getElementById(B);A.focus();A.select()}function expand(D){var C="thecode"+D;var A=document.getElementById(C);var B=A.scrollHeight+10;if(txttype=="opera"){A.style.height="100%"}else{if(txttype=="ie"){A.style.height=B+"px";A.style.overflowX="auto";A.style.overflowY="auto"}else{A.style.height=B+"px";A.style.overflow="visible"}}}function contract(C){var B="thecode"+C;var A=document.getElementById(B);A.style.height=45+"px";A.style.overflow="auto"}function dohelp(){var B=(screen.width/2)-110;var A=(screen.height/2)-150;var C="left="+B+",top="+A;doPopUpHelpCodeWindow=window.open("includes/code_help.asp","HelpCode","width=220,height=325,"+C)}var arrItems1=new Array();var arrItemsGrp1=new Array();arrItems1[0]=js_none;arrItemsGrp1[0]=1;arrItems1[1]=js_member;arrItemsGrp1[1]=1;arrItems1[2]=js_admin;arrItemsGrp1[2]=1;arrItems1[3]=js_member+" & "+js_admin;arrItemsGrp1[3]=1;arrItems1[4]=js_member;arrItemsGrp1[4]=2;arrItems1[5]=js_member+" & "+js_admin;arrItemsGrp1[5]=2;arrItems1[6]=js_member;arrItemsGrp1[6]=3;arrItems1[7]=js_member;arrItemsGrp1[7]=4;function selectChange(F,C,B,G){var E;var A;for(var D=C.options.length;D>=0;D--){C.options[D]=null}E=document.createElement("option");E.value=0;E.text="[SELECT]";C.add(E);for(A=0;A<B.length;A++){if(G[A]==F.value){E=document.createElement("option");E.value=A+1;E.text=B[A];C.add(E)}}}var maxWidth;var maxHeight;var fileTypes=["bmp","gif","png","jpg","jpeg"];var outImage="previewField";var defaultPic="images/spacer.gif";var globalPic;function preview(E,F,C){maxWidth=F;maxHeight=C;var D=E.value;var B=D.substring(D.lastIndexOf(".")+1,D.length).toLowerCase();for(var A=0;A<fileTypes.length;A++){if(fileTypes[A]==B){break}}globalPic=new Image();if(A<fileTypes.length){globalPic.src=D}else{globalPic.src=defaultPic;alert("THAT IS NOT A VALID IMAGE\nPlease load an image with a valid extention")}setTimeout("applyChanges()",200)}function applyChanges(){var B=document.getElementById(outImage);var A=parseInt(globalPic.width);var C=parseInt(globalPic.height);if(A>maxWidth){C*=maxWidth/A;A=maxWidth}if(C>maxHeight){A*=maxHeight/C;C=maxHeight}B.style.display=(A<1||C<1)?"none":"";B.src=globalPic.src;B.width=A;B.height=C}function selectUsers(A){selectAll(A,"g_read");selectAll(A,"g_write");selectAll(A,"g_full")}function selectAll(B,C){var A=document[B];for(x=0;x<A[C].length;x++){if(A[C].options[x].value!="0"){A[C].options[x].selected=true}else{A[C].options[x].selected=false}}}function moveGroup(B,E,A,K){var H,D,I;var G,C,F;var J=document[E];if(B=="Add"){H=J[K].length;C=false;G=0;do{if(J[A].options[G].text==""){C=true;continue}if(J[A].options[G].selected){for(F=0;F<J[K].length;F++){if(J[K].options[F].value==J[A].options[G].value){return }}J[K].length+=1;J[K].options[H].value=J[K].options[H-1].value;J[K].options[H].text=J[K].options[H-1].text;J[K].options[H-1].value=J[A].options[G].value;J[K].options[H-1].text=J[A].options[G].text;J[K].options[H-1].selected=true}H=J[K].length;G+=1}while(!C)}if(B=="Del"){H=document.PostTopic.AuthUsersCombo.length;C=false;G=0;do{if(document.PostTopic.AuthUsers.options[G].text==""){C=true;continue}if(document.PostTopic.AuthUsers.options[G].selected){document.PostTopic.AuthUsersCombo.length+=1;document.PostTopic.AuthUsersCombo.options[H].value=document.PostTopic.AuthUsersCombo.options[H-1].value;document.PostTopic.AuthUsersCombo.options[H].text=document.PostTopic.AuthUsersCombo.options[H-1].text;document.PostTopic.AuthUsersCombo.options[H-1].value=document.PostTopic.AuthUsers.options[G].value;document.PostTopic.AuthUsersCombo.options[H-1].text=document.PostTopic.AuthUsers.options[G].text;document.PostTopic.AuthUsersCombo.options[H-1].selected=true}G+=1;H=document.PostTopic.AuthUsersCombo.length}while(!C);C=false;G=document.PostTopic.AuthUsers.length-1;do{if(document.PostTopic.AuthUsers.options[G].text==""){--G;continue}if(document.PostTopic.AuthUsers.options[G].selected){for(z=G;z<document.PostTopic.AuthUsers.length-1;z++){document.PostTopic.AuthUsers.options[z].value=document.PostTopic.AuthUsers.options[z+1].value;document.PostTopic.AuthUsers.options[z].text=document.PostTopic.AuthUsers.options[z+1].text}document.PostTopic.AuthUsers.length-=1}--G;if(G<0){C=true}}while(!C)}}function remGroup(E,B,C){var D,F;var A=document[E];F=false;D=0;D=A[B].length-1;if(D<1){return }do{if(A[B].options[D].text==""){--D;continue}if(A[B].options[D].value==C){for(z=D;z<A[B].length-1;z++){A[B].options[z].value=A[B].options[z+1].value;A[B].options[z].text=A[B].options[z+1].text}A[B].length-=1}--D;if(D<0){F=true}}while(!F)}function removeGroup(F,C){var B,D;var E,G;var A=document[F];G=false;E=0;E=A[C].length-1;if(E<1){return }do{if(A[C].options[E].text==""){--E;continue}if(A[C].options[E].selected){D=A[C].options[E].value;for(z=E;z<A[C].length-1;z++){A[C].options[z].value=A[C].options[z+1].value;A[C].options[z].text=A[C].options[z+1].text}A[C].length-=1}--E;if(E<0){G=true}}while(!G);if(C=="g_read"){remGroup(F,"g_write",D);remGroup(F,"g_full",D)}if(C=="g_write"){remGroup(F,"g_full",D)}}function eGroup(G,C){var B,D;var F,H;var A=document[G];H=false;D="";F=0;F=A[C].length-1;if(F<1){return }do{if(A[C].options[F].text==""){--F;continue}if(A[C].options[F].selected){D=A[C].options[F].value;B=A[C].options[F].text}--F;if(F<0){H=true}}while(!H);if(D!=0){if(D!=2){if(D!=3){var E="pop_portal.asp?cmd=11&cid="+D;popUpWind(E,"egroups","430","580","yes","yes")}}}}function validate(){document.PostTopic.Message.focus();if(document.PostTopic.Subject){if(trim(document.PostTopic.Subject.value)==""){alert("You must enter a Subject");return false}}if(setTimeout((document.PostTopic.Message),1000)){if(trim(document.PostTopic.Message.value)==""){alert("You must enter a Message");return false}}return true}function imageItem(A){this.image_item=new Image();this.image_item.src=A}function get_ImageItemLocation(A){return(A.image_item.src)}function generate(A,C){var B=C-A+1;return Math.floor(Math.random()*B)+A}function allmemberList(B,C){var A="pop_memberlist.asp?pageMode=shoall&frm="+B+"&sel="+C;var D=window.open(A,"memLst","toolbar=no,location=no,menubar=no,scrollbars=yes,width=300,height=500,top=100,left=100,status=no")}function allowgroups(D,B,A){var C="pop_portal.asp?cmd=5&mode=1&frm="+D+"&sel="+B+"&grps="+A;var E=window.open(C,"","toolbar=no,location=no,menubar=no,scrollbars=yes,width=300,height=330,top=100,left=100,status=no")}function openWindow(A){LeftPosition=(screen.width)?(screen.width-400)/2:0;TopPosition=(screen.height)?(screen.height-400)/2:0;popupWin=window.open(A,"new_page","width=400,height=400,top="+TopPosition+",left="+LeftPosition+"")}function openWindow2(A){LeftPosition=(screen.width)?(screen.width-400)/2:0;TopPosition=(screen.height)?(screen.height-480)/2:0;popupWin=window.open(A,"new_page","width=400,height=480,top="+TopPosition+",left="+LeftPosition+"")}function openWindow3(A){openDialogPopUpAJX1("nPopUpWinPRT","calcin","","400","450",A)}function openWindow4(A){LeftPosition=(screen.width)?(screen.width-400)/2:0;TopPosition=(screen.height)?(screen.height-525)/2:0;popupWin=window.open(A,"new_page","width=400,height=525,top="+TopPosition+",left="+LeftPosition+"")}function openWindow5(A){openDialogPopUp1("nPopUpWin5","calcin","","550","400",A)}function openWindow6(A){LeftPosition=(screen.width)?(screen.width-550)/2:0;TopPosition=(screen.height)?(screen.height-525)/2:0;popupWin=window.open(A,"new_page","width=550,height=525,top="+TopPosition+",left="+LeftPosition+",scrollbars=yes,resizable=yes")}function openWindowAdjust(D,C,G,F,H,A,E,B){LeftPosition=(screen.width)?(screen.width-550)/2:0;TopPosition=(screen.height)?(screen.height-525)/2:0;popupWin=window.open(D,"new_page","width="+C+",height="+G+",top="+TopPosition+",left="+LeftPosition+",menubar="+A+",toolbar="+E+",location="+B+",scrollbars="+F+",resizable="+H+" ")}function openWindowCT(A){popupWin=window.open(A,"new_page","width=450,height=480")}function openWindowPM(A){openDialogPopUp1("nPopUpWinPM","calcin","","630","500",A)}function openWindowPager(A){popupWin=window.open(A,"pager","resizable,width=210,height=310,left=10,top=75,scrollbars=auto")}var popwin=null;function popUpWind(F,C,A,B,E,D){LeftPosition=(screen.width)?(screen.width-A)/2:0;TopPosition=(screen.height)?(screen.height-B)/2:0;settings="height="+B+",width="+A+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+E+",toolbar=no,resizable="+D+",menubar=no";popwin=window.open(F,C,settings)}function openJsLayer(B,A,C){Dialog.alert($(B).innerHTML,{windowParameters:{width:A,height:C},okLabel:" Cancel... "})}function openDialog2(G,B,C,A,D){if(document.getElementById){var E=document.getElementById(B);ihtml=E.innerHTML;var F=new Window(G,{className:"dialog",title:C,width:A,height:D,zIndex:150,opacity:1,resizable:true,maximizable:false});F.getContent().innerHTML=ihtml;F.toFront();F.setDestroyOnClose(0);F.showCenter()}}function openDialogPopUpAJX1(H,B,D,A,E,C){if(document.getElementById){var F=document.getElementById(B);ihtml=F.innerHTML;var G=new Window(H,{className:"dialog",title:D,width:A,height:E,zIndex:150,opacity:1,url:C,resizable:true,maximizable:false});G.toFront();G.setDestroyOnClose();G.showCenter()}}function openDialogPopUpAJX2(H,B,D,A,E,C){if(document.getElementById){var F=document.getElementById(B);ihtml=F.innerHTML;var G=new Window(H,{className:"dialog",title:D,width:A,height:E,zIndex:150,opacity:1,url:C,resizable:false,maximizable:false});G.toFront();G.setDestroyOnClose();G.showCenter();window.setTimeout("parent.document.location.reload();",15000)}}function openDialogPopUpAJX3(H,B,D,A,E,C){if(document.getElementById){var F=document.getElementById(B);ihtml=F.innerHTML;var G=new Window(H,{className:"dialog",title:D,width:A,height:E,zIndex:150,opacity:1,url:C,resizable:true,maximizable:true});G.toFront();G.setDestroyOnClose();G.showCenter();window.setTimeout("parent.document.location.reload();",900000)}}function openDialogPopUpAJX4(H,B,D,A,E,C){if(document.getElementById){var F=document.getElementById(B);ihtml=F.innerHTML;var G=new Window(H,{className:"dialog",title:D,width:A,height:E,zIndex:150,opacity:1,url:C,resizable:true,maximizable:true});G.toFront();G.setDestroyOnClose();G.showCenter()}}function openDialogPopUp1(H,B,D,A,E,C){if(document.getElementById){var F=document.getElementById(B);ihtml=F.innerHTML;var G=new Window(H,{className:"dialog",title:D,width:A,height:E,zIndex:150,opacity:1,url:C,resizable:true,maximizable:true});G.toFront();G.setDestroyOnClose();G.showCenter()}}function SwitchMenu(E,D){if(document.getElementById){var C=document.getElementById(D);var A=document.getElementById(E).getElementsByTagName("span");if(C.style.display!="block"){for(var B=0;B<A.length;B++){if(A[B].className=="submenu"){A[B].style.display="none"}}C.style.display="block"}else{C.style.display="none"}}};

