function popUp(url,windowName,sWidth,sHeight,toolbarYS,locationYS,scrollbarYS,menubarYS,resizeYS,HorizPos,VertPos,server){

	if(screen)
	{
	xPos = screen.width / 2 ;
	yPos = screen.height / 2 ;

	}


	if(!windowName){windowName='IntMaxpopUp';}
	if(!sWidth){sWidth=xPos;}
	if(!sHeight){sHeight=screen.height;}
	if(!toolbarYS){toolbarYS='yes';}	
	if(!locationYS){locationYS='yes';}
	if(!scrollbarYS){scrollbarYS='yes';}
	if(!menubarYS){menubarYS='yes';}
	if(!resizeYS){resizeYS='yes';}
	if(!HorizPos){HorizPos= xPos;}
	if(!VertPos){VertPos= yPos;}
	if(!server || url.substr(0,4) == "http" || server ==""){server="";}
	windowName=removeSpecialChar(windowName, "*");
	windowName=removeSpecialChar(windowName, " ");
	IntMaxpopUp=window.open(server+url,windowName,'toolbar='+toolbarYS+',menubar='+menubarYS+',resizable='+resizeYS+',scrollbars='+scrollbarYS+',location='+locationYS+',top='+VertPos+',left='+HorizPos+',width='+sWidth+',height='+sHeight);
if(window.focus){IntMaxpopUp.focus();}
}


function openHelp(url, server){
	
	if(!server) {web_Server = '';}
	url = web_Server + freshurl;
	leftPos = 760;
	height = 680;
	
	if(screen)
	{
		leftPos = screen.width-280;
		height = screen.height;
	}
	SmallWin=window.open(url, 'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height='+height+',width=272,left='+leftPos+',top=0');
	if(window.focus)
	{
		SmallWin.focus();
	}
	if(SmallWin.opener == null) 
	{
		SmallWin.opener = window;
		SmallWin.opener.name = "newPUMain";
	}
}



function removeSpecialChar(str, pattern){
	while (str.indexOf(pattern)!= -1){
		str=str.substring(0,str.indexOf(pattern))+str.substring(str.indexOf(pattern)+1,str.length);
	}
	return str;
}
