
// begin help tips

// self-contained help tips
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function goPop(TXT, WIDTH, HEIGHT, TITLE) {
// locate center of screen to diplay popup
wleft = (screen.width-WIDTH)/2;
wtop = (screen.height-(HEIGHT+110))/2;
windowprops = "left="+wleft+",top="+wtop+",scrollbars=yes,resizable=yes,width="+WIDTH+",height="+HEIGHT;
text = "<html><head><title>" + TITLE ;
if (timeout != 0) text +="  - closes after " + timeout + " sec.";
text +="</title><style TYPE='text/css'>BODY, TD {font-family: Arial, Helvetica} .hlptitle {font-size: 18px ; color: #FFFFFF}</style></head>";
text +="<body onload='self.focus();' bgcolor='FFFFCC'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");top.window.focus();\"";
text += " leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>";
text += "<table border='0' width='100%' cellspacing='0' cellpadding='8' align='center'><tr>";
text += "<td bgcolor='660099'><b class='hlptitle'>" + TITLE + "</b></td></tr>";
text += "<tr><td>" + TXT + "</td></tr><tr><td><hr>";
text += "<TABLE bgColor='#CCCCCC' border='0' cellPadding='2' cellSpacing='0' align='center'>";
text += "<TR><TD><TABLE bgColor='#660099' border='0' cellPadding='2' cellSpacing='0'><TR><TD>";
text += "<A href='javascript:void(0);' onclick='window.close();' style='text-decoration: none;display:block'><span style='color:FFFFFF;font: bold 14px Arial,Helvetica,sans-serif;'>";
text += "<b>Close Window</b></span></A></TD></TR></TABLE></TD></TR></TABLE>";
text += "</td></tr></table></body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.window.focus();
preview.document.close();
}


// hard page help tips with confirm dialog - cookies
// link syntax - <a href="popup.php" target="newPop" onclick="helptipCookies(this.href, this.target,560,440); return false">

function helptipCookies(url,name,w,h) {
 wprops ="menubar=no,scrollbars=yes,location=no,favorites=no,resizable=yes,status=yes,toolbar=no,directories=no";
 width=w; height=h;
 wleft = (screen.width-width)/2;
 wtop = (screen.height-(height+110))/2;
	  if(confirm("You must enable cookies in your browser settings to take advantage of this feature. Please enable your cookies, or this feature will not be available.\nWould you like to learn more about cookies, and how to enable them in your web browser?"))
      window.open(url, name, "width="+width+",height="+height+",left="+wleft+",top="+wtop+","+wprops);
	  else {
	  return false;
	  }
}


//  new improved hard page help tips
// link syntax - <a href="popup.php" target="newPop" onclick="return!popIt(this.href, this.target,560,440)">Link text</a> 

function popIt(url,name,w,h) {
 wprops ="menubar=no,scrollbars=yes,location=no,favorites=no,resizable=yes,status=yes,toolbar=no,directories=no";
 width=w; height=h;
 wleft = (screen.width-width)/2;
 wtop = (screen.height-(height+110))/2;
 window.open(url, name, "width="+width+",height="+height+",left="+wleft+",top="+wtop+","+wprops);
}


// begin definition help tips

  function defhelpWorm() {
	  alert ('Definition: Worm\n\nAn Internet Worm is a program that makes copies of itself; for example, from one disk drive to another, or by copying itself using email or another transport mechanism. The worm may do damage and compromise the security of the computer. It usually arrives in the form of an email attachment, and will try to take advantage of known flaws in Microsoft operating systems.');
}


