// JavaScript Document

function globalPopup(xurl, xwidth, xheight, xmenubar, xlocation, xresizable, xscrollbars, xstatus, xtitlebar){
	if (!xmenubar){xmenubar = "yes";}		
	if (!xlocation){xlocation = "yes";}		
	if (!xresizable){xresizable = "yes";}		
	if (!xscrollbars){xscrollbars = "yes";}		
	if (!xstatus){xstatus = "yes";}		
	if (!xtitlebar){xtitlebar = "yes";}
	
	if (!xwidth) {
		xwidth = window.screen.width;
	}
	if (!xheight) {
		xheight = window.screen.height;
	}
	
	remote = window.open(xurl, "CEM", "menubar=" + xmenubar + ",location=" + xlocation + ",resizable=" + xresizable + ",scrollbars=" + xscrollbars + ",status=" + xstatus + ",width=" + xwidth + ",height=" + xheight + ",left=0,top=0,titlebar=" + xtitlebar);
	remote.focus();	
}

function submitForm(xformName){
	document.forms[xformName].submit();
}