// - chris's new window function
function newWindow(WinName, ImgName, Title, Height, Width) {
   winStats='toolbar=no,location=no,directories=no,menubar=no,'
   winStats+='scrollbars=yes'
   if (navigator.appName.indexOf("Microsoft")>=0) {
      winStats+=',left=60,top=60,width=600,height=500'
    }else{
      winStats+=',screenX=60,screenY=60,width=600,height=500'
    }
   newWindow=window.open(WinName,"notation",winStats)

   newWindow.document.write ("<body bgcolor=#224316><center><span style='font-face:arial; color:white; font-size:1.5em;'>" + Title.split('#')[0] + "</span><p>&nbsp;")
   newWindow.document.write ("<img src=" + ImgName + "></p><p style='font-face:arial; color:white; font-size:1em;'>" + stripslashes(Title).split('#')[1] + "</p>")
   newWindow.document.writeln ("<p><form>")
   newWindow.document.write ("<input type='button' value='Close Window' ")
   newWindow.document.writeln ("onclick='top.close()'>")
   newWindow.document.writeln ("</form></center>")
   newWindow.document.writeln ("</body>")
      newWindow.document.close()
location.reload()
   winStats='toolbar=yes,location=yes,directories=yes,menubar=yes,width='+Width+',height='+Height
// -   self.focus()
   onUnload=(winStats='toolbar=yes,location=yes,directories=yes,menubar=yes,width='+Width+',height='+Height)
}

function stripslashes(str) {
str=str.replace(/\\'/g,'\'');
str=str.replace(/\\"/g,'"');
str=str.replace(/\\0/g,'\0');
str=str.replace(/\\\\/g,'\\');
return str;
}