<!-- hide script from old browsers

function backOne() {
    history.go(-1);
}//end function backOne()

// email addresses based on the various criteria

email_forward = new Array(8);
email_forward = new Array(8);
email_forward[0] = "Therisa.Harris@carefirst.com"; 	// MD Have <= 50
email_forward[1] = "Tina.Wagner@carefirst.com"; 	// MD Have >= 51
email_forward[2] = "rebecca.smith@carefirst.com"; 	// MD Looking <= 50
email_forward[3] = "Tina.Wagner@carefirst.com"; 	// MD Looking >= 51
email_forward[4] = "Bonita.Brown@carefirst.com"; 	// NCA Have <= 50
email_forward[5] = "Carl.Repetti@carefirst.com"; 	// NCA Have >= 50
email_forward[6] = "Bonita.Brown@carefirst.com"; 	// NCA Looking <= 50
email_forward[7] = "Carl.Repetti@carefirst.com"; 	// NCA Looking >= 51

function chkEmail() {
// 	test first option
//	alert("document.frmMain.Company_Location[0].value="+document.frmMain.Company_Location[0].value); 
//	alert("document.frmMain.LookingorHave[0].value   ="+document.frmMain.LookingorHave[0].value); 
//	alert("document.frmMain.Group_Size[0].value      ="+document.frmMain.Group_Size[0].value); 
	if (document.frmMain.Company_Location[0].checked)  // company is in MD  
		{ //if1
			if (document.frmMain.LookingorHave[0].checked) //company have cf insurance  
				{
					if (document.frmMain.Group_Size[0].checked)  // company has 50orless employees"
					{
					document.frmMain.recipient.value = email_forward[0];
					}
					else 
					{
					document.frmMain.recipient.value = email_forward[1];
					}
				}
			else 
				{
					if (document.frmMain.Group_Size[0].checked) //does not have cf insurance but have 50orless employees
					{
					document.frmMain.recipient.value = email_forward[2];
					}
					else 
					{
					document.frmMain.recipient.value = email_forward[3];
					}
				}
		} //end if1
	else  //else1 meaning not in maryland
		{
			if (document.frmMain.LookingorHave[0].checked)  // is not in md, but have cf insurance 
				{
					if (document.frmMain.Group_Size[0].checked) // company has 50orless employees
						{
						document.frmMain.recipient.value = email_forward[4];
						}
					else 
						{
						document.frmMain.recipient.value = email_forward[5];
						}
				}
			else
				{ 
					if (document.frmMain.Group_Size[0].checked) //does not have cf insurance but have 50orless
						{
						document.frmMain.recipient.value = email_forward[6];
						}
					else
						{
						document.frmMain.recipient.value = email_forward[7];
						}
				}
		} //end else1
} //end function chkEmail()

var here = location.host;
var myBrowser = navigator.appName;
var myVersion = parseInt(navigator.appVersion);
var MSIE3;
var MSIEver = navigator.appVersion;
var search = "Name=Disclaimer";
var browser=navigator.appName + " " + navigator.appVersion;

function checkInput() {
	// edit the "Sales_Flash" choices:
	var return_value_flash=checkSalesFlash();
	if (return_value_flash == false)
		{
		return false;
		}
	else
		{
		// edit the "Sales_Source" choices:
		var return_value_source=checkSalesSource();
		if (return_value_source == false)
			{
			return false;
			}
		}
}//end function checkInput()

<!--  *******************  function checkSalesFlash:   ***********************--> 
<!-- this function will loop thru all the Flash's to see that no duplicate rnkings were chosen:  -->
function checkSalesFlash()
{
	/* check the Flash choices selected: */
	for (flashIndex=0; flashIndex <  3; flashIndex++) 
		{
		if (    (document.frmMain.Sales_Flashes_desired_by_email[flashIndex].checked && document.frmMain.Sales_Flashes_desired_by_mail[flashIndex].checked)
				                                              ||
				(document.frmMain.Sales_Flashes_desired_by_email[flashIndex].checked && document.frmMain.Sales_Flashes_desired_by_fax[flashIndex].checked)															  
				                                              ||
				(document.frmMain.Sales_Flashes_desired_by_mail[flashIndex].checked && document.frmMain.Sales_Flashes_desired_by_fax[flashIndex].checked)															  
		    )
				{
				alert ("You have already chosen rank '"+(flashIndex+1)+"' for Sales Flashes.");
				// position & set the cursor:
				document.frmMain.Sales_Flashes_desired_by_email[flashIndex].focus();
				document.frmMain.Sales_Flashes_desired_by_email[flashIndex].blur();
	   		  	return false;
				}  
		}  //end for
} //end function checkSalesFlash()
			
