<!--- Hide from JavaScript-Impaired Browsers
// Script by Riverdrift 2003
// http://www.riverdrift.com
function makeit(form){
var txt = '<html>\n<head>\n<title>Tester</title>\n'
+'<script type="text/javascript">\n'
+'<\!-- Hide from JavaScript-Impaired Browsers\n'
+'// Script generated at\n'
+'// http://www.riverdrift.com\n'
if (document.ttb.dois[0].checked) {
txt += 'function viewit(){\n'
+'temp = document.tester.bx1.value;\n'
+'preWindow = open("","preWindow","status=no,'
+'resizable=1,status=0,menubar=0,toolbar=0,'
+'scrollbars=1");\n'
+'preWindow.document.open();\n'
+'preWindow.document.write(temp);\n'
+'preWindow.document.close();\n}\n';
}
if (document.ttb.dois[1].checked) {
txt += 'function viewit(){\n'
+'var bx1 = document.tester.bx1.value;\n'
+'if((navigator.appVersion.indexOf(\'WebTV;2.7\') !=-1)\n'
+'|| (navigator.appVersion.indexOf(\'WebTV;2.8\') !=-1)\n'
+'|| (navigator.appVersion.indexOf(\'WebTV;2.8.2\') !=-1))\n {\n'
+'location.href="#";\n'
+'document.open();\n'
+'document.write(bx1);\n'
+'document.close();\n}\n'
+'else {\n'
+'temp = document.tester.bx1.value;\n'
+'preWindow = open("",\n'
+'"preWindow","status=no,resizable=1,status=0,'
+'menubar=0,toolbar=0,scrollbars=1");\n'
+'preWindow.document.open();\n'
+'preWindow.document.write(temp);\n'
+'preWindow.document.close();\n'
+'}\n}\n';
}
txt += 'function copy()  {\n'
+'document.tester.bx1.focus();\n'
+'document.tester.bx1.select();\n}\n'
+'function undo(){\n'
+'if(confirm(\'Are you sure you want to clear the'
+' textarea?\')){\n'
+'document.tester.bx1.value = \'\';\n'
+'document.tester.ExpDate.value = \'\';\n}\n}\n'
+'function tdown(){\n'
+'document.botb.bx2.value +=' +'document.tester.bx1.value;\n'
+'setTimeout(\'no()\',1000);\n}\n'
+'// Search and replace by R_E\n'
+'// http://www.wtv-zone.com/endymion/\n'
+'function replaceText() {\n'
+'K1 = document.tester\n'
+'all_text = K1.bx1.value;\n'
+'old_word = K1.E2.value;\n'
+'new_word = K1.E3.value;\n'
+'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?"))\n'
+'left_index = 0;\n'
+'while (working) {\n'
+'J1 = all_text.indexOf(old_word, left_index);\n'
+'if (J1==-1) {working = false; break}\n'
+'all_text_left = all_text.substring(0, J1) \n'
+'J2 = J1+old_word.length;\n'
+'all_text_right = all_text.substring(J2,\n' +'all_text.length);\n'
+'all_text = all_text_left + new_word +\n' +'all_text_right;\n'
+'left_index = J1+new_word.length;\n}\n'
+'document.tester.bx1.value = all_text\n}\n'
+'function showSize() {\n'
+'size = tester.bx1.value.length;window.status = '
+'\'File size is: \'+size+\' bytes\';\n'
+'timer1 = setTimeout(\'showSize()\', 100);\n'
+'}\nfunction clearSize() {\n'
+'clearTimeout(timer1);\n}\n';
if(document.ttb.f1.value != "")          
txt+='function '+document.ttb.f1.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f1c.value+''+'\\n\';\n}\n';
if(document.ttb.f2.value != "")          
txt+='function '+document.ttb.f2.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f2c.value+''+'\\n\';\n}\n';
if(document.ttb.f3.value != "")          
txt+='function '+document.ttb.f3.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f3c.value+''+'\\n\';\n}\n';
if(document.ttb.f4.value != "")          
txt+='function '+document.ttb.f4.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f4c.value+''+'\\n\';\n}\n';
if(document.ttb.f5.value != "")          
txt+='function '+document.ttb.f5.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f5c.value+''+'\\n\';\n}\n';
if(document.ttb.f6.value != "")          
txt+='function '+document.ttb.f6.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f6c.value+''+'\\n\';\n}\n';
if(document.ttb.f7.value != "")          
txt+='function '+document.ttb.f7.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f7c.value+''+'\\n\';\n}\n';
if(document.ttb.f8.value != "")          
txt+='function '+document.ttb.f8.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f8c.value+''+'\\n\';\n}\n';
if(document.ttb.f9.value != "")          
txt+='function '+document.ttb.f9.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f9c.value+''+'\\n\';\n}\n';
if(document.ttb.f10.value != "")          
txt+='function '+document.ttb.f10.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f10c.value+''+'\\n\';\n}\n';
if(document.ttb.f11.value != "")          
txt+='function '+document.ttb.f11.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f11c.value+''+'\\n\';\n}\n';
if(document.ttb.f12.value != "")          
txt+='function '+document.ttb.f12.value+'() { \n'
+'document.tester.bx1.value+=\''+document.ttb.f12c.value+''+'\\n\';\n}'
txt+='// 3-Mar-1996 Copyright (C) 1996 by Geoff Inglis.\n'
+'// You may use these\n'
+'// routines in your pages (commercial or\n'
+'// noncommercial) as long as\n'
+'// you include these four lines. You may not\n'
+'// Re-sell this code.\n'
+'//  ** Here is the CookieName *\n'
+'TheCookieName=\'crumble\';\n'
+'function WriteOneBigCookie(){\n'
+'numD=prompt(\'Enter number of days till Cookie\'\n'
+'+\' Expires. Else expiration date will be set\'\n'
+'+\' for 30 days\',\'30\');\n'
+'var exp=new Date();\n'
+'exp.setTime(exp.getTime()+(numD*24*3600000));\n'
+'document.tester.ExpDate.value=exp.toLocaleString();\n'
+'var WC=exp;\n'
+'WC=WC+\'`\'+document.tester.bx1.value;\n'
+'WC=WC+\'`\'+document.tester.ExpDate.value;\n'
+'document.cookie=TheCookieName+"="+\n'
+'escape(WC)+";expires="+exp.toGMTString();\n'
+'alert(\'Your information has been stored for\''
+'+\' \'+numD+\' days.\');\n}\n'
+'function UpdateForm(){\n'
+'MCA(GetCookie(TheCookieName));\n'
+'alert(\'FYI:\'+FYI[0]);if(FYI[0] !="*"){\n'
+'document.tester.ExpDate.value=FYI[2];\n'
+'document.tester.bx1.value=FYI[1];\n'
+'}\n}\nfunction fCMS(theName){\n'
+'var idxl="";\n'
+'for(var i=0; i<theName.options.length; i++){\n'
+'if(theName.options[i].selected==true)\n'
+'idxl=idxl+","+i;\n}\n'
+'return (idxl=="")?idxl="*":idxl;\n}\n'
+'function sCMS(formObj,tL){\n'
+'for(var i=0; i<formObj.options.length; i++){\n'
+'formObj.options[i].selected=false;\n}\n'
+'var ilen=0;\nwhile(ilen<tL.length-1){\n'
+'var ixs=tL.indexOf(\',\',ilen);\n'
+'if(ixs==-1) return;\n'
+'ilen=tL.indexOf(\',\',ixs+1);\n'
+'if(ilen==-1)ilen=tL.length;\n'
+'var indx=parseInt(tL.substring(ixs+1,ilen),10);\n'
+'formObj.options[indx].selected=true;\n}\n}\n'
+'function GetCookie(CookieName){\n'
+'var cna=CookieName+"=";\nvar i=0;\n'
+'while(i<document.cookie.length){\n'
+'var j=i+cna.length;\n'
+'if(document.cookie.substring(i,j)==cna){\n'
+'var leng=document.cookie.indexOf(";",j);\n'
+'if(leng==-1)leng=document.cookie.length;\n'
+'return unescape(document.cookie.substring(j,leng));\n'
+'}\ni=document.cookie.indexOf(" ",i)+1;\n'
+'if (i==0) break;\n}return "*";\n}\n'
+'function DEC(name){\n'
+'var exp=new Date();\n'
+'exp.setTime(exp.getTime()-2*86400001);\n'
+'document.cookie=name+"=*; expires="+exp.toGMTString();\n}\n'
+'function MCA(cV){\n'
+'var i=0, indx=0, cim=0;\n'
+'FYI=new Array();\n'
+'if(cV==null){FYI[0]="*"; return\n}\n'
+'if(cV=="*"){FYI[0]="*"; return\n}\n'
+'while (cim <cV.length){\n'
+'cim=(cV.indexOf("`", indx)>0)\n'
+'?cV.indexOf("`", indx):cV.length;\n'
+'FYI[i]=cV.substring(indx, cim); i++;\n'
+'indx=cim+1;\n}\n}\n'
+'function cb(){\ndocument.tester.bx1.value=\'\';\n'
+'if(document.tester.bx1.value.length!=0){\n'
+'document.tester.bx1.value=\'\';\n'
+'document.tester.ExpDate.value="";\n}\n}\n'
txt+='// End Hiding -->\n<\/script>\n';
txt+='</head>\n'
+'<body bgcolor="'+document.ttb.bkc.value+'">\n';
if (document.ttb.tab.value != "") {
txt = txt + '<form name="tester" action="">\n'
+'<table bgcolor="'+document.ttb.tab.value+'" align="center"'
+' border="2"><tr><td width="560" align="center">\n'
if (document.ttb.dois[0].checked) {
txt += '<textarea cols="90" name="bx1" rows="35"'
+' onfocus="showSize()" onblur="clearSize()">'
+'<\/textarea>\n';
}
if (document.ttb.dois[1].checked) {
txt += '<textarea cols="55" name="bx1" rows="6"'
+' onfocus="showSize()" onblur="clearSize()"'
+' bgcolor="'+document.ttb.bkc.value+'"'
+' cursor="'+document.ttb.txtc.value+'"'
+' text="'+document.ttb.txtc.value+'"'
+' growable autoactivate nohighlight'
+' border="0"><\/textarea>\n';
}
txt+='</td></tr><tr><td align="center"'
+'bgcolor="'+document.ttb.tab2.value+'">\n';
}
txt+='<a href="javascript:WriteOneBigCookie();"><font'
+' color="'+document.ttb.tab.value+'">Save'
+'</font></a>\n<a href="javascript:UpdateForm();"><font'
+' color="'+document.ttb.tab.value+'">Recall'
+'</font></a>\n<a href="javascript:if (confirm(\'Do'
+' you REALLY want to Delete your saved Fields?\')){'
+'DEC(TheCookieName); document.tester.ER.click();}">'
+'<font color="'+document.ttb.tab.value+'">Delete'
+'</font></a>\n'
+'<a href="javascript:tdown()"><font'
+' color="'+document.ttb.tab.value+'">Switch'
+'</font></a>\n'
+'<a href="javascript:viewit()"><font'
+' color="'+document.ttb.tab.value+'">Preview'
+'</font></a>\n'
+'<a href="javascript:copy()"><font'
+' color="'+document.ttb.tab.value+'">Select'
+'</font></a>\n'
+'<a href="javascript:undo()"><font'
+' color="'+document.ttb.tab.value+'">Reset'
+'</font></a>\n';
if(document.ttb.f1.value != "")          
txt+='</td></tr><tr><td bgcolor="'
+document.ttb.tab2.value+'" align="'
+'center">\n';
if(document.ttb.f1.value != "")          
txt+='<a href="javascript:'+document.ttb.f1.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f1.value+'</font></a>\n';
if(document.ttb.f2.value != "")          
txt+='<a href="javascript:'+document.ttb.f2.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f2.value+'</font></a>\n';
if(document.ttb.f3.value != "")          
txt+='<a href="javascript:'+document.ttb.f3.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f3.value+'</font></a>\n';
if(document.ttb.f4.value != "")          
txt+='<a href="javascript:'+document.ttb.f4.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f4.value+'</font></a>\n';
if(document.ttb.f5.value != "")          
txt+='<a href="javascript:'+document.ttb.f5.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f5.value+'</font></a>\n';
if(document.ttb.f6.value != "")          
txt+='<a href="javascript:'+document.ttb.f6.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f6.value+'</font></a>\n';
if(document.ttb.f7.value != "")          
txt+='<a href="javascript:'+document.ttb.f7.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f7.value+'</font></a>\n';
if(document.ttb.f8.value != "")          
txt+='<a href="javascript:'+document.ttb.f8.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f8.value+'</font></a>\n';
if(document.ttb.f9.value != "")          
txt+='<a href="javascript:'+document.ttb.f9.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f9.value+'</font></a>\n';
if(document.ttb.f10.value != "")          
txt+='<a href="javascript:'+document.ttb.f10.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f10.value+'</font></a>\n';
if(document.ttb.f11.value != "")          
txt+='<a href="javascript:'+document.ttb.f11.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f11.value+'</font></a>\n';
if(document.ttb.f12.value != "")          
txt+='<a href="javascript:'+document.ttb.f12.value+''
+'()"><font color="'+document.ttb.tab.value+'">'
+document.ttb.f12.value+'</font></a>\n';
if (document.ttb.dois[0].checked) {
txt += '</td></tr><tr><td bgcolor="'
+document.ttb.tab2.value+'" align="'
+'center">\n<font color="'+document.ttb.tab.value+''
+'" size="1">Cookie Expires</font>\n'
+'<input type="text" name="ExpDate"  size="40"'
+' readonly="readonly" />\n';
}
if (document.ttb.dois[1].checked) {
txt += '</td></tr><tr><td bgcolor="'
+document.ttb.tab2.value+'" align="'
+'center">\n<font color="'+document.ttb.tab.value+''
+'" size="1">Cookie Expires</font>\n'
+'<input type="text" name="ExpDate"'
+' size="40" readonly="readonly"'
+' bgcolor="'+document.ttb.bkc.value+'"'
+' text="'+document.ttb.txtc.value+'"'
+' border="0" />\n';
}
txt+='</td></tr><tr><td bgcolor="'
+document.ttb.tab2.value+'" align="'
+'center">\n<font color="'+document.ttb.tab.value+''
+'">Replace</font>\n';
if (document.ttb.dois[0].checked) {
txt += '<textarea name="E2" cols="14" rows="2">'
+'<\/textarea>\n';
}
if (document.ttb.dois[1].checked) {
txt += '<textarea name="E2" cols="14" rows="2"'
+' bgcolor="'+document.ttb.bkc.value+'"'
+' text="'+document.ttb.txtc.value+'"'
+' cursor="'+document.ttb.txtc.value+'"'
+' autoactivate nohighlight><\/textarea>\n';
}
txt += '<font color="'+document.ttb.tab.value+'">'
+'With</font>\n';
if (document.ttb.dois[0].checked) {
txt += '<textarea name="E3" cols="14" rows="2">'
+'<\/textarea>\n';
}
if (document.ttb.dois[1].checked) {
txt += '<textarea name="E3" cols="14" rows="2"'
+' bgcolor="'+document.ttb.bkc.value+'"'
+' text="'+document.ttb.txtc.value+'"'
+' cursor="'+document.ttb.txtc.value+'"'
+' autoactivate nohighlight><\/textarea>\n';
}
txt +='<a href="javascript:replaceText()"><font'
+' color="'+document.ttb.tab.value+'">Submit'
+'</font></a>\n';
if (document.ttb.tab.value != "") {
txt = txt + '</td></tr></table>\n</form>\n';
}
if (document.ttb.tab.value != "") {
txt += '<form name="botb" action="">\n'
+'<table bgcolor="'+document.ttb.tab.value+'" align="center"'
+' border="2"><tr><td width="560" align="center">\n'
if (document.ttb.dois[0].checked) {
txt += '<textarea cols="90" name="bx2" rows="6"'
+' onfocus="showSize()" onblur="clearSize()">'
+'<\/textarea>\n';
}
if (document.ttb.dois[1].checked) {
txt += '<textarea cols="55" name="bx2" rows="3"'
+' onfocus="showSize()" onblur="clearSize()"'
+' bgcolor="'+document.ttb.bkc.value+'"'
+' cursor="'+document.ttb.txtc.value+'"'
+' text="'+document.ttb.txtc.value+'"'
+' autoactivate nohighlight'
+' border="0"><\/textarea>\n';
}
txt +='</td></tr></table>\n</form>\n';
}
txt = txt + '</body>\n</html>\r\n'
document.ttb.box.value=txt;
}
function viewme() 
{ 
document.write (document.ttb.box.value) 
} 
function copy()  {
document.ttb.box.focus();
document.ttb.box.select();
}
// End Hiding -->
