      document.writeln("<form name=goPROVNOM action='' target='provNomination' method=POST>");
      document.writeln("<input type=hidden name=FORM_NAME value=20>");
      document.writeln("<input type=hidden name=INET_ID>");
      document.writeln("<input type=hidden name=SESS_ID value=1>");
      document.writeln("<input type=hidden name=ED15_CODE value=1>");
      document.writeln("<input type=hidden name=CLIENT_NAME>");
      document.writeln("<input type=hidden name=CLIENT_ID>");
      document.writeln("<input type=hidden name=BUS_ENT_ID>");
      document.writeln("<input type=hidden name=FIRST_HEALTH_CLIENT_FLAG>");
      document.writeln("</form>");
      
      	document.writeln("<form name='goCcnDM' target='_blank' method='Post'>");
	document.writeln('<input type=hidden name=groupCode>');
	document.writeln('<input type=hidden name=portalId value="0">');
	document.writeln('<input type=hidden name=portalPageId value="0">');
	document.writeln('</form>');
	
	document.writeln('<form name=goDIRMAKER action="http://www.firsthealth.com/dirmaker/servlet/DMServlet" target="_blank" method=POST>');
	document.writeln('<input type=hidden name=SESS_ID value="">');
	document.writeln('<input type=hidden name=INET_ID>');
	document.writeln('<input type=hidden name=ED15_CODE value="">');
	document.writeln('<input type=hidden name=CLIENT_NAME>');
	document.writeln('<input type=hidden name=CLIENT_CODE>');
	document.writeln('</form>');
	
	//Form for the link of OAM in the ghp site
	//document.writeln("<form name=oamForm action='http://webstage-firsthealth/default.asp' target=myWindow method='get'>");
	document.writeln("<form name=oamForm action='http://www.coventrynational.com' target=myWindow method='get'>");
	document.writeln("<input type=hidden name=cltid value=''>");
	document.writeln("</form>");
	
	document.writeln("<form name=goCNELECPH action='/pharmacyEd/servlet/PharmacyController' target='_blank'  method=post>");
	
	document.writeln("<input type=hidden name=SESS_ID value=1>");
	document.writeln("<input type=hidden name=INET_ID value=877>");
	document.writeln("<input type=hidden name=NW_CODE value='GUARD'>");
	document.writeln("<input type=hidden name=ED15_CODE value=1>");
	document.writeln("<input type=hidden name=CLIENT_NAME value='Consultant'>");
	document.writeln("<input type=hidden name='APP_NAME' value='PHARMACY'>");
	document.writeln("<input type=hidden name='pageId' value='STARTPAGE'>");
	document.writeln("</form>");


//This is an image preloader.  It loads the mouseover images in the nav.
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//These next 3 functions deal with the mouseovers in the nav
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//Netscape 4 resizer
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
 MM_reloadPage(true);
 
//jump menu for quick links
 function MM_jumpMenu(targ,selObj,restore){ //v3.0
  var i=0;
  i=selObj.selectedIndex;
  if (restore) selObj.selectedIndex=0;
  eval(targ+".location='"+selObj.options[i].value+"'");
 
}

// Generic popup window function
// You can pass in height & width attributes for the new popup window,
// or let the script use its defaults
function popup(url, width, height) {
	
	//if(!popup.arguments[1]) { var width = 720; }
	//if(!popup.arguments[2]) { var height = 540; }
	var winWidth = 720;
    var winHeight =	540; 
	var xOffset = (800-720-40)*(1/2);
    var yOffset = (600-540)*(1/2);
    myWindow=window.open(url,'myWindow','location=yes,menubar=yes,personalbar=yes,resizable=yes,height='
        			+ winHeight+',width='+winWidth 
        			+',scrollbars=yes,status=yes,titlebar=yes,toolbar=yes,'
        			+ 'innerheight='+winWidth +
        			',innerWidth = '+winHeight+
        			',left=' + xOffset + 
                    ',screenX=' + xOffset + 
                    ',top=' + yOffset + 
                    ',screenY=' + yOffset);  
    myWindow.focus();
}

