<!--
/*
======= POP-UP WINDOW ===================================
Author: Fred Scales

An example of the code used to fire this function:
<A HREF="newsbrief_popup.asp" onclick="openPopupWindow(this.href,'NewsBriefs','640','480','scrollbars=no,menubar=no,resizable=no,status=no,toolbar=no');return false;">Click Here open Popup Window</A>
-- OR --
openPopupWindow('http://www.yahoo.com/','theWindow','640','480','scrollbars=no,menubar=no,resizable=no,status=no,toolbar=no');
=========================================================
*/
	var win = null
	
	function openPopupWindow(mypage, myname, w, h, strother) {
	var winl = (screen.width - w) / 2;
	//var wint = (screen.height - h) / 2;
	var wint = 20;
	winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+','+strother+''
	win = window.open(mypage, myname, winprops)
	
	
	//Check if window already exists
		if (!win || win.closed)	{
		//store new window object in global variable
		win = window.open(mypage, myname, winprops);
	}
		else	{
		//Window already exists, so bring it forward
		win.focus()
		}
	
	}

	
/*
  ========================================================
	Set Form Defaults
 	Author: Fred Scales
	How to use:  <body onLoad="initForm('Main','strProductName')">
  ========================================================
*/
	function initForm(frmName,frmField)

	{
		document.forms[frmName].reset();
		document.forms[frmName].elements[frmField].focus();
	}
	
//-->