function openWindow(URL,windowName) 
{ 
    args = "location=0," 
         + "menubar=0,"
         + "resizable=1,"
         + "scrollbars=0,"
         + "AddressBar=0," 
         + "status=1," 
         + "statusbar=0," 
         + "titlebar=1,"
         + "toolbar=0,"
         + "hotkeys=0,"
         + "FullScreen=0";
     window.open( URL,windowName,args ); 
}

function openWindowWithScrollbars(URL,windowName) 
{ 
    args = "location=0," 
         + "menubar=1,"
         + "resizable=1,"
         + "scrollbars=1,"
         + "AddressBar=0," 
         + "status=1," 
         + "statusbar=0," 
         + "titlebar=1,"
         + "toolbar=0,"
         + "hotkeys=0,"
         + "FullScreen=0";
     window.open( URL,windowName,args ); 
}

function openWindowCustom(URL,windowName) 
{ 
    args = "location=0," 
         + "menubar=0,"
         + "resizable=0,"
         + "scrollbars=1,"
         + "AddressBar=0," 
         + "status=1," 
         + "statusbar=0," 
         + "titlebar=0,"
         + "toolbar=0,"
         + "hotkeys=0,"
         + "FullScreen=0";
     window.open( URL,windowName,args ); 
}

function openWindowCustom2(URL,windowName) 
{ 
     window.open( URL,windowName,"" ); 
}

function poponload(URL,windowName)
{
	args = "toolbar=0,"
	+ "location=0"
	+ "directories=0"
	+ "status=0"
	+ "menubar=0"
	+ "scrollbars=0"
	+ "resizable=0"
	+ "width=720"
	+ "height=1000";

testwindow= window.open (URL, windowName, args);
}

function popupWin(URL,windowName)
{
	args = "toolbar=0,"
	+ "location=0,"
	+ "directories=0,"
	+ "status=0,"
	+ "menubar=0,"
	+ "scrollbars=1,"
	+ "resizable=0,"
	+ "width=720,"
	+ "height=1000";

testwindow= window.open (URL, windowName, args);
}

function popupWinDim(URL,windowName, w, h)
{
	w += 32;
	h += 96;
	wleft = (screen.width - w) / 2;
	wtop = (screen.height - h) / 2;

	args = "toolbar=0,"
	+ "location=0,"
	+ "directories=0,"
	+ "status=0,"
	+ "menubar=0,"
	+ "scrollbars=1,"
	+ "resizable=0,"
	+ "left=" + wleft +","
	+ "top=" + wtop +","
	+ "screenX=" + wleft +","
	+ "screenY=" + wtop +","
	+ "width=" + w +","
	+ "height=" + h ;

testwindow= window.open (URL, windowName, args);
}