//This function is called when the OAM link is clicked.
	function submitForm(obj,gpcode) {
	 	 
	  obj.cltid.value=gpcode;
 		obj.submit();
   }

function createNewWindowForOpenEnrollment( url, windowName, toolbarStatus )
{
    var winWidth = screen.availWidth*.9;
    var winHeight = screen.availHeight*.75;
    var xOffset = (screen.availWidth-winWidth-40)*(1/2);
    var yOffset = (screen.availHeight-winHeight-140)*(1/2);
    var today = new Date();
    var time = today.getTime();

    if ( url.lastIndexOf("?") == -1 )
    {
        url = url + "?uniqueURI=" + time;
    }
    else
    {
        url = url + "&uniqueURI=" + time;
    }

    theWindow = window.open( url,
                             windowName,
                             "dependent," +
                             "directories=no," +
                             "location=no," +
                             "menubar=yes," +
                             "personalbar=no," +
                             "resizable=yes," +
                             "scrollbars=yes," +
                             "status=yes," +
                             "toolbar="+toolbarStatus+"," +
                             "height=" + winHeight + "," +
                             "innerheight=" + winHeight + "," +
                             "width=" + winWidth + "," +
                             "innerWidth=" + winWidth + "," +
                             "left=" + xOffset + "," +
                             "screenX=" + xOffset + "," +
                             "top=" + yOffset + "," +
                             "screenY=" + yOffset );

    theWindow.focus();

}
function createNewWindowForClaimStatus( url, windowName, toolbarStatus )
{
    var winWidth = screen.availWidth*.9;
    var winHeight = screen.availHeight*.75;
    var xOffset = (screen.availWidth-winWidth-40)*(1/2);
    var yOffset = (screen.availHeight-winHeight-140)*(1/2);
    var today = new Date();
    var time = today.getTime();

    if ( url.lastIndexOf("?") == -1 )
    {
        url = url + "?uniqueURI=" + time;
    }
    else
    {
        url = url + "&uniqueURI=" + time;
    }

    theWindow = window.open( url,
                             windowName,
                             "dependent," +
                             "directories=no," +
                             "location=no," +
                             "menubar=yes," +
                             "personalbar=no," +
                             "resizable=yes," +
                             "scrollbars=yes," +
                             "status=yes," +
                             "toolbar="+toolbarStatus+"," +
                             "height=" + winHeight + "," +
                             "innerheight=" + winHeight + "," +
                             "width=" + winWidth + "," +
                             "innerWidth=" + winWidth + "," +
                             "left=" + xOffset + "," +
                             "screenX=" + xOffset + "," +
                             "top=" + yOffset + "," +
                             "screenY=" + yOffset );

    theWindow.focus();
}

function ImgOn(index,location)
{
  img=document.images[index];
  img.src=location;
}

function ImgOff(index,location)
{
  img=document.images[index];
  img.src=location;
}
        
//Added to pass the HPVPORTAL variable value to true.
function fnGoHVL()
{
		openWindow1();
		document.goHVL.submit();
}
function openWindow1(record){
	 
		var winWidth = 720;
        var winHeight =	540;
        var xOffset = (800-720-40)*(1/2);
    	var yOffset = (600-540)*(1/2);
    	    	
        myWindow=window.open('','myWindow','location=yes,menubar=yes,personalbar=yes,resizable=yes,height=\"'
        			+ winHeight+'\",width=\"'+winWidth 
        			+'\",scrollbars=yes,status=yes,titlebar=yes,toolbar=yes,'
        			+ 'innerheight='+winHeight+
        			',innerWidth = '+winWidth+
        			',left=' + xOffset + 
                    ',screenX=' + xOffset + 
                    ',top=' + yOffset + 
                    ',screenY=' + yOffset);
        myWindow.focus();
 }

/*
 *  This function will verify that the supplied field has the format of a
 *  valid email address.
 */
