function Do1(form) {
if(document.make.Ac3.value)
txt+="<table cellspacing=\"0\"";
if(document.make.Ac4.value)
txt+=" border=\""+document.make.Ac4.value+"\"><tr>\n";
if(document.make.Ac3.value)
txt+="<td bgcolor=\""+document.make.Ac3.value+"\"";
if(document.make.Ac1.value)
txt+=" gradcolor=\""+document.make.Ac1.value+"\"";
if(document.make.Ac5.value)
txt+=" gradangle=\""+document.make.Ac5.value+"\"";
if(document.make.Ac8.value)
txt+=" abswidth=\""+document.make.Ac8.value+"\"";
if(document.make.Ac9.value)          
txt+=" absheight=\""+document.make.Ac9.value+"\"></td>\n"; 
if(document.make.Ac2.value)
txt+="<td bgcolor=\""+document.make.Ac2.value+"\"";
if(document.make.Ac3.value)
txt+=" gradcolor=\""+document.make.Ac3.value+"\"";
if(document.make.Ac5.value)
txt+=" gradangle=\""+document.make.Ac5.value+"\"";
if(document.make.Ac8.value)
txt+=" abswidth=\""+document.make.Ac8.value+"\"";
if(document.make.Ac9.value)          
txt+=" absheight=\""+document.make.Ac9.value+"\"></td>\n"; 
if(document.make.Ac3.value)
txt+="</tr></table>\n";
document.make.scp.value=txt;
}
function Do2(form) {
if(document.make.Ac2.value)
txt+="<audioscope rightcolor=\""+document.make.Ac2.value+"\"";
if(document.make.Ac1.value)
txt+=" leftcolor=\""+document.make.Ac1.value+"\"";
if(document.make.Ac3.value)
txt+=" bgcolor=\""+document.make.Ac3.value+"\"";
if(document.make.Ac4.value)
txt+=" border=\""+document.make.Ac4.value+"\"";
if(document.make.Ac5.value)
txt+=" gain=\""+document.make.Ac5.value+"\"";
if(document.make.Ac6.value)          
txt+=" rightoffset=\""+document.make.Ac6.value+"\""; 
if(document.make.Ac7.value)          
txt+=" leftoffset=\""+document.make.Ac7.value+"\""; 
if(document.make.Ac8.value)
txt+=" width=\""+document.make.Ac8.value+"\"";
if(document.make.Ac9.value)          
txt+=" height=\""+document.make.Ac9.value+"\""; 
if(document.make.Ac1.value)          
txt+=">\n"; 
document.make.scp.value=txt;
}
function Do3(form) {
if(document.make.Ac1.value)
txt+="<audioscope rightcolor=\""+document.make.Ac1.value+"\"";
if(document.make.Ac2.value)
txt+=" leftcolor=\""+document.make.Ac2.value+"\"";
if(document.make.Ac3.value)
txt+=" bgcolor=\""+document.make.Ac3.value+"\"";
if(document.make.Ac4.value)
txt+=" border=\""+document.make.Ac4.value+"\"";
if(document.make.Ac5.value)
txt+=" gain=\""+document.make.Ac5.value+"\"";
if(document.make.Ac6.value)          
txt+=" rightoffset=\""+document.make.Ac6.value+"\""; 
if(document.make.Ac7.value)          
txt+=" leftoffset=\""+document.make.Ac7.value+"\""; 
if(document.make.Ac8.value)
txt+=" width=\""+document.make.Ac8.value+"\"";
if(document.make.Ac9.value)          
txt+=" height=\""+document.make.Ac9.value+"\""; 
if(document.make.Ac1.value)          
txt+=">\n"; 
document.make.scp.value=txt;
}
function rest(){
if(confirm('Are you sure you want to clear the bottom textarea?')){
document.make.scp2.value='';
}
}
function addit(form) {
if(document.make.brk.value)
txt+="<br>\n";
document.make.scp.value=txt;
}
function addit2(form) {
if(document.make.cent.value)
txt+="<center>\n";
document.make.scp.value=txt;
}
function addit3(form) {
if(document.make.ecent.value)
txt+="</center>\n";
document.make.scp.value=txt;
}
function Dobot(bgsnd2, scp2, bkc2){ 
if (navigator.appName.substring(0,5) == "WebTV"){ location.href="#"}
document.open();
document.write("<html><head><title>Your Results</title></head>"); 
document.writeln("<body bgcolor="+bkc2+"><bgsound src="+bgsnd2+">"+scp2+"");
document.writeln("</body></html>");
document.close();
} 
function DoTop(scp, bkc){ 
if (navigator.appName.substring(0,5) == "WebTV"){ location.href="#"}
document.open();
document.write("<html><head><title>Your Results</title></head>"); 
document.writeln("<body bgcolor="+bkc+">"+scp+"");
document.writeln("</body></html>");
document.close();
} 
function swap(){ 
document.make2.scp2.value += document.make.scp.value; 
setTimeout('no()',1000);
} 
function dcol(form){
var txt ='';
if(document.make.newc.value != "")          
txt+=''+document.make.newc.value+'';
document.make.Ac1.value=txt;
}
function dcol2(form){
var txt ='';
if(document.make.newc2.value != "")          
txt+=''+document.make.newc2.value+'';
document.make.Ac2.value=txt;
}
function dcol3(form){
var txt ='';
if(document.make.newc3.value != "")          
txt+=''+document.make.newc3.value+'';
document.make.Ac3.value=txt;
}
// Search and replace by R_E
function replaceText() {
K1 = document.make2
all_text = K1.scp2.value;
old_word = K1.E2.value;
new_word = K1.E3.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.make2.scp2.value = all_text
}
function showSize() {
size = make.scp.value.length;window.status = 'File size is: '+size+' bytes';
timer1 = setTimeout('showSize()', 100);
}
function clearSize() {
clearTimeout(timer1);
}
function showSize2() {
size = make2.scp2.value.length;window.status = 'File size is: '+size+' bytes';
timer2 = setTimeout('showSize2()', 100);
}
function clearSize2() {
clearTimeout(timer2);
}
