


/******************************************************
*OpenPopup('url','height','width');return false
*******************************************************/
var win = null;
function OpenPopUp(URL)
{




	switch(URL)
	{
		case "https://www.baptist-health.com/give/donation/":
			h = "550";
			w = "782";
			break
		case "":
			h = "300";
			w = "200";
			break
		case "/newsletter/popup.asp":
			h = "400";
			w = "400";
			break
		default : 
		h = "400";
		w = "400";
	}




	var settings;
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings =  'height='+ h +',width='+ w +',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable';
		win = window.open(URL,'BH',settings);
	if (!win) {
		alert("NOTE: Please disable any Pop-up Blockers and click \'OK\' to continue...")
	}
	else
		win.focus();
}
function NewWindow(url,w,h,scroll){
	var settings;
	var sbars = (scroll) ? 'yes' : 'no';
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =  'height='+ h +',width='+ w +',top='+TopPosition+',left='+LeftPosition+',scrollbars='+sbars+',resizable';
	win = window.open(url,'BH',settings);
	
	if (win)
		win.focus();
	return !win; //if succussful href on calling link will be cancelled
}

var winNews = null;
function OpenNews()
{
	var settings;
	var h = "400";
	var w = "450";
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings =  'height='+ h +',width='+ w +',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable';
		winNews = window.open('/newsletter/popup.asp','NEWS',settings);
	
	if (winNews) {
		winNews.focus();
		}
}

// hold-overs from old site
function openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features); 
}

function gotosite(site) {
        if (site != "") {
                location.href=site;
        } 
}