function checkEmail( theField )
{
 	var normalizedEmail = formatAsEmailAddress( theField );
   	var theFieldLength = normalizedEmail.length;
   	var i = 1;
   	var errorString = "The e-mail address you entered does not appear to be " +
                      "valid.  A valid e-mail address would be similar to " +
                      "webdeveloper@firsthealth.com";
    theField.value = normalizedEmail;
    if( theFieldLength == 0 ) return true;
  	while((i < theFieldLength) && (normalizedEmail.charAt(i) != "@")) {
   		i++;
   	}
   	if( (i >= theFieldLength) || (normalizedEmail.charAt(i) != "@") ) {
   		alert( errorString );
   		theField.focus();
   		return false;
   	}
   	else {
   		i += 2;
   	}
   	while( (i < theFieldLength) && (normalizedEmail.charAt(i) != ".") ) {
   		i++;
   	}
   	if( (i >= theFieldLength - 1) || (normalizedEmail.charAt(i) != ".") ) {
   		alert( errorString );
   		theField.focus();
   		return false;
   	}
   	else {
   		return true;
   	}
}

/*
 *  This function will format the field so that it appears as a valid email
 *  address.
 */
function formatAsEmailAddress( theField )
{
    theField.value = stripCharsInBag( theField.value, " :;,/" );
    return theField.value;
}

/*
 *  This function will strip all of the characters within the "bag" from
 *  the string "s".
 */
function stripCharsInBag( s, bag )
{
  	var i;
   	var returnString = "";
   	for (i = 0; i < s.length; i++)
   	{
   		var c = s.charAt(i);
   		if(bag.indexOf(c) == -1)
   		{
   		    returnString += c;
   		}
   	}
   	return returnString;
}

function checkForm( inValue )
{
    var isValid = checkEmail( inValue );
    if ( isValid == true )
    {
        document.ContactUs.submit();
    }
}

function fnELECDENT()
      {
      			openWindow1();
                document.goELECDENT.INET_ID.value='<%=inetId%> ';
                document.goELECDENT.CLIENT_NAME.value="<%=clientName%>";
                document.goELECDENT.SESS_ID.value='1';
                document.goELECDENT.submit();
      }

function fnELECPH()
      {
      			openWindow1();
      			document.goELECPH.INET_ID.value='<%=inetId%>';
      			document.goELECPH.SESS_ID.value='1';
                	document.goELECPH.submit();
      }
      
function fnELECDIR()
      {
      			openWindow1();
                document.goELECDIR.INET_ID.value='<%=inetId%>';
                document.goELECDIR.SESS_ID.value='1';
                document.goELECDIR.submit();
      }
 function fnEDHCA()
      {
               openWindow1();
               document.goEDHCA.submit();
      }
      
function fnGoProvNomStatus()
 {		
 	  if (sNonFirstHealthFlag == "false")
 	  {
 	  	sNonFirstHealthFlag = "NO";	
 	  }
 	  else
 	  {
 	  	sNonFirstHealthFlag = "YES"	
 	  }
 	  
 	  document.goPROVNOM.CLIENT_ID.value=sGroupCode;
          document.goPROVNOM.INET_ID.value=iInetId;
          document.goPROVNOM.CLIENT_NAME.value=sClientName;
          document.goPROVNOM.BUS_ENT_ID.value=sBusEntId;
          document.goPROVNOM.FIRST_HEALTH_CLIENT_FLAG.value=sNonFirstHealthFlag;
          document.goPROVNOM.action = "http://"+sUrl+"/PROVNOMSTATUS/Main";
          var newWindow = window.open( "about:blank", "provNomination" );
          document.goPROVNOM.submit();       
          newWindow.focus();   	  
}

function fnDIRMAKER()
	{
      	
       //new 4/19/05
         
        document.goCcnDM.groupCode.value=sClientCode;
        document.goCcnDM.action="/webdm/access.do";
        document.goCcnDM.submit();
        
	}

function fnDIRMAKERold()
	{
      	//openWindow1();
        document.goDIRMAKER.INET_ID.value=iInetId;
        document.goDIRMAKER.CLIENT_CODE.value=sClientCode;
        document.goDIRMAKER.CLIENT_NAME.value=sClientName;
        document.goDIRMAKER.submit();
        
	}
function cnsltELECPH()
      {
      	document.goCNELECPH.submit();
      }
function eleCov()
{
	alert("gCode: " + gCode);
}