 <!-- Hide from JavaScript-Impaired Browsers
// Riverdrift 2003
function reset(){
if(confirm('Are you sure you want to clear the textarea?')){
document.tb.bx.value='';
}
}
function copy()  {
document.tb.bx.focus();
document.tb.bx.select();
}
function reset2(){
if(confirm('Are you sure you want to clear the textarea?')){
document.bt.bx2.value='';
}
}
function copy2()  {
document.bt.bx2.focus();
document.bt.bx2.select();
}
function swtch(){ 
document.bt.bx2.value += document.tb.bx.value; 
setTimeout('no()',1000);
} 
// Script Script by R_E
// Modified by Riverdrift 2003
function viewit() { 
x=0; 
tp=0; 
y=document.tb.bx.value; 
yy=y.split("'"); 
fixt=yy.join(escape("'")); 
var fsiz = document.tb.fsz.value; 
var hgt = document.tb.a.value; 
if(document.tb.make[0].checked){x=0}; 
if(document.tb.make[1].checked){ 
lt = 13; 
x=1; 
if(document.tb.ftsz[0].checked){tp=166} 
if(document.tb.ftsz[1].checked){tp=174} 
if(document.tb.ftsz[2].checked){tp=182} 
} 
if(document.tb.make[2].checked){ 
lt = 5; 
x=1; 
if(document.tb.ftsz[0].checked){tp=153} 
if(document.tb.ftsz[1].checked){tp=159} 
if(document.tb.ftsz[2].checked){tp=166} 
} 
if(document.tb.make[3].checked){ 
lt = 5; 
x=1; 
if(document.tb.ftsz[0].checked){tp=153} 
if(document.tb.ftsz[1].checked){tp=159} 
if(document.tb.ftsz[2].checked){tp=185} 
} 
if (navigator.appName.substring(0,5) == "WebTV") {location.href='#' } if ( x == 0 )
{ 
document.open(); 
document.write(y); 
document.close(); 
} 
else { 
with(document){ 
open(); 
write('<html><head><title>Results</title>'); 
write('<scr'+'ipt>'); 
write('st2=\''+(fixt)+'\''); 
write('xt=escape\(st2\)'); 
write('function swap(){'); 
write('document.bgColor=parent.content.document.bgColor;document.fgColor=parent.content.document.fgColor');
write('}');
write('<\/scr'+'ipt>'); 
write('</head>'); 
write('<body fontsize='+fsiz+' onload="doit(); setTimeout(\'swap()\',1000)">');
write('<div style="position: absolute; top:'+tp+'; left: '+lt+'; width: 410; height:'+hgt+';">'); 
write('<iframe type=text/html name="content"src="javascript:unescape(parent.xt)"width="410"></iframe>');
write('</div>')
write('<sidebar height=385 width=109>');
write('<table bgcolor=#262e3d cellspacing=0 cellpadding=0 width=109>');
write('<tr>');
write('<td width=104 height=385 valign=top>'); write('<table cellspacing=0 cellpadding=0>'); write('<tr>'); 
write('<td height=7 colspan=3>'); 
write('<spacer type=vertical size=7>'); 
write('<tr>'); 
write('<td width=7>'); 
write('<spacer type=horizontal size=7>'); 
write('<td width=87 href=wtv-tricks:/home>'); 
write('<img src="file:/ROMCache/MSNLogo.gif" width=87 height=67>');
write('<td width=10>'); 
write('<spacer type=horizontal size=10>'); 
write('</table>'); 
write('</table>'); 
write('</sidebar>'); 
write('<table border="0"cellpadding="0"cellspacing="0">'); write('<tr>');
write('<td height=8 colspan=2>'); 
write('<tr>'); 
write('<td width=13 height="8">'); 
write('<tr>'); 
write('<td width=13>'); 
write('<spacer type=horizontal size=13>'); 
write('<td width=438 valign=top>'); 
write('<table cellspacing=0 cellpadding=0 width=438 
border=0>'); 
write('<tr>'); 
write('<td height=9>'); 
write('<td width=128 valign=middle>'); 
write('</table>'); 
write('<tr>'); 
write('<td colspan=2>'); 
write('<table cellspacing=0 cellpadding=0 bgcolor=#4a525a>');
write('<tr>'); 
write('<td width=451 absheight=25>'); 
write('<table cellspacing=0 cellpadding=0>'); 
write('<tr>'); 
write('<td width=13 absheight=25>'); 
write('<spacer type=horizontal size=13></td>'); 
write('<th width=370>'); 
write('<a href="#" onclick="history.go(-1)">');
write('<font size="2" color="#ffffff">Go Back</font></a>'); 
write('</th>'); 
write('<td width=21 height="16"> '); 
write('</td>'); 
write('<td width=34>'); 
write('<spacer type=vertical size=1>'); 
write('<br> '); 
write('</td>'); 
write('<td width=13>'); 
write('<spacer type=horizontal size=13>'); 
write('</td>'); 
write('</tr>'); 
write('</table>'); 
write('</td>'); 
write('</tr>'); 
write('</table>'); 
write('<table border="0"cellpadding="0"cellspacing="0">'); write('<tr>');
write('<td width=451 valign=top>'); 
write('<spacer type="vertical"height="7"><br>'); 
write('Group:'); 
write('<br>'); 
write('Date:'); 
write('<br>'); 
write('From:'); 
write('</td>'); 
write('</tr>'); 
write('</table>'); 
write('</table>'); 
write('</body>') 
close(); 
} 
} 
} 
TheCookieName = 'NETSCAPE_LIVEWIRE.BigCookieinthesky';
numDays       = 183;  //Days 'till Cookie expires.(eg. 183 days = 6 months)
function WriteOneBigCookie () {
var expire = new Date ();
expire.setTime (expire.getTime() + (numDays * 24 * 3600000)); //6 months from now!
//                                     (dd) (hr) (ms in hr)
var WholeCookie = expire ;
//Text entry
WholeCookie = WholeCookie + '`' + document.tb.bx.value;
//Put cookie in the Oven Bake 'till done.
document.cookie = TheCookieName +"=" + escape (WholeCookie) +"; 
expires=" + expire.toGMTString() ;
}
function UpdateForm () {
MakeCookieArray(GetCookie(TheCookieName));
('ckArray: ' + ckArray[0]);
if (ckArray[0] != "*") {
document.tb.ExpDate.value  = ckArray[0];
document.tb.bx.value   = ckArray[1];
}
}
function GetCookie (CookieName) {
var cname = CookieName + "=";
var i = 0;
while (i < document.cookie.length) {
var j = i + cname.length;
if (document.cookie.substring(i, j) == cname){
var leng = document.cookie.indexOf (";", j);
if (leng == -1) leng = document.cookie.length;
return unescape(document.cookie.substring(j, leng));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; //thats -1 plus 1, duh.
}
return "*";
}
function DelEatCookie (name) {
var expire = new Date();
expire.setTime (expire.getTime() - 2 * 86400001);  
document.cookie = name + "=*; expires=" + expire.toGMTString();
}
function MakeCookieArray(cookieValue) {
var i = 0,indx = 0, citemlen =0;
ckArray = new Array();
if ( cookieValue == null ) {ckArray[0]= "*";return}//Data has expired or never entered.
if ( cookieValue == "*"  ) {ckArray[0]= "*";return}//Data has expired or never entered.
while (citemlen < cookieValue.length) {
citemlen=(cookieValue.indexOf("`", indx)>0)
?cookieValue.indexOf("`", indx):cookieValue.length;
ckArray[i]= cookieValue.substring(indx, citemlen); i++;
indx = citemlen + 1;
}
}
// expanding head
function CkSize() {
var textlimit = 2400;
var getcode = document.tb.bx.value;
var overflow = (getcode.length - textlimit);
if (overflow > 0) {
if (confirm("Warning, You are attempting to save "+getcode.length+"
characters\nThis exceeds the safe limit by "+overflow+"
charcters\nCancel if you wish Abort")) {
alert("Saving Data")
// setCookieFunctio();
  }
else {
alert("Action Cancelled");
  }
 }
else {
alert("Safe limit, Saving code");
// setCookieFunction();
 }
}

function fsiz(){ 
document.tb.bx.value+='<Script Language="javascript"><!-- Hide////--> </sc'+'ript> '; } 
// Search and replace by R_E
function rptext() {
K1 = document.tb
all_text = K1.bx.value;
old_word = K1.bgdc.value;
new_word = K1.btxtc.value;
working = true; if (confirm("This will replace ALL instances of:\n\n` " +old_word+ "´\n\nwith:\n\n` " +new_word+" ´\n\nAre you sure you want to continue?"))
left_index = 0;
while (working) {
J1 = all_text.indexOf(old_word, left_index);
if (J1==-1) {working = false; break}
all_text_left = all_text.substring(0, J1) 
J2 = J1+old_word.length;
all_text_right = all_text.substring(J2,
all_text.length);
all_text = all_text_left + new_word +
all_text_right;
left_index = J1+new_word.length;
}
document.tb.bx.value = all_text
}
function viewit2(){
var bx2 = document.bt.bx2.value;
if (navigator.appName.substring(0,5) == "WebTV"){
location.href="#";
document.open();
document.write(bx2);
document.close();
}
}

// End Hiding -->
