function win(URL, height, width)
{
	if(self && self.screen && self.screen.width)
	{
		pos="";
		if(width>self.screen.width)
		{
			winwidth=self.screen.width-20;
			pos+=" ,left=0";
		}
		else
		{
			winwidth=width+17;
			pos+=" ,left="+((self.screen.width-width+17)/2);
		}
		if(height>self.screen.height)
		{
			winheight=self.screen.height-60;
			pos+=" ,top=0";
		}
		else
		{
			winheight=height;
			pos+=" ,top="+((self.screen.height-height)/2);
		}
			
	}
	var params='toolbar=no, height='+winheight+', width='+winwidth+', location=no, scrollbars=yes, status=no, menubar=no, resizable=yes'+pos;
	var win = window.open(URL, 'popup', params);
	win.focus();
}
