<!-------------- Launch A Html Window ------------->
function launchHtmlWin(Name,Url,Left,Top,Width,Height) {
   if (navigator.appName == 'Netscape') {
       adjWidth = Width + 21;
       adjHeight = Height +56;
   }
   else {
       adjWidth = Width + 41;
       adjHeight = Height + 58;
   }
   if((adjWidth + 30) > window.screen.availWidth) {
     adjWidth = window.screen.availWidth - 30;
   }
   if((adjHeight + 40) > window.screen.availHeight) {
     adjHeight = window.screen.availHeight - 40;
   }
   popupWin=window.open(Url,Name,'width=' + adjWidth + ',height=' + adjHeight +',left='+Left+',top='+Top+',status=no,location=no,directories=no,menubar=no,toolbar=no,scrollbars=yes,resizable=no');
   popupWin.resizeTo(adjWidth,adjHeight);
   popupWin.focus();
}


<!-------------- Launch An Image Window ------------->
function launchPicWin(Name,Img,Left,Top,Protect){
   Pic= new Image();
   Pic.src=(Img);
   setPicInfo(Name,Img,Left,Top,Protect);
   }
function setPicInfo(Name,Img,Left,Top,Protect){
   if((Pic.width!=0)&&(Pic.height!=0)){
      showPic(Name,Img,Left,Top);
   }
  else{
     errDefault="setPicInfo('"+Name+"','"+Img+"','"+Left+"','"+Top+"','"+Protect+"')";
     errShowPic=setTimeout(errDefault,20);
   }
}
function showPic(Name,Img,Left,Top,Protect){
    if (Protect == '1') {
       bodyStr = '</head><body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" style="margin: 0">';
   }
   else {
       bodyStr = '</head><body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" style="margin: 0" onLoad="trap()">';
   }
    if (navigator.appName == 'Netscape') {
       adjWidth = Pic.width + 7;
       adjHeight = Pic.height + 27;
   }
   else {
       adjWidth = Pic.width + 27;
       adjHeight = Pic.height + 29;
   }
   if((adjWidth + 30) > window.screen.availWidth) {
     adjWidth = window.screen.availWidth - 30;
   }
   if((adjHeight + 40) > window.screen.availHeight) {
     adjHeight = window.screen.availHeight - 40;
   }
   winSettings="width="+adjWidth+",height="+adjHeight+",left="+Left+",top="+Top+',status=no,location=no,directories=no,menubar=no,toolbar=no,scrollbars=yes,resizable=no';
   popupWin=window.open('',Name,winSettings);
   popupWin.resizeTo(adjWidth,adjHeight);
   popupWin.document.write('<html><head><title>Image Window</title>');
   popupWin.document.write('<meta http-equiv="page-enter" content="blendtrans(duration=0.35)">');
   popupWin.document.write('<script language="javascript">');
   popupWin.document.write('function right(e) {');
   popupWin.document.write('  var msg = "This image is copyrighted by Novac Software Inc";');
   popupWin.document.write('  if (navigator.appName == "Netscape" && e.which == 3) {');
   popupWin.document.write('  alert(msg);');
   popupWin.document.write('  return false;');
   popupWin.document.write('  }');
   popupWin.document.write('  if (navigator.appName =="Microsoft Internet Explorer" && event.button==2) {');
   popupWin.document.write('  alert(msg);');
   popupWin.document.write('  return false;');
   popupWin.document.write('  }');
   popupWin.document.write('  else return true;');
   popupWin.document.write('  }');
   popupWin.document.write('function trap() {');
   popupWin.document.write('  if(document.images)');
   popupWin.document.write('  for(i=0;i<document.images.length;i++)');
   popupWin.document.write('  document.images[i].onmousedown = right;');
   popupWin.document.write('  }');
   popupWin.document.write('</script>');
   popupWin.document.write(bodyStr);
   popupWin.document.write('<Img border="0" src="'+Img+'">');
   popupWin.document.write('</body></html>');
   popupWin.document.close();
   popupWin.focus();
}
