function PopUpWindow(
	x_strPage, 
	x_strTitle, 
	x_intAutoCenter, 
	x_intTopOffSet, 
	x_intLeftOffSet, 
	x_intWidth, 
	x_intHeight, 
	x_strResizeable, 
	x_strScroll, 
	x_strMenu)
{
	var strSettings
	
	if(x_intAutoCenter == 0)
	{
		strSettings  ='top='	+ x_intTopOffSet	+ ','
		strSettings +='left='	+ x_intLeftOffSet	+ ','
	}
	else
	{
		var winl = (screen.width-x_intWidth)/2;
		var wint = (screen.height-x_intHeight)/2;
	
		strSettings  ='top='	+ wint	+ ','
		strSettings +='left='	+ winl	+ ','	
	}
	strSettings +='width='		+ x_intWidth		+ ','
	strSettings +='height='		+ x_intHeight		+ ','
	strSettings +='resizable='	+ x_strResizeable	+ ',';	//yes, no, auto
	strSettings +='scrollbars='	+ x_strScroll		+ ',';	//yes, no, auto
	strSettings +='toolbar='	+ 'no'     			+ ',';	//yes, no
	strSettings +='menubar='	+ x_strMenu;				//yes, no
	
	if(x_strPage.length > 0)
	{
		var win = window.open(x_strPage, x_strTitle, strSettings);
		
		if(window.focus)
		{
			win.focus();
		}
	}
}

