// This script is from www.chatzy.com - Copyright 2008. All rights reserved. This script or parts of it may not be used at any other site.
var X1='17P03';var X2=60;var X3="#E8E8E8";var X4="Are you sure you want to remove »X5« from your personal room list?\n\n(The room itself will not be deleted.)";var X6="Cookies have been removed";var X7="No cookies found";var X8=new Array ("No Checks", "Checks: 10 Sec", "Checks: 1 Min", "Checks: 10 Min");var X9=new Array ("No Alerts", "Alert By Dialog", "Alert By Sound");var X10=new Array ("Room is <B>not</B> automatically checked for new messages", "Room is checked for new messages every 10 secs (for at least 10 minutes).", "Room is checked for new messages every minute (for at least one hour).", "Room is checked for new messages every 10 min. (for at least 10 hours).");var X11=new Array ("Message alerts are off. When people join or new messages arrive, the room will update silently.", "Message alerts by dialog are on. When people join or new messages arrive, a dialog box will show on your computer.", "Message alerts by sound are on. When people join or new messages arrive, your computer will make a sound (Internet Explorer only).");var X12="You have left the chat. New messages will not be displayed.";var X13="Loading...";var X14="Checking for messages..";var X15="Error: Ajax call failed";var X16="Updating chat window...";var X17="Chat window updated";var X18="No new messages";var X19="Visitor list changed";var X20="Posting form...";var X21="Posting message...";var X22="Refreshing browser...";var X23="Initializing...";var X24="Sorry, your browser does not seem to support the Ajax technology which is required in Chatzy version 17 and newer.";var X25="The connection to Chatzy seems to have been cut off. New messages may not appear automatically.";var X26="Did not understand the server response. Chatzy may have a server problem.";var X27="Sorry, could not open the form. Please try again later.\n\nIf this problem continues, press F5 to refresh your browser.";var X28="Sorry, could not submit your input. Please try again later.";var X29="New message(s) in the room!\n\n(This shows because you have activated checks via the 5th item in the left menu)";var X30="New message(s) in the room!\n\n(This shows because you have selected 'Alert By Dialog')";var X31="New message(s) in the room! Click 'OK' to update your browser.\n\n(This shows because you have selected 'Alert By Dialog')";var X32="No messages were posted in the room for more than X33. Do you want to continue checking for new messages?\n\n(If you continue checks, the interval between checks will automatically be increased. You can control the interval manually via the 5th item in the left menu.)";var X34="The chat was inactive for more than X33. Do you want to stay in this room?\n\n(This message is displayed so that inactive chatrooms don't slow down our system. If you leave the room, you can easily return later.)";var X35="Somebody entered the room, went away or came back. For details, select 'Visitor List' in the left menu.\n\n";var X36="(This shows because you have activated checks via the 5th item in the left menu)";var X37="(This shows because you have selected 'Alert By Dialog')";var X38="Notice: You have selected to use your room for many-to-one messaging (write-only).\n\nRegular users will be able to leave messages to you, but they will <B>not</B> be able to view the contents of the room. Only you (or anybody with the administrator password) can view the room.";var X39="Notice: You have selected to use your room for one-to-many messaging (read-only).\n\nRegular users will <B>not</B> be able to leave messages to the room; only you (or anybody with the administrator password) can post messages.";var X40="You are not logged in as administrator for this room. Only the room administrator(s) can allow or ban visitors.\n\nDo you want to log in as administrator now?";var X41="Cannot Ban/Allow Visitor";var X42="This room was created as a Quick Chat. Users can only be banned or allowed specifically in Virtual Rooms.";var X43="This visitor is not a registered Chatzy user. Since we don't know this person's email address, you cannot ban or allow him/her in the room.\n\n(If you don't want such unregistered users entering the room, go to 'Room Properties' and select the appropriate option in the 'Allow to enter' drop-down box.)";var X44="The maximum message size of X45 characters has been reached.";var X46="Sorry, your browser does not support this function (Internet Explorer or Mozilla/Firefox required).\n";var X47="To apply the format, manually insert these codes around the text to be formatted:\n";var X48="You cannot change the background color of the message.";var X49=(navigator.userAgent.indexOf('MSIE')>-1);function X50(X51,X52){with(X52?X52:window.document){if(getElementById){return getElementById(X51);}else if(all){return all(X51);}else if(layers){return layers(X51);}}}var X53=(window.location.hostname.substring(window.location.hostname.length-11)=='.chatzy.com');function X54(){if(event.keyCode==27){if(X55&&X55.value=='/away'){X56('back',true);return;}X57();}}var X58,X59,X55,X60;var X61=72;var X62=false;var X63=false;function X64(X65){if(X65){X62=true;X61=X65;if(X66=='X67'){X55=window.document.X68.X55;}X60=X69.split(" ");}document.write('<DIV id="X70" style="'+(X49?'filter:alpha(opacity=50);':'opacity:0.5;-moz-opacity:0.5;')+'"></DIV><DIV id="X71"></DIV>');X72();if(X62){if(X66!='X73'){X74();}if(X66.match(/^(X75|X67|X76)$/)){X58=(X66=='X75'?X8:X66=='X67'?X9:'');X59=(X66=='X75'?X10:X66=='X67'?X11:'');}else if(X66=='X77'){X50('X78').innerHTML=X12;}}if(typeof(window.event)=='object'){document.onkeypress=X54;}}var X79=null;function X72(){var X80=(document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth||640);var X81=(document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight||480);var X82=((X81>475?X81:475)-X61)+'px';if(X62&&X66!='X73'){X50('X83').style.height=X82;}else{X50('X83').style.minHeight=X82;}if(X55){var X84=X80-63-(X63?0:125)-(X50('X85').offsetWidth)-3;X55.style.width=(X84<150?150:X84)+'px';}if(X62&&!X79){X86(X87!='2');}if(X50('X70').style.display=='block'){X50('X71').style.top=parseInt((X81-6-X50('X71').offsetHeight)/2)+'px';X50('X71').style.left=parseInt((X80-X50('X71').offsetWidth)/2)+'px';X50('X70').style.height=X81+'px';}}window.onresize=X72;function X88(X89,X90,X91){X50('X70').style.display=(X89?'block':'');X50('X71').style.display=(X89?'block':'');X50('X71').innerHTML=(X89?X89:'');X50('X71').style.width=(X91||!X89?150:X50('X71').innerHTML.match(/<FORM/i)?350:parseInt(275+(X50('X71').innerHTML.length*0.25)))+'px';if(X62){X50('X78').innerHTML=(X90?X90:'');}X72();}function X92(X90){X88('<DIV style="margin:0 30px 24px 30px;"><IMG src="/elements/loading.gif" style="margin:0 auto;width:32px;height:32px;" alt="Loading..."></DIV><DIV style="margin:0;text-align:center;"><INPUT type="button" value="Cancel"'+(X90==X22?' DISABLED':' onClick="X57();"')+'></DIV>',X90,true);}function X93(X94,X95,X96,X97){X88('<H3><IMG class="X98" src="/elements/icon30/'+X94+'.gif">'+X95+'</H3><P>'+X96.replace(/\n/g,'<BR>')+'</P><DIV id="X99">'+(X97?X97:'<INPUT type="button" onClick="X88();" value="OK">')+'</DIV>');}function X100(X95,X96,X97){X93('info',X95,X96,X97);}function X101(X102,X95,X96){if(!window.document.cookie.match(X102+'=1')){window.document.cookie=X102+'=1;path=/;expires=Fri,01-Jan-2010 00:00:00 GMT;';X100(X95,X96);}}function X103(X96){X104();var X105=(X106>=2?'X88();':'X57();');X93('critical','Connection Error',X96,'<INPUT type="button" onClick="'+X105+'" value="OK">');}function X107(X95,X96,X97){if(X97=='Clean Up!'){X97='<INPUT type="button" onClick="X108(this.value);" value="Clean Up!"><INPUT type="button" onClick="X88();" value="Cancel">';}else if(X95=='Registered Users Only'){X96+=' Signing up is free and only takes a few seconds.\n\nDo you want to log in or register now?';X97='<INPUT type="button" onClick="window.document.location.href=\'/sign.htm\';" value="Sign Up/Log In" style="width:150px;"><INPUT type="button" onClick="X88();" value="Cancel">';}X93('question',X95,X96,X97);}function X109(X110){if(X79){X79.style.backgroundColor='';X79=null;}if(X110){X79=X110;X79.style.backgroundColor='#FFFF80';}}function X111(X112){X50('X113').innerHTML='<A href="#" onClick="X111('+(X112?0:1)+');return false;"><IMG src="/elements/arrow'+(X112?2:1)+'.gif" style="width:10px;height:15px;border:none;" alt="Click here to '+(X112?'show':'hide')+' the menu"></A>';X50('X114').style.display=(X112?'none':'');X50('X115').style.display=(X112?'':'none');if(X55&&!X55.disabled){X55.focus();}X63=X112;X72();}function X116(X117){X118('X119&X120='+escape(X117));}function X121(X122){if(X122){X123(document.X124.X125);X123(document.X124.X126);X123(document.X124.X5);}else{X127(document.X124.X125,'John');X127(document.X124.X126,'somebody@somewhere.com');X127(document.X124.X5,'Whatever is on my mind');}}function X127(X128,X129){if(X128.value==''){X128.value=X129;X128.style.color='silver';X128.onfocus=function(){if(this.style.color=='silver'){this.valueWas=this.value;this.value='';this.style.color='';}};X128.onblur=function(){if(this.value==''){this.value=this.valueWas;this.style.color='silver';}};}}function X123(X128){if(X128.style.color=='silver'){X128.value='';}}function X130(X124){X124.X131.checked=(X124.X132.value!='00W');X124.X133.checked=(X124.X132.value.match(/(CRW|CR0|0RW)/));X124.X134.checked=false;if(X135(X124)){X100('Special Room Type Selected',X38);}else if(X124.X132.value=='0R0'){X100('Special Room Type Selected',X39);}}function X135(X124){var X136=new Array(X124.X131,X124.X133,X124.X134);var X137=(X124.X132.value=='00W');for(var X138=0;X138<3;X138++){X136[X138].disabled=X137;}return X137;}function X139(){for(var X138=0;X138<document.images.length;X138++){if(document.images[X138].id.match(/X140(\d+)/)){X141(RegExp.$1);}}}function X141(X142){var X94=X50('X140'+X142);var X129=(X94.src.match(/down.gif$/));X94.src=X94.src.replace(/\/\w+\.gif$/,(X129?'/right.gif':'/down.gif'));X50('X143'+X142).style.display=(X129?'none':'');X50('X144'+X142).style.fontWeight=(X129?'normal':'');}function X145(X146,X5){var X147='with(window.document.X124){X148.value='+X146+';submit();}';if(X5){X107('Remove room',X4.replace('X5',X5),'<INPUT type="button" id="X149" onClick="'+X147+'" value="Remove"><INPUT type="button" onClick="X57();" value="Cancel">');}else{eval(X147);}}var X150,X151;function X152(X153){var X154=window.document.X124;X154.X155.value=X150[X153];X154.X156.value=X151[X153];X154.X157.value=(X154.X156.value?'US\$ '+X154.X156.value:'N/A');X154.X158.disabled=(!(X154.X156.value>=1));}function X159(){var X154=window.document.X124;var X160=X154.X161[0].checked;X50('X162').style.display=(X160?'':'none');if(X160){X154.X163.focus();}else if(!X154.X161[1].checked){return false;}X154.X158.value=(X160?'Log me in':'Send password');X154.X158.disabled=false;}function X164(){var X154=window.document.X124;window.document.cookie="ChatzyUser="+escape(X154.X165.value.replace(/^\s+/,'').replace(/\s+$/,''))+"&"+escape(X154.X163.value.replace(/^\s+/,'').replace(/\s+$/,''))+"&"+";path=/;"+(X154.X166[0].checked==1?"expires=Fri,01-Jan-2010 00:00:00 GMT;":"");window.document.cookie="ChatzyEternal="+(X154.X166[0].checked?"1":"0")+";path=/;expires=Fri,01-Jan-2010 00:00:00 GMT;";return true;}function X167(){if(window.document.cookie){var X168=window.document.cookie.split(';');for(var X169=0;X169<X168.length;X169++){window.document.cookie=X168[X169].substring(0,X168[X169].indexOf('='))+"=0;path=/;expires=Sat,01-Jan-2000 00:00:00 GMT;";}alert(X6);}else{alert(X7);}}function X170(){var X154=window.document.X124;X171(X154.X125.value,X154.X172.value,X154.X173.value,X154.X174.value,X154.X175.value);return true;}function X171(){var X176='ChatzyPrefs=';for(var X138=0;X138<arguments.length;X138++){X176+=escape(arguments[X138]?arguments[X138]:'')+'&';}window.document.cookie=X176+";path=/;expires=Fri,01-Jan-2010 00:00:00 GMT;";}var X177=true;function X74(){if(X87=='2'){var X178=X50('X179');X178.innerHTML=X180(X178.innerHTML);}else{X86(true);}}function X180(X117){var X181=(X117.substring(0,3)=='<p '?'<p ':'<P ');var X182=X117.split(X181);var X183='';for(var X138=X182.length-1;X138>=0;X138--){if(X177||X182[X138].match(/class="?a"?/i)){X183+=X181+X182[X138];}}return X183;}function X86(X184){if(X184){X50('X83').scrollTop=X50('X83').scrollHeight;}else{X50('X83').scrollTop=0;}}var X185,X186,X187,X188,X189,X190,X191,X192,X193,X194;function X195(X196,X84,X197){X185=X196;X186=X84;X187=X197;X188=parseInt(X66=='X75'?X198:X66=='X67'?X199:null);if(X66.match(/^(X75|X67)$/)){X189=X50('X200');X190=X189.innerHTML;X191=X189.title;X201(0);}X111(false);if(X66.match(/^(X75|X67|X76)$/)){X202(1);X194=true;}if(X55&&!X55.disabled){X55.focus();}}function X203(){if(X194){X202(0);}}function X201(X204){X188=X188+X204;if(X188>(X66=='X75'?3:X66=='X67'?2:0)){X188=0;}X189.innerHTML=X58[X188];X189.title=X59[X188]+' Click for more options.';X192=(X66=='X75'?Array(0,10000,60000,600000)[X188]:X188>0?2000:1000);X193=(X66=='X75'?1:X188>0?1.072:1.045);if(X66=='X75'){X50('X78').innerHTML=X59[X188];}}function X202(X205){var X206='/?visitor:'+X146+'-'+X205+'-'+X207+'-'+X208+'-'+Math.random();X209(1);if(X210){X210.open('GET',X206,true);X210.onreadystatechange=X211;X210.send(null);if(X205==1){X50('X78').innerHTML=X23;}else{var X212=new Date();do{var X213=(new Date())-X212;}while(X213<1000&&X210.readyState!=4);}}}var X214,X215,X216,X217,X218,X219;function X220(X221){X209(0);if(!X53||X66=='X77'){return 1;}X214=0;X215=0;X218=(new Date()).getTime();X219=X192;if(X221){X216=1;X222();}else if(X192>0){X223();}}function X104(){X209(0);X219=null;X50('X78').innerHTML='';}function X222(){if(!X216){return 1;}X209(1);if(X210){X210.open('GET','/?check:'+X146+'-'+X185+'-'+X186+'-'+X187+'-'+Math.random(),true);X210.onreadystatechange=X211;X210.send(null);X50('X78').innerHTML=X14;}else{alert(X24);}}function X223(){if(X66=='X75'){X50('X78').innerHTML=X59[X188];}else if(X214){X50('X78').innerHTML=X14+'..';}X214++;if(X214>X2){X224();return 1;}X217=X188;if(X216){clearTimeout(X216);X216='';}X216=setTimeout('X222()',X219);X219=X219*X193;if(X219>120000){X219=120000;}}function X224(){X104(true);var X33=((new Date()).getTime()-X218);var X96=(X66=='X75'?X32:X34).replace('X33',X225(X33));var X97=(X66=='X75'?'<INPUT type="button" id="X149" onClick="X201(1);X57();" value="Continue Checks" style="width:150px;"><INPUT type="button" id="X149" onClick="X201(9);X57();" value="Stop Checking" style="width:150px;">':'<INPUT type="button" onClick="X57();" value="Stay"><INPUT type="button" onClick="X226(\'X227\');" value="Leave">');X107('Confirmation required',X96,X97);}function X225(X228){var X196=(X228/1000);return(X196>7200?parseInt(X196/3600)+' hours':X196>3600?'one hour':X196>600?parseInt(X196/600)+'0 minutes':X196>120?parseInt(X196/60)+' minutes':X196>60?'one minute':parseInt(X196)+' seconds');}var X210,X229,X230,X231;function X209(X232){if(X216){clearTimeout(X216);X216='';}if(X210){X210.onreadystatechange=function(){};X210.abort();X210=null;X230=null;}X229=X232;if(!X229){return;}if(window.XMLHttpRequest){X210=new XMLHttpRequest();if(X210.overrideMimeType){X210.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{X210=new ActiveXObject("MSXML2.XMLHTTP");}catch(e){try{X210=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){X210=null;}}}if(!X210){X50('X78').innerHTML=X15;}}function X233(X147,X124){var X234=(X147=='X235'?'X236='+X230:'X1='+X1+'&X236='+X147);for(var X138=0;X138<X60.length;X138++){X234+="&"+X60[X138]+"="+escape(eval(X60[X138]));}if(X124){for(var X138=0;X138<X124.elements.length;X138++){var X237=X124.elements[X138];if(!X237.name)continue;if((X237.type=="radio"||X237.type=="checkbox")&&X237.checked==false)continue;X234+="&"+escape(X237.name)+"="+escape(X237.value);}}X210.onreadystatechange=X211;X210.open('POST','/default.cgi',true);X210.setRequestHeader("Content-type","application/x-www-form-urlencoded");X210.setRequestHeader("Content-length",X234.length);X210.setRequestHeader("Connection","close");X210.send(X234);if(!X147.match(/^(X235|X119)/)){X230=X147;}}function X211(){if(!X210){return;}var X238='';if(X210.readyState==4){if(X210.status==200){var X117=X210.responseText;X231=0;if(X117.match(/^X239:/)){X117=X117.replace(/^X239:\s*([^\n]+)\n/,'');if(X50('X240')){X50('X240').innerHTML=RegExp.$1;}}if(X117.match(/^X238:/)){X117=X117.replace(/^X238:\s*([^\n]+)\n/,'');X238=RegExp.$1;}if(X117=='X241'){X50('X78').innerHTML='';}else if(X117=='X242'){X243();}else if(X117.match(/^X244:/)){X244(X117.replace(/^X244:\s*/,''));X215++;if(X215>100){X238+="X118('X245');";}}else if(X117.match(/^X246:/)){X246(X117.replace(/^X246:\s*/,''));}else if(X117.match(/^X247:/)){if(X106==1||X106==3){X248(X117.replace(/^X247:\s*/,''));}else{X238='';}}else if(X117.match(/^X249:/)){X50('X83').innerHTML=X117.replace(/^X249:\s*/,'');X194=false;X92(X22);window.document.X124.submit();return;}else if(X117.match(/^X250:/)){X88(X117.replace(/^X250:\s*/,''));X106=4;X229=3;}else if(X117=='X251'){X50('X78').innerHTML=X16;X252(X31);X238+="X118('X245');";}else{X103(X26);}}else{if(X229==1){X231+=1;if(X231==5){X229=0;X103(X25);if(X66=='X75'){X201(9);}}}else{X229=0;X103(X106==1?X27:X28);}}X210=null;if(X229==1){X230=null;}else if(X229==2){if(X230=='X253'||X230=='X245'||X230=='X254'){if(X230=='X253'){X55.value='';}if(X55&&!X55.disabled){X55.blur();X55.focus();X55.focus();}}}if(X106==0){if(X219){X223();}else{X255(false);}}}if(X238){eval(X238);}}function X243(){X256();var X110=X50('X257');if(X55&&X55.value=='/back'){return;}X50('X78').innerHTML=X19;if(X185){X185=0;X110.style.backgroundColor='#FFCCCC';X252(X35+(X66=='X75'?X36:X37));}}function X244(X117){X256();if(X66=='X75'){if(!X79){X258(X117);}alert(X29);}else{X258(X117);X252(X30);}}function X246(X117){X256();X215=0;if(X117.replace(/\n$/,'')==X50('X179').innerHTML){X50('X78').innerHTML=X18;}else{X50('X179').innerHTML='';X258(X117);}}function X258(X117){var X178=X50('X179');if(X87=='2'){X178.innerHTML=X180(X117)+X178.innerHTML;}else{X178.innerHTML+=X117;}X86(X87!='2');X50('X78').innerHTML=X17;}function X252(X259){if(X217==1){window.focus();alert(X259);if(X55&&!X55.disabled){X55.focus();}}else if(X217==2){X50('X260').innerHTML=(navigator.appName.indexOf('Microsoft')>-1?'<IMG border="0" style="height:1px;width:1px;"><BGSOUND src="/elements/doodoo.wav" autostart="TRUE">':'<EMBED src="/elements/doodoo.wav" hidden="TRUE" autostart="TRUE">');}}function X118(X147,X110){if(X147=='X200'){X261(X110);return;}if(X66=='X67'){X104(true);}X209(2);if(X210){X262(0);X109(X110);X92(X13);X106=1;X233(X147);}else{X103(X27);}}function X226(X147){X118(X147,X50(X147));}function X261(X110){if(X110.innerHTML==X190){X118('X245',X110);return;}X201(1);X220(false);X171(X207,X208,X199,X87,X198);if(X55&&!X55.disabled){X55.focus();}}var X106=0;var X263=null;var X264=null;var X265=null;function X248(X117){var X266=X50('X83');if(X117){if(!X263){X263=X266.innerHTML;X86(false);X264=window.onload;}window.onload=null;X266.innerHTML=X117;X106=2;X265=X79;X88();}else{if(X263){X266.innerHTML=X263;X86(X87!='2');window.onload=X264;X263=null;}X106=0;X265=null;}}function X57(){X209(0);X256(true);if(X265&&X265!=X79){X109();X109(X265);}if(X62&&X106==0){X255(true);}if(X55&&!X55.disabled){X55.focus();}}function X256(X267){if(X50('X70').style.display=='block'){X88();if(X263&&X267){return;}}if(X106>0){X248();if(X66=='X76'){X226('X268');return;}X109();}X262(1);}function X255(X221){if(X66=='X67'||X188>0){X220(X221);}}function X108(X147){if(X147){window.document.X124.X269.value=X147;}X209(2);if(X210){X92(X20);X233('X235',window.document.X124);X106=3;}else{X103(X28);}}function X270(){var X154=window.document.X124;var X271=parseInt(X154.X272.value);if(!(X271>0)){X271=X154.X273.value;}else if(X271>X154.X273.value){X271=X154.X273.value;}X154.X272.value=X271;X154.target='_BLANK';X154.submit();}function X274(){if(X55.value==''){X118('X245');return false;}if(X55.value.match(/^\s*\/(\w+)\s*$/)){var X275=RegExp.$1;if(X275.match(/^(na|da|sa)$/)){X201((X275=='da'?1:X275=='sa'?2:0)-parseInt(X188));X55.value='';return false;}var X276=new Array('c','clear','v','visitor','visitors','i','invite','p','prefs','r','room','message');var X277=new Array('X254','','X257','','','X278','','X279','','X280','','X268');for(var X138=0;X138<X276.length;X138++){if(X275==X276[X138]){var X147=(X277[X138]==''?X277[X138-1]:X277[X138]);X226(X147);X55.value='';return false;}}}X104(false);X209(2);if(X210){X262(0);X109(X50('X253'));X50('X78').innerHTML=X21;X217=0;X233('X253',window.document.X68);}else{X103(X28);}}function X262(X281){if(X55){X55.disabled=(!X281);X55.style.backgroundColor=(X281?'':X3);X50('X85').style.backgroundColor=(X281?'':X3);X50('X282').style.backgroundColor=(X281?'':X3);X50('X282').style.color=(X281?'':'gray');}}function X56(X275,X122){X57();if(X55){X55.value='/'+X275;if(X122){X274();}}}var X45=3200;var X283=new Array('fill');var X284=new Array('b','i','u','font','size','color');var X96,X285,X286,X287,X288,X289;function X290(){var X154=window.document.X124;X96=X154.X291;if(X96.createTextRange){X286=true;}else if(X96.setSelectionRange){X287=true;}X292(X154.X293.value);X294(X50('X295'),X154.X293.value);X154.X291.focus();}function X296(X51){var X297=false;for(var X138=0;X138<X283.length;X138++){if(X51==X283[X138]){X50('XIDSL'+X283[X138]).style.display=(X50('XIDSL'+X283[X138]).style.display?'':'none');X297=true;}else{X50('XIDSL'+X283[X138]).style.display='none';}}return X297;}function X298(X299){var X300=new Array(/\[\/?b\]/g,/\[\/?i\]/g,/\[\/?u\]/g,/\[(\/font|font\:[^\]]+)\]/g,/\[(\/size|size\:\d+)\]/g,/\[(\/color|color\:\#\d+)\]/g);for(var X138=0;X138<X284.length;X138++){if(X299==X284[X138]){return X300[X138];}}return false;}function X294(X110,X301){X110.style.backgroundColor=(X301?'#E0E0E0':'');X110.style.borderColor=(X301?'gray white white gray':'');}function X302(X110,X299,X303){var X301=(X110&&X110.style.backgroundColor!='');if(X286){if(X110){X289=document.selection.createRange().getBookmark();}else{var X304=document.body.createTextRange();X304.moveToBookmark(X289);if(X304.text)X304.select();}}if(X110){X288=X110;}else{X110=X288;}if(X296(X301?null:X299)&&!X303){return false;}var X305='['+X299+(X303?':'+X303:'')+']';var X306='[/'+X299+']';X96.focus();if(X286){X307();if(document.selection.createRange().text){document.selection.createRange().text=X305+document.selection.createRange().text.replace(X298(X299),'')+X306;X301=false;}else{X301=!X301;document.selection.createRange().text+=(X301?X305:X306);}}else if(X287){if(X96.selectionStart!=X96.selectionEnd){X308(X305+X96.value.substring(X96.selectionStart,X96.selectionEnd).replace(X298(X299),'')+X306);X301=false;}else{X301=!X301;X308(X301?X305:X306);}}else{alert(X46+X47+X305+' '+X306);}X294(X110,X301);}function X309(X110,X299,X303){if(X286||X287){var X301=(X110&&X110.style.backgroundColor!='');if(X110){X288=X110;}else{X110=X288;}if(X296(X301?null:X299)&&!X303){return false;}if(!X303){X303='';}if(X299=='fill'){X292(X303);window.document.X124.X293.value=(X303?X303:'');}X294(X110,X303);}else{alert(X46+X48);}}function X292(X303){X96.style.borderLeftColor=(X303?X303:'#D0D0D0');}function X310(X110,X299){X96.focus();if(X286){if(document.selection.createRange().text){document.selection.createRange().text=X311(X299,document.selection.createRange().text);return true;}}else if(X287){if(X96.selectionStart!=X96.selectionEnd){X308(X311(X299,X96.value.substring(X96.selectionStart,X96.selectionEnd)));return true;}}X96.value=X311(X299,X96.value);}function X311(X299,X50){if(X299=='clear.font'){return X50.replace(/\[\/?(b|i|u|font|size|color)\]/g,'');}else if(X299=='clear.para'){return X50.replace(X285,"$1");}}function X307(){var X304=document.selection.createRange();var X312=X304.text.length;if(X312>0){do{X304.moveEnd('character',-1);}while(X304.text.length==X312);X304.moveEnd('character',1);}X304.select();}function X308(X313,X314){X96.value=X96.value.substring(0,X96.selectionStart)+X313+X96.value.substring(X96.selectionEnd);X96.setSelectionRange(X96.selectionStart+(X314?X313.length:0),X96.selectionStart+X313.length);}function X315(X50){if(X50.value.length>X45){alert(X44.replace('X45',X45));X50.value=String(X50.value).substring(0,X45);}}function X316(X317){if(X317=='X318'){X107('Log In As Administrator',X40,'<INPUT type="button" id="X149" onClick="X118(\'X319\',X50(\'X279\'));" value="Yes"><INPUT type="button" onClick="X88();" value="No">');}else if(X317=='X320'){X100(X41,X42);}else if(X317==''){X100(X41,X43);}else{var X94=X50('MAILTO:'+X317);var X129=X94.src.match(/visitor\/(\w+)\.gif$/);X129[1]=(X129[1]=='allow'?'deny':X129[1]=='reg'?'allow':'reg');X94.src='/elements/icon16/visitor/'+X129[1]+'.gif';with(window.document.X124){X321.value='Discard Changes';X321.style.backgroundColor='#FFAAAA';X322.value='Save Changes';X322.style.backgroundColor='#AAFFAA';X323.disabled=true;}}}function X324(X147){var X325=window.document.X124.X325;X325.value='';for(var X138=0;X138<window.document.images.length;X138++){var X94=window.document.images[X138];if(X94.id.substr(0,7)=='MAILTO:'){var X129=X94.src.match(/visitor\/(\w+)\.gif$/);X325.value+=(X325.value?',':'')+window.document.images[X138].id.substr(7)+':'+X129[1];}}X108(X147);}