/*
  GoMOOS main javascript

*/

//  Opens a pop-up window
function popWindow(URL, NAME)
{
	var newWin = window.open(URL,NAME,"width=640,height=480,resizable=yes,location=yes,menubar=yes,status=yes,toolbar=yes,personalbar=no,scrollbars=yes");
	newWin.focus();
}

// Opens a pop-up window with the URL and NAME and H/W
function popWindowSized(URL, NAME, WIDTH, HEIGHT)
{
	var newWin = window.open(URL,NAME,"width="+WIDTH+",height="+HEIGHT+",resizable=no,location=no,menubar=yes,status=no,toolbar=no,personalbar=no,scrollbars=no");
  newWin.focus()
}

// Opens a pop-up window with the URL and NAME and H/W, but without the rude
// lack of scrollbars or location
function popWindowNice(URL, NAME, WIDTH, HEIGHT)
{
	var newWin = window.open(URL,NAME,"width="+WIDTH+",height="+HEIGHT+",resizable=yes,location=yes,menubar=yes,status=yes,toolbar=yes,personalbar=no,scrollbars=yes");
	newWin.focus();
}
// Used by various credits.html scripts to display mapfile credits.
function openPopup(URL, NAME){ 
	var newWin=window.open(URL,NAME,"width=700,height=500,resizable=yes,location=no,menubar=no,status=no,toolbar=no,personalbar=no,scrollbars=yes"); 
	newWin.focus(); 
}

// close a window
function closeWindow()
{
    window.close();
}
