<!-- Begin Popup
function NewWindow(mypage, myname, w, h, scroll, winprops) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function NewWindow1(mypage, myname, w, h, scroll, winprops) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,toolbar=yes,status=yes';
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function winOpen(URL, windowName, w, h, status, location, menubar, scrollbars, toolbar, resizable){

var winl = (screen.width - (w + 25)) / 2;
var vsize = screen.width;

if (vsize == 800)
	{var wint = (screen.height - (h - 110)) / 2;}
else 
	{var wint = (screen.height - (h + 50)) / 2;
	 h = 486;}

if (URL == 'map/mapframe.html')
	{var wint = (screen.height - (h - 10)) / 2;
	 h = 390;}

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl;

	if (location){
		winprops = winprops+',location';
	}
	if (menubar){
		winprops = winprops+',menubar';
	}
	if (scrollbars){
		winprops = winprops+',scrollbars';
	}
	if (status){
		winprops = winprops+',status';
	}
	if (toolbar){
		winprops = winprops+',toolbar';
	}
	if (resizable){
		winprops = winprops+',resizable';
	}

	newWin = window.open(URL, windowName, winprops);
	newWin.focus();
}

function loadinparent(url, closeSelf){
	self.opener.location = url;
	if(closeSelf) self.close();
	}
	
function loadRegForm(EventID)
{
	var url = "http://www.hfma-nca.org/HFMAevents/R_PersonalInfo.aspx?EventID=" + EventID;
	if (document.title == 'Institute Information - Northern California HFMA')
	{
		window.open(url);
		window.close();
	}
	else
	{
		window.open(url);
	}
}
function loadMailForm(EventID)
{
	var url = "http://www.hfma-nca.org/HFMAevents/R_regMail.aspx?EventID=" + EventID;
	if (document.title == 'Institute Information - Northern California HFMA')
	{
		window.open(url);
		window.close();
	}
	else
	{
		window.open(url);
	}
}

//-->
