<!-- Pop-Up Window

function openWindowOne(id) {
  popupWin = window.open('pop-ups/cov_preview.asp?plan=oaap&id=' + id, 'remote', 'width=350,height=200,left=50,top=50,scrollbars=no')
}
// done hiding -->

<!--PullDown Menu, onChange Version
	var url
	function changepage(formObject)
	{
		url = formObject.options[formObject.options.selectedIndex].value;
		if(url != "empty")
			{
			window.location = url;
			url = "";
			}
	}
//-->

<!-- Show/Hide Layers
function HTF_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=HTF_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function HTF_showHideLayers() { //v3.0
  var i,p,v,obj,args=HTF_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=HTF_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

<!-- POP-UP WINDOWS
myPopup = '';

function openPopup(url) {
    myPopup = window.open(url,'popupWindow','width=650,height=360,left=20,top=20,scrollbars=yes');
    if (!myPopup.opener)
         myPopup.opener = self; 
}
// -->

<!-- MEMBERSHIP POP-UP
membPopup = '';

function openMembPopup(url) {
    membPopup = window.open(url,'NewWindow','width=400,height=400,left=10,top=10,scrollbars=no');
    if (!membPopup.opener)
         membPopup.opener = self; 
}
// -->


<!-- VALIDATE LOGIN FORM
function validate(form2)
{
  if (form2.contact_email.value == "")
  {
    alert("You must enter your Email Address first!");
    form2.contact_email.focus();
    return (false);
  }

  if (form2.password.value.length == "")
  {
    alert("Don't forget to enter your password!");
    form2.password.focus();
    return (false);
  }

  return (true);
}
//-->

<!-- VALIDATE PASSWORD REMINDER FORM
function email_validate(form2)
{
  if (form2.email.value == "")
  {
    alert("You must enter your Email Address first!");
    form2.email.focus();
    return (false);
  }

  return (true);
}
//-->


<!-- FORM BUTTON ONOVER
function pviiClassNew(obj, new_style) 
{
    obj.className = new_style;
}
//-->

<!-- OPEN LINKS FROM CSS BUTTONS
function NewWindow( ){
MyExample=window.open("page1.html");
}
// -->

<!-- RELOAD PAGE ON NETSCAPE RESIZE
function HTF_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.HTF_pgW=innerWidth; document.HTF_pgH=innerHeight; onresize=HTF_reloadPage; }}
  else if (innerWidth!=document.HTF_pgW || innerHeight!=document.HTF_pgH) location.reload();
}
HTF_reloadPage(true);
// -->

<!-- MAKE CHANGES POP-UPS
		myPopup = '';

	function open_Demo_Popup(url) {
		Nav_Popup = window.open(url,'popupWindow','width=600,height=300,left=20,top=20,scrollbars=no');
		if (!Nav_Popup.opener)
			Nav_Popup.opener = self; 
	}

	function open_Edit_Popup(url) {
		Nav_Popup = window.open(url,'popupWindow','width=725,height=450,left=10,top=20,scrollbars=yes');
		if (!Nav_Popup.opener)
			Nav_Popup.opener = self; 
			Nav_Popup.focus();
	}

	function open_Nav_Popup(url) {
		Nav_Popup = window.open(url,'popupWindow','width=450,height=400,left=125,top=10,scrollbars=yes');
		if (!Nav_Popup.opener)
			Nav_Popup.opener = self; 
	}
	
	function open_Banner_Popup(url) {
		Banner_Popup = window.open(url,'popupWindow','width=350,height=195,left=450,top=200,scrollbars=yes');
		if (!Banner_Popup.opener)
			Banner_Popup.opener = self; 
	}
	function open_Logo_Popup(url) {
	Logo_Popup = window.open(url,'popupWindow','width=650,height=200,left=150,top=220,scrollbars=yes');
	if (!Logo_Popup.opener)
			Logo_Popup.opener = self; 
	}
	function open_Image_Popup(url) {
	Image_Popup = window.open(url,'popupWindow','width=400,height=350,left=500,top=10,scrollbars=yes');
	if (!Image_Popup.opener)
			Image_Popup.opener = self; 
	}
	// -->

<!--
			function header_details_onchange() {
			//window.location = document.formNav.filename[document.formNav.filename.selectedIndex].value;
			document.header_details.submit();
			return true;
			}
			//-->
 


<!-- Begin
function checkFields() {
missinginfo = "";
if (document.form.issues.value == "") {
missinginfo += "\n     -  Issues Requested";
}
if (document.form.fname.value == "") {
missinginfo += "\n     -  First Name";
}
if (document.form.lname.value == "") {
missinginfo += "\n     -  Last Name";
}
if (document.form.street1.value == "") {
missinginfo += "\n     -  Street 1";
}
if (document.form.city.value == "") {
missinginfo += "\n     -  City";
}
if (document.form.state.value == "") {
missinginfo += "\n     -  State";
}
if (document.form.zip.value == "") {
missinginfo += "\n     -  Zip";
}
if (document.form.phone.value == "") {
missinginfo += "\n     -  Phone";
}

if ((document.form.email.value == "") || 
(document.form.email.value.indexOf('@') == -1) || 
(document.form.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email address";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
//  End -->


