var popupWin=null;

function nf_pop_open(url,width,height){
	
	var style="menuebar=no,resizable=yes,scrollbars=no,status=no,";
	
	
	if(width!='' && height!='') 
	{	width=50+parseInt(width);
		height=50+parseInt(height);
		style+="width="+width+",height="+height;
	}
	
	if(popupWin==null) popupWin = window.open(url,"popUp",style);
	else {
		popupWin = window.open(url,"popUp",style);
		if(width!='' && height!='') 
		{	popupWin.resizeTo(width,height);
		}
	
	}
	setTimeout('focusWin(popupWin);',250);
}


function focusWin(win)
{	if(win != null) win.focus();
}
