// misc gs javascript functions used on many pages

function openDec(url, name, w, h) {
        popupWin = window.open(url, name, 'resizable=0,scrollbars=1,width=' + w + ',height=' + h + '');
    // focus window (only for Navigator >= 3.0)
    if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
    popupWin.focus();
}
function launchGSL(url, name, w, h) {
        popupWin = window.open(url, name, 'resizable=0,scrollbars=0,width=' + w + ',height=' + h + '');
    // focus window (only for Navigator >= 3.0)
    if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
    popupWin.focus();
}

var isIMG = document.images;
var Arrowon;
var Arrowoff;

if (isIMG) {
   Arrowon = new Image(7,7);
   Arrowon.src = "images/arrow_on.gif";
   Arrowoff = new Image(7,7);
   Arrowoff.src = "images/arrow_off.gif";
}
function Arrow(Arrowname) {
   if (isIMG) {
     document[Arrowname].src = (document[Arrowname].src.indexOf('arrow_on.gif') != -1) ? 'images/arrow_off.gif' : 'images/arrow_on.gif';

   }
}
function change(form){
	var page= document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = page;
}

var thisPageURL = window.location.href;
var popupRes = thisPageURL.match(/gscpopup/g); 
if (popupRes == null) { 
	window.name="mainWindow"; 
}

var url = document.referrer;
function newWindow(newContent) {
	winContent = window.open(newContent, 'nextWin', 'left=100,top=10,width=450,height=485,toolbar=no,scrollbars=no,resizable=no');
	if (document.referrer.length > 0) {
		window.location.href = document.referrer;
	}
}

function newWindow2(newContent) {
	winContent = window.open(newContent, 'nextWin', 'left=100,top=10,width=450,height=485,toolbar=no,scrollbars=no,resizable=no');
}

function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver; 
	} 
} 

function mOut(src,clrIn){ 
	if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgColor = clrIn; 
	} 
}

function mClk(src){ 
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}

var hidetracking = 0;








