function getDiv(divID) {
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        return document.getElementById(divID); }
    if( document.layers ) { //Netscape layers
        return document.layers[divID]; }
    if( document.all ) { //Proprietary DOM; IE4
        return document.all[divID]; }
    if( document[divID] ) { //Netscape alternative
        return document[divID]; }
    return false;
}

function showDiv(divID,source) {
myRef = getDiv(divID,source);
if (source !="") {myRef.src=source;}
if( myRef )
	{
	if( myRef.style )	//DOM & proprietary DOM
		{
		if(myRef.style.visibility == 'visible') {myRef.style.visibility = 'hidden';}
		else { myRef.style.visibility = 'visible';}
		}
	else	{		//Netscape
		if( myRef.visibility )
			{
			if(myRef.visibility = 'show') {myRef.visibility = 'hide';}
			else {myRef.visibility = 'show';}
			}
		}
	}
	//else {alert("Oops, No Object!");}
}

function winW() {
var myW = 0;
if( typeof( window.innerWidth ) == 'number' )
	{ myW = window.innerWidth; }	// Non-IE
else
	{ myW = screen.availWidth; }	// IE
return myW;
}

function winH() {
var myH = 0;
if( typeof( window.innerHeight ) == 'number' )
	{ myH = window.innerHeight; }	// Non-IE
else
	{ myH = screen.availHeight - 135; }	// IE
return myH;
}

var popwin = null;
window.name = "main";
function popup(url, w, h)
{
if (popwin && popwin.open && !popwin.closed)
{
if (popwin.window.focus) {popwin.window.focus();}
popwin.location.href = url;
}
else
{
vparm = 'height='+h+',width='+w+',top=100,left=100,scrollbars=no,status=no,directories=no,location=no,menubar=no,toolbar=no';
popwin = window.open(url,'newwin',vparm);
if (popwin.window.focus) {popwin.window.focus();}
}
}

//var redir = 10000;
//var m
//var w
//var sw
//var sh

//if (screen.width < 801)   {m=screen.width/2; w=screen.width-40;  sw=0;   sh=20}
//if (screen.width == 1024) {m=screen.width/2; w=screen.width-40;  sw=112; sh=20}
//if (screen.width == 1152) {m=screen.width/2; w=screen.width-206; sw=176; sh=50}
//if (screen.width == 1280) {m=screen.width/2; w=screen.width-270; sw=240; sh=100}
//if (screen.width == 1440) {m=screen.width/2; w=screen.width-350; sw=320; sh=100}
//if (screen.width == 1600) {m=screen.width/2; w=screen.width-430; sw=400; sh=130}

