var color = "";



function changeCellColor(obj,color) {

  if (document.all) {

    obj.style.backgroundColor=color;

  }

}



function ShowText(Item)

	{

		for (j=1; j<=7; j++) 

		{

		if (document.all)

		   eval("Text"+j+".style.visibility='hidden'");

		else

		   document.eval("Text"+j).visibility ="hide";

		}		

		if (document.all)

		   eval("Text"+Item+".style.visibility='visible'");

		else

		   document.eval("Text"+Item).visibility  = "show";

		  

	}

	

// code for GOTO drop box 	

function goTo(pagename) {

        

        if ((-1 < pagename.selectedIndex) && (pagename.options[pagename.selectedIndex].value != 'nil')) {

                val = pagename.options[pagename.selectedIndex].value;

                if(val!="NoValue") {

                        location.href=val;

                        return true;

                }

        }

}	



// end of GOTO code



// Netscape bug fix...

function reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}

  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();

}

reloadPage(true);





// LaunchURL main function



function launchURL(url,name,x,y) {

	window.name = "_newshome";

    var ItsTheWindow;

    ItsTheWindow = window.open(url, name,

    "status=no,height="+y+",width="+x+",scrollbars=no,resizable=no,toolbar=no");

}



function openwin(desktopURL)

{

  var desktop = window.open( desktopURL, "_blank", "toolbar=no,location=no,copyhistory=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=530,height=450");

}
function openwin2(desktopURL)

{

  var desktop = window.open( desktopURL, "_blank", "toolbar=no,location=no,copyhistory=no,status=no,menubar=no,scrollbars=auto,resizable=no,width=550,height=400");

}