<!--

function printWindow(){

    browserVersion = parseInt(navigator.appVersion)

    if (browserVersion >= 4){

	window.print();

    }

}

function makeArray(n){

    this.length = n;

    for (i=1;i<=n;i++){

        this[i]=0;

    }

    return this;

}

function displayDate(){

    var this_month = new makeArray(12);

    this_month[0]  = "January";

    this_month[1]  = "February";

    this_month[2]  = "March";

    this_month[3]  = "April";

    this_month[4]  = "May";

    this_month[5]  = "June";

    this_month[6]  = "July";

    this_month[7]  = "August";

    this_month[8]  = "September";

    this_month[9]  = "October";

    this_month[10] = "November";

    this_month[11] = "December";

    var today = new Date();

    var day   = today.getDate();

    var month = today.getMonth();

    var year  = today.getYear();

    if (year < 1900){

        year += 1900;

    }

    return(this_month[month]+" "+day+", "+year);

}

function displayTime(){

    var today    = new Date();

    var ampm = "pm";

    var hours  = today.getHours();

    if (hours < 12){

	ampm = "am";

    }else if (hours > 12){

	hours= hours-12;

    }

    if (hours==0){

	hours = "12";

    }

    var minutes  = today.getMinutes();

    if (minutes < 10){

	minutes = "0"+minutes;

    }

    var seconds  = today.getSeconds();

    if (seconds < 10){

	seconds = "0"+seconds;

    }

    return("loaded "+hours+": "+minutes+": "+seconds+" "+ampm);

}

function writeDateTime(){

	document.write("<b>"+displayDate()+"<br><img src='http://www.whiting.ca/nbar/head4c.gif' alt='Time Page was Loaded' border='0'>"+displayTime()+"</b>");

}

function showChartb(t,w){

	var LeftPosition = (screen.width) ? (screen.width-850)/2 : 0;

	var TopPosition = (screen.height) ? (screen.height-500)/2 : 0;



	var thisURL = t;



	var popup = window.open(thisURL,w,'toolbar=0,top='+TopPosition+',left='+LeftPosition+',location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=850,height=500');

	if(navigator.appName.substring(0,8)=="Netscape")

	{

		popup.location=thisURL;

		popup.opener=self;

	}

}

function showChart(t){

	var LeftPosition = (screen.width) ? (screen.width-850)/2 : 0;

	var TopPosition = (screen.height) ? (screen.height-500)/2 : 0;



	if (t ==1)

	{

		var thisURL = "ladlchrt/iron.html";



		var popup = window.open(thisURL,"Iron",'toolbar=0,top='+TopPosition+',left='+LeftPosition+',location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=850,height=500');

		if(navigator.appName.substring(0,8)=="Netscape")

		{

			popup.location=thisURL;

			popup.opener=self;

		}

	}else{

		var thisURL = "ladlchrt/steel.html";



		var popup = window.open(thisURL,"Steel",'toolbar=0,top='+TopPosition+',left='+LeftPosition+',location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=850,height=500');

		if(navigator.appName.substring(0,8)=="Netscape")

		{

			popup.location=thisURL;

			popup.opener=self;

		}

	}

}

function toggleSpan(name) {

	if (!document.all){

		if (document.getElementById(name).style.display=="none")

			document.getElementById(name).style.display="inline";

		else

			document.getElementById(name).style.display="none";

	} else {

		var coll=document.all.tags("span");

		for (i=0; i<coll.length; i++){

			if (coll[i].id.indexOf(name) >= 0){

				if (coll[i].style.display == "none")

					coll[i].style.display = "inline";

				else

					coll[i].style.display = "none";

			}

		}

	}

}

//-->