<!--  *******************  function checkSalesSource:   ***********************--> 
<!-- this function will loop thru all the Sales Source's to see that no duplicate rankings were chosen:  -->
function checkSalesSource()
{
	/* check the Source choices selected: */
	for (SourceIndex=0; SourceIndex <  3; SourceIndex++) 
		{
		if (    (document.frmMain.Sales_Source_desired_by_email[SourceIndex].checked && document.frmMain.Sales_Source_desired_by_mail[SourceIndex].checked)
				                                              ||
				(document.frmMain.Sales_Source_desired_by_email[SourceIndex].checked && document.frmMain.Sales_Source_desired_by_fax[SourceIndex].checked)															  
				                                              ||
				(document.frmMain.Sales_Source_desired_by_mail[SourceIndex].checked && document.frmMain.Sales_Source_desired_by_fax[SourceIndex].checked)															  
		    )
				{
				alert ("You have already chosen rank '"+(SourceIndex+1)+"' for Sales Source.");
				document.frmMain.Sales_Source_desired_by_email[SourceIndex].focus();
				document.frmMain.Sales_Source_desired_by_email[SourceIndex].blur();
	   		  	return false;
				}  
		}  //end for
} //end function checkSalesSource()

function clearscreen()
{
    document.dsmartSignon.dnqualifier.value = "";
    document.dsmartSignon.password.value = "";
    return;
} //end function clearscreen()

function closeform() {
	window.close()
} //end function closeform()

function doTest(textMsg) {
  document.returnValue = confirm(textMsg);

  if (document.returnValue==true){
    setDisclaimerCookie(); 
	parent.location='BrokerAgent.html';
  }
  else{
	//parent.location= history(-1);
	backOne();
  }
} //end function doTest()

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
} //end function MM_goToURL()

function openWin(theURL,winName,properties) {
 theWindow = window.open(theURL,winName,properties);
 theWindow.focus();
} //end function openWin()

function setDisclaimerCookie() {
  document.cookie = "Name=Disclaimer";
  return;
} //end function setDisclaimerCookie()

function setInitialFocus()
{
    document.dsmartSignon.dnqualifier.focus();
return;
} //end function setInitialFocus()

function showDisclaimer(textMsg) {
  if (document.cookie.length > 0) { 		//Are there any cookies?
    offset = document.cookie.indexOf(search) //Yes. Search for ours.
    if (MSIEver.substring(17,26) == "MSIE 4.01") {
	  if (offset == -1) {	//Our cookie not found. Compare referrer and location.
	    doTest(textMsg);
	  }
	return;
    }
    if (offset == -1) {		//Our cookie not found. Compare referrer and location.
      doTest(textMsg);
    }
  }
  else {
    doTest(textMsg);
  }	
} //end function showDisclaimer()

function callPopUp(parm)
		{
			//alert ("in left_mitch, parm="+parm);
			// 'call' the pop up & pass to it (as 'parm') which redirect to send the user to:
			window1 = window.open("../../main/html/leaving_carefirst_popup.htm?"+parm,"Privacy","scrollbars=yes,width=330,height=150,status=yes,toolbar=yes,menubar=yes,resizable=yes,location=yes");
			window1.moveTo(350, 250);
		}//end function callPopUp

function PolicyPop(Form)
{
 
 var dalert = "";
 dalert = "The policies and procedures in this Medical Policy Reference Manual are for informational use only.  It is an informational database, which, along with other documentation, is used to assist the Plan* in reaching decisions on matters of medical policy, and related member/subscriber coverage. These policies and procedures are not intended to certify or authorize coverage availability and do not serve as an explanation of benefits or a contract.  Member/subscriber coverage will vary from contract to contract and by line of business and benefits will only be available upon the satisfaction of all terms and conditions of coverage.  Some benefits may be excluded from individual coverage contracts.\n\nThese medical policies are not intended to replace or substitute for the independent medical judgment of a practitioner or other health professional for the treatment of an individual.\n\nMedical technology is constantly changing and CareFirst reserves the right to review and update its medical policy periodically and as necessary.\n\nFor specific billing codes and instructions, refer to the appropriate coding manual, such as the Health Care Financing Administration Common Procedure Coding System (HCPCS) (National Level II Medicare Codes), the International Classification of Diseases and the American Medical Association’s Current Procedural Technology.\n\n*For the purposes of this Manual, 'Plan' refers to all lines of business and affiliates of CareFirst BlueCross BlueShield, with the exception of BlueCross BlueShield of Delaware (BCBSD, Inc.). References made to 'all CareFirst lines of business' within the Manual do not apply to BCBSD, Inc.";
 
 if (confirm (dalert)){
    location = "http://dev1.carefirst.com/noncms/medicalpolicy.nsf";
	return true;
  }
  else{
  location = "http://www.carefirst.com/pages/providers/providersmain.htm";
  return false;
  }
  
} //end function PolicyPop

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
} //end function MM_openBrWindow




function newWindow(bookgif) {

	leftPos = 0

if (screen) {
   leftPos = screen.width-800
}
	bookWindow = window.open(bookgif, 'bookWin', 'width=650, height=280, left='+leftPos+',top=10,status=yes,menubar=yes,scrollbars=yes,location=yes,toolbar=yes,resizable=yes')
	bookWindow.focus()
}
// end hiding script from old browsers -->