// Riverdrift 2002
function chk2() {
if(document.Side.Sb1.value == "" & document.Side.Sb2.value == "") {
alert ("You must enter at least a bgcolor or graphic url.")
return false;
}
}
function chk() {
if (document.Side.bkc.value == "") {
alert ("You must enter a bgcolor.")
return false;
}
if (document.Side.txtc.value == "") {
alert ("You must enter text a color.")
return false;
}
}
function Clr() {
if(confirm('This will clear all of the forms on the page.\nDo you wish to continue?')){
{ 
document.Side.Bar.value="";    
document.Side.txtc.value="";    
document.Side.bkc.value="";    
document.Side.Sb1.value="";    
document.Side.Sb2.value="";    
document.Side.Sb3.value="";    
document.Side.Sb4.value="";    
document.Side.Sb5.value="";    
document.Side.Sb6.value="";    
}
}
}
function Doit() {
var txt='<html>
<style type="text/css">
#element1 \{position: absolute; top:-1000; left: -132;}
</style>\n';
{
if(document.Side.bkc.value)          
txt+='<body bgcolor="'+document.Side.bkc.value+'"';
if(document.Side.txtc.value)          
txt+=' text="'+document.Side.txtc.value+'"';
if(document.Side.bkc.value)          
txt+='>\n';
txt+='<div id="element1">\n';
if(document.Side.Sb1.value)          
txt+='<table cellpadding="0" cellspacing="0"'
+' border="0" width="120" height="1500"'
+' bgcolor="'+document.Side.Sb1.value+'"';

if(document.Side.Sb3.value)          
txt+=' gradcolor="'+document.Side.Sb3.value+'"';  
if(document.Side.Sb4.value)          
txt+=' gradangle="'+document.Side.Sb4.value+'"';  
if(document.Side.Sb5.value)          
txt+=' transparency="'+document.Side.Sb5.value+'"';
if(document.Side.Sb1.value)          
txt+='>
<tr><td align="center">\n';
if(document.Side.Sb2.value && !document.Side.Sb1.value) 
txt+='';
if(document.Side.Sb1.value && !document.Side.Sb2.value) 
txt+='<img src="http://nquale.com/riverdrift/ani.gif" width="120" height="1500">\n';
if(document.Side.Sb2.value)          
txt+='<table cellpadding="0" cellspacing="0"'
+' border="0" width="120" height="1500"'
+' background="'+document.Side.Sb2.value+'"';
if(document.Side.Sb6.value)          
txt+=' transparency="'+document.Side.Sb6.value+'"';
if(document.Side.Sb2.value)          
txt+='>
<tr><td align="center">\n';
if(document.Side.Sb2.value)          
txt+='<img src="http://nquale.com/riverdrift/ani.gif" width="120" height="1500" />\n';
if(document.Side.Sb1.value)          
txt+='</td></tr></table>\n';  
if(document.Side.Sb2.value)          
txt+='</td></tr></table>\n';  
}
txt+='</div>
<div align="center">
<!---ADD YOUR SIG CODES HERE---> 
</div>
</body></html>\n';
document.Side.Bar.value=txt;
}
function copy()  {
document.Side.Bar.focus();
document.Side.Bar.select();
}
function Inst(){
if(confirm('This will delete any codes in the textarea and replace them with the instructions.\nDo you wish to continue?')){
var txt ='\nYou can make a background,solid colored'
+' or a gradcolor sidebar with this tool.\n\n'
+' You can also use a combination of both.\n\n'
+'If you use both, be sure to use transparency of'
+' 75-95% for the background and 0-40% on the'
+'gradcolor/bgcolor so that your gradcolor will'
+' show through.\n\n 0% means no transparency and'
+' 100% is totally transparent.\n\n If you want just'
+' a solid color sidebar you can leave out the'
+' background,gradcolor,angle and transparency.\n\n'
+' After making your sidebar choices click Settings'
+' to set the mode options.\n\n Then click Preview,'
+' it may take a few seconds for the preview page to'
+' load. After previewing click your Back key and you'
+' will see your generated code at the bottom of the'
+' tool.\n\n Since the 2.7 upgrade the only way'
+' sidebars will work in email is to make a page from'
+' your sig code and embed it in your email.this may'
+' not work with some free hosts or pagebuilder.\n\n'
+' To make a webpage create a page naming it what you'
+' like,then paste the code generated by this tool in'
+' it.\n\n Then embed it in your sig box like this.'
+'\n\n<html>\n<body background="" bgcolor="" text=""'
+'>\n<embed src="URL OF YOUR PAGE" />\n</body>\n'
+'</html>\n\nIf you are using your sidebar sig for'
+' only posting in newsgroups then you can paste the'
+' sig code directly into your sigbox.\n\n You may'
+' link to both the clear anigif and background urls'
+' in this sig maker if you need to but please'
+' transload if you know how to.\n';
document.Side.Bar.value=txt;
}
}
function P1() {
     var list = document.forms[0].bl1
          document.B1.src = list.options[list.selectedIndex].value
}
function viewit() { 
x=0; 
topp=0; 
y=document.Side.Bar.value; 
yy=y.split("'"); 
fixt=yy.join(escape("'")); 
var fsiz = document.Side.fsz.value; 
var hgt = document.Side.a.value; 
if(document.Side.make[0].checked){x=0}; 
if(document.Side.make[1].checked){ 
lt = 13; 
x=1; 
if(document.Side.fontsz[0].checked){topp=166} 
if(document.Side.fontsz[1].checked){topp=174} 
if(document.Side.fontsz[2].checked){topp=182} 
} 
if(document.Side.make[2].checked){ 
lt = 5; 
x=1; 
if(document.Side.fontsz[0].checked){topp=153} 
if(document.Side.fontsz[1].checked){topp=159} 
if(document.Side.fontsz[2].checked){topp=166} 
} 
if(document.Side.make[3].checked){ 
lt = 5; 
x=1; 
if(document.Side.fontsz[0].checked){topp=153} 
if(document.Side.fontsz[1].checked){topp=159} 
if(document.Side.fontsz[2].checked){topp=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:'+topp+'; 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="http://riverdrift.com/">');
write('<font size="2" color="cornsilk">Powered Imagination</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(); 
} 
} 
} 


