function view() {
bgc = document.myform.bgcolor.value;
bgi = document.myform.bgimg.value;
pic = document.myform.url.value;
hgt = document.myform.height.value;wdh = document.myform.width.value;
trans = document.myform.trans.value;
HTML = ''; 
HTML += '<html>\n<head><title>Your Results</title>\n</head>\n';
HTML += '<body bgColor="'+bgc+'" text="#cdcdcd" ';
HTML += 'background="'+bgi+'">\n'; 
HTML += '<br><br><br><br><br><br>\n<center>';
// begin new 
if (navigator.appCodeName == "bowser") {
HTML += '<img name="im" src="'+pic+'" height="'+hgt+'" ';
HTML += 'width="'+wdh+'" transparency="'+trans+'">';
EndDoc();
  } 
else {
CompCk();
  }
}
function CompCk() {
if ((wdh == "") || (hgt == "")) {
HTML += '<img name="im" src="'+pic+'">';
  }
else {
HTML += '<img name="im" src="'+pic+'" width="'+wdh+'" height="'+hgt+'">';
  }
EndDoc();
} 
// end new 
function EndDoc() {
HTML += '<br><br><br><br>\n'; 
HTML += '<table border bgcolor="#000000" cellpadding="4">\n'; 
HTML += '<tr>\n<td align="center"><font color="#00FFff" effect="emboss">';
HTML += '<form name="rlt"><b><input type="button" value="Height" onClick="alert(document.im.height)" usestyle borderimage="file://rom/borders/buttonborder2.bif">';
HTML += '</b></font></td><td align="center">';
HTML += '<font color="#00FFff" effect="emboss"><b>';
HTML += '<input type="button" value="Width" onClick="alert(document.im.width)" usestyle borderimage="file://rom/borders/buttonborder2.bif">';
HTML += '</b></font></td><td align="center">';
HTML += '<font color="#00FFff" effect="emboss"><b>';
HTML += '<input type="button" value="Code" onClick="Tag()" usestyle borderimage="file://rom/borders/buttonborder2.bif">';
HTML += '</b></font></td>\n</tr><tr>\n<td align="center" colspan="3">';
HTML += 'Press your Back button<br>To enter another graphic<br>Or to resize your graphic</td></tr></table></form></center><br><br>\n';
HTML += '<\script>\nfunction Tag() {';
HTML += 'w = document.im.width\n';
HTML += 'h = document.im.height\n';
HTML += 'prompt(\'Current Image Tags to Copy\',\'<img src="'+pic+'" width="\'+w+\'" height="\'+h+\'" transparency="'+trans+'" border="0" alt="Image">\')\n}\n';
HTML += '<\/script>\n';
HTML += '</body>\n</html>';
if ( navigator.appCodeName == "bowser" ) { WebTV(); }
else { Comp(); }
function WebTV() {
{location.href='#tb';}
document.open();
document.write(HTML);
document.close();
}
function Comp() {
preWindow=open("","preWindow","status=no,toolbar=no,menubar=yes");
preWindow.document.open();
preWindow.document.write(HTML);
preWindow.document.close();
   }
}