closetime = 5000; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=0,top=0,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function warn() {
url = "alert.htm"
width = 290;  // width of window in pixels
height = 110; // height of window in pixels
delay = 20;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
function shownow(toopen)
{ 
window.open(toopen,"mywin","toolbar=NO,menubar=NO,scrollbars=yes,resizable=yes")
}
var debug = true;
function right(e) {
  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
    alert("Welcome");
    return false;
  }
  return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;


function brow()
{
var p;
p=navigator.appName;
op = navigator.appVersion
k6 = op.indexOf("MSIE 6.0");
k5 = op.indexOf("MSIE 5.0");
k55 = op.indexOf("MSIE 5.5");
if (k6 == -1 && k5 == -1 &&  k55 == -1)
{
alert ("This site can be best viewed with IE 5 or higher version");
}
w = screen.width
h = screen.height
if (p == "Netscape")
{
alert ("This site can be best viewed with IE 5 or higher version");
}

if (w != 800 && h != 600)
{
alert ("This site can be viewed best viewed at resolution of 800 x 600. If suitable please change the display settings from control panel.")
}
}
