function open_window(url,iWidth,iHeight,scrollbars,resizable,winName,xOffset,yOffset) {
	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;
	if (""+xOffset!="undefined" && ""+xOffset!="")
		xx += xOffset
	if (""+yOffset!="undefined" && ""+yOffset!="")
		yy += yOffset
	
	try
	{
	  if (""+winName!="undefined" && ""+winName!="")
	  {
		var newWin = eval(winName + ' = window.open (url,winName,"toolbar=0,location=0,directories=0,status=0,menubar=0,left="+xx+",top="+yy+",resizable="+sResizable+",scrollbars="+sScrollBars+",width="+iWidth+",height="+iHeight)');
		eval(winName).focus();
		return newWin
	  }
	  else
	  {
		 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);
		 mywin.focus();
	  }
	}
	catch (e)
	{
	alert(e.description);
	alert("Melaleuca makes use of pop-up windows. A Melaleuca pop-up window has just been blocked. Please turn-off pop-up blocker for Melaleuca. For instructions please refer to \"Ask Support\" ”.");
	
	}
	
	
}

