
function vidwin(url,properties) {
	msg=open(url,"DisplayWindow",properties);
	if (navigator.appVersion.indexOf("MSIE 4.01") == -1)
		if (msg.focus) msg.focus();
}

function changeImage(layer,imgName,imgObj) {
	if (document.images) {
		if (document.layers && layer!=null) {
			 eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src');
		} else {
			document.images[imgName].src = eval(imgObj+".src");
		}
	}
}
GLNAV_aboutgsi_off = new Image();
GLNAV_aboutgsi_off.src = "../images/GLNAV_aboutgsi_off.gif";

GLNAV_newsroom_off = new Image();
GLNAV_newsroom_off.src = "../images/GLNAV_newsroom_off.gif";

NAV_products_off= new Image();
NAV_products_off.src = "../images/NAV_products_off.gif";

GLNAV_employment_off = new Image();
GLNAV_employment_off.src = "../images/GLNAV_employment_off.gif";

GLNAV_contactus_off = new Image();
GLNAV_contactus_off.src = "../images/GLNAV_contactus_off.gif";

GLNAV_sitemap_off = new Image();
GLNAV_sitemap_off.src = "../images/GLNAV_sitemap_off.gif";

GLNAV_home_off = new Image();
GLNAV_home_off.src = "../images/GLNAV_home_off.gif";

GLNAV_aboutgsi_on = new Image();
GLNAV_aboutgsi_on.src = "../images/GLNAV_aboutgsi_on.gif";

GLNAV_newsroom_on = new Image();
GLNAV_newsroom_on.src = "../images/GLNAV_newsroom_on.gif";

NAV_products_on= new Image();
NAV_products_on.src = "../images/NAV_products_on.gif";

GLNAV_employment_on = new Image();
GLNAV_employment_on.src = "../images/GLNAV_employment_on.gif";

GLNAV_contactus_on = new Image();
GLNAV_contactus_on.src = "../images/GLNAV_contactus_on.gif";

GLNAV_sitemap_on = new Image();
GLNAV_sitemap_on.src = "../images/GLNAV_sitemap_on.gif";

GLNAV_home_on = new Image();
GLNAV_home_on.src = "../images/GLNAV_home_on.gif";

function AutoLogin()
{
        var User = document.forms['LOGIN'].elements['username'].value;
        var Pwrd = document.forms['LOGIN'].elements['password'].value;
        var BillRef = document.forms['LOGIN'].elements['billref'].value;
        var Option = document.forms['LOGIN'].elements['menuoptions'].value;


        if ( User != null && Pwrd != null )
        {
                var url = "http://login.gsionline.com"
                url = url + Option;
                url = url + "?";
                                


                if ( document.forms['LOGIN'].elements['savebillref'].checked == true )
                {
                        url = url + "SAVEBR=YES&";
                }
                if ( document.forms['LOGIN'].elements['savepassw'].checked == true )
                {
                        url = url + "SAVEPASS=ON&";
                }
                url = url + "USER=" + User + "&PASSWORD=" + Pwrd + "&BILLREF=" + BillRef + "&jsdef=YES&LOGINPAGE=YES";
				window.open(url);
        }
        return true;
}
 var objURL = new Object();
 window.location.search.replace(
new RegExp( "([^?=&]+)(=([^&]*))?", "g" ),
 function( $0, $1, $2, $3 ){
objURL[ $1 ] = $3;
}
);

