  
 var popWin;
 
 function popUp(item, h, w)
 {
 	var newwin = null;
	
	if(typeof(popWin) == 'undefined' || popWin.closed)
	{		
		//create new popWin and load stuff
		newwin = window.open("","","width="+w+",height="+h+", status=no,resizable=yes,scrollbars=yes,left=5,top=5");
		if(newwin != null)
		{
			if(newwin.opener == null)
			newwin.opener = self;
			newwin.location.href = item;
		}
		popWin = newwin;
		popWin = focus();
	}
	else 
		// bring exsisting popWin to top
	{
		popWin.location = item;
		popWin.resizeTo(w,h);
		popWin.focus();
	}	
}					



