﻿if (screen) {

   leftPos2 = screen.width-700

}
	function OpenNewWindow(bookgif) {
	
		bookWindow = window.open(bookgif, 'bookWin', 'width=650,height=280,left='+leftPos2+',top=120,resizable=yes,status=yes,location=yes,menubar=yes,toolbar=yes,scrollbars=yes')
		bookWindow.focus()
	}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
} 



function checkleavesite(){
	if (document.form1._ctl0_rdoType_3.checked) {
		leavesite('BMH');
		//window.open("../leave_carefirst_popupBMH.htm","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");

		return false;		
	}
}

function checkleavesite1(){
	if (document.form1._ctl0_rdoMedType_3.checked) {
		leavesite('BMH');
		//window.open("../leave_carefirst_popupBMH.htm","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");

		return false;		
	}
}

function isBMH(){
	
		if ((document.getElementById('ctl00_ContentPlaceHolder1_rdbtnmentalHealth').checked) || (document.getElementById('ctl00_ContentPlaceHolder1_rdbtnMEN').checked) ||(document.getElementById('ctl00_ContentPlaceHolder1_rdbtnSAB').checked))
		{
			leavesite('BMH');
			//window.open("../leave_carefirst_popupBMH.htm","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");

			return false;		
		}		
	
}

function isDHMO(){
	//if (document.form1._ctl0_DHMO.checked) 	
	if (document.getElementById('ctl00_ContentPlaceHolder1_DHMO').checked)
	{
		leavesiteDHMO('DHMO');		
		return false;		
	}
}

function isNATL(){
//	if (document.form1._ctl0_DHMO.checked) {
		leavesiteNATL('NATL');
		//window.open("../leave_carefirst_popup.htm","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
		
//		return false;		
//	}
}

function isDCCC(){
	if (document.getElementById('ctl00_ContentPlaceHolder1_DC_CC').checked)
	{
		//leavesite('DCCC');
	window.open("http://www.carefirst.com/tdn/attachments/DIRdd.pdf","","resizable=yes,location=yes,left=150,top=140,status=yes,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
		
		return false;		
}
}
function isDCCC1(){
if (document.getElementById('ctl00_ContentPlaceHolder1_DC_CC1').checked)
{
		//leavesite('DCCC1');
			window.open("http://www.carefirst.com/tdn/attachments/DIRddspecialist.pdf","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
		
		return false;		
	}
}


function redirVIS(){
if (document.getElementById('ctl00_ContentPlaceHolder1_DAV').checked)
{
	leavesite('DAV');
	//window.open("../leave_carefirst_popupVIS1.htm","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
	return false;
}
}

function isNatl(){
	if (document.form1._ctl0_NI.checked) {
		leavesite('BCBSA');
		//window.open("../leave_carefirst_popupBCBSA.htm","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
		return false;		
	}
}
function rdbtnoutsideArea(){

if (document.getElementById('ctl00_ContentPlaceHolder1_rdbtnoutsideArea').checked)
{
		
			window.open("http://provider.bcbs.com/","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
		
		return false;		
	}
}

function rdbtnCFAoutsideArea(){

if (document.getElementById('ctl00_ContentPlaceHolder1_rdbtnCFAoutsideArea').checked)
{
		
			window.open("http://provider.bcbs.com/","","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
		
		return false;		
	}
}
function leavesite(type)
{
	var ipage = "leaving_popup.htm?" + type;
	var w = window.open(ipage,"","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
}

function leavesiteNATL(type)
{
	var ipage = "leaving_popupNATL.htm?" + type;
	var w = window.open(ipage,"","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
}
function leavesiteDHMO(type)
{
	var ipage = "leaving_popupDHMO.htm?" + type;
	var w = window.open(ipage,"","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
}
function leavesiteDlink(type)
{
	var ipage = "leaving_popupNATL.htm?" + type;
	var w = window.open(ipage,"","resizable=yes,location=yes,status=yes,left=150,top=140,scrollbars=yes,menubar=yes,toolbar=yes,height=350,width=620");
}



