// JavaScript Document

// on and off behaviors for rollover images 
if (document.images) 
{
	btn_submitoff = new Image();          btn_submitoff.src = "../images/btn_submit.gif";
	btn_submiton = new Image();           btn_submiton.src = "../images/btn_submit_roll.gif";
}

// to open a pop-up window
function openWin(winName, url, w, h)
{
	var popup;
    if (popup != null && !popup.closed) 
	{
		popup.close();
    }
    var width = 535;
    var height = 520;
    if (arguments.length > 2) { width = w; }
    if (arguments.length > 3) { height = h; }
    if (arguments.length == 1) { url = ''; }
    var left = (screen.availWidth / 2) - (width / 2);
    var top = (screen.availHeight / 2) - (height / 2);
    popup = window.open(url, winName,'toolbar=0,scrollbars=1,resizeable=0,width=' +
width + ',height=' + height + ',top=' + top + ',left=' + left);
    popup.focus();
}