function open_window(url,iWidth,iHeight,scrollbars,resizable) {
	sScrollBars=(scrollbars)?1:0;
	if (""+resizable=="undefined") resizable=1;
	sResizable=(resizable)?1:0;
	iWidth=(""+iWidth!="undefined")?iWidth:800;
	iHeight=(""+iHeight!="undefined")?iHeight:600;
	var x=screen.width;
	var y=screen.height;
	xx = (x-iWidth>0)?(x-iWidth)/2:1;
	yy = (y-iHeight>0)?(y-iHeight)/2:1;
	try
	{
	  mywin = window.open (url,"win","toolbar=0,location=0,directories=0,status=0,menubar=0,left="+xx+",top="+yy+",resizable="+sResizable+",scrollbars="+sScrollBars+",width="+iWidth+",height="+iHeight);
	}
	catch (e)
	{
	alert(prodName+" makes use of pop-up windows. A "+prodName+" pop-up window has just been blocked. Please turn-off pop-up blocker for "+prodName+". For instructions please refer to \"Ask Support” on the \"my "+prodName+"” tab.");
	
	}
	
	mywin.focus();
}

function open_window2(url,iWidth,iHeight,scrollbars,resizable) {	
	sScrollBars=(scrollbars)?1:0;
	if (""+resizable=="undefined") resizable=1;
	sResizable=(resizable)?1:0;
	iWidth=(""+iWidth!="undefined")?iWidth:800;
	iHeight=(""+iHeight!="undefined")?iHeight:600;
	var x=screen.width;
	var y=screen.height;
	xx = (x-iWidth>0)?(x-iWidth)/2:1;
	yy = (y-iHeight>0)?(y-iHeight)/2:1;
	
	xx = xx-90
	yy = yy+90

	try
	{
	  mywin2 = window.open (url,"win2","toolbar=0,location=0,directories=0,status=0,menubar=0,left="+xx+",top="+yy+",resizable="+sResizable+",scrollbars="+sScrollBars+",width="+iWidth+",height="+iHeight);
	}
	catch (e)
	{
	alert("Medifast makes use of pop-up windows. A Medifast pop-up window has just been blocked. Please turn-off pop-up blocker for Medifast. For instructions please refer to \"Ask Support\" ”.");
	
	}
	
	mywin2.focus();
	
}

function open_window3(url,iWidth,iHeight,scrollbars,resizable) {
	sScrollBars=(scrollbars)?1:0;
	if (""+resizable=="undefined") resizable=1;
	sResizable=(resizable)?1:0;
	iWidth=(""+iWidth!="undefined")?iWidth:800;
	iHeight=(""+iHeight!="undefined")?iHeight:600;
	var x=screen.width;
	var y=screen.height;
	xx = (x-iWidth>0)?(x-iWidth)/2:1;
	yy = (y-iHeight>0)?(y-iHeight)/2:1;
	try
	{
	  mywin3 = window.open (url,"win3","toolbar=0,location=0,directories=0,status=0,menubar=0,left="+xx+",top="+yy+",resizable="+sResizable+",scrollbars="+sScrollBars+",width="+iWidth+",height="+iHeight);
	}
	catch (e)
	{
	alert("Medifast makes use of pop-up windows. A Medifast pop-up window has just been blocked. Please turn-off pop-up blocker for Medifast. For instructions please refer to \"Ask Support\" ”.");
	
	}
	
	mywin3.focus();
}
