// Useful links
// http://www.htmlhelp.com/cgi-bin/validate.cgi/
// http://www.dynamicdrive.com/  
// http://www.wbsabstract.com/  
// http://www.javascriptkit.com/
// Useful scriplet...
// <FORM ACTION="[URL]" METHOD=GET><INPUT TYPE=submit VALUE="BACK" class="S11"></FORM>
// in place of <INPUT TYPE="button" VALUE="BACK" onClick="history.go(-1)" class="S11">
//
// <script type="text/javascript">
// <!-- 
// 	function swapColor(obj, colour)
// 	{
// 		obj.style.backgroundColor=colour;
// 	}
// -->
// </script>


function todaysdate() {
	var mydate=new Date();
	var year=mydate.getYear() ;

	if (year < 1000) {
		year+=1900 ;
	}

	var day=mydate.getDay() ;
	var month=mydate.getMonth() ;
	var daym=mydate.getDate() ;
	if (daym<10) {
		daym="0"+daym ;
	}

	var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") ;
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December") ;

	return("<FONT color='white'>&nbsp;"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</FONT>") ;

}


/* Popup Info Window
 <a class="alta" href="[URL]" onClick="popInfoWindow('[URL]',[WIDTH],[HEIGHT]); return false"> [LABELTXT]</a>*/

function popInfoWindow(filename,tWidth,tHeight){
	var height = tHeight ;
	var top = new Number((screen.availHeight/3)-(height/2));	
	var width = tWidth ;
	var left = new Number((screen.availWidth/2)-(width/2));	
	infoPopwd = window.open( filename,"infoPopwd","height="+height+",width="+width+",status=0,resizable=0,scrollbars=0 directories=0,menubar=0,top="+top+",left="+left);
	infoPopwd.focus();
}


/* Popup Document Window
 <a class="alta" href="[URL]" onClick="popDocWindow('[URL]',[WIDTH],[HEIGHT]); return false"> [LABELTXT]</a>*/

function popDocWindow(filename,tWidth,tHeight){
	var height = tHeight ;
	var top = new Number((screen.availHeight/3)-(height/2));	
	var width = tWidth ;
	var left = new Number((screen.availWidth/2)-(width/2));	
	docPopwd = window.open( filename,"docPopwd","height="+height+",width="+width+",status=0,resizable=1,scrollbars=1,directories=0,menubar=0,top="+top+",left="+left);
	docPopwd.focus();
}

/* Popup Document Window 2
 <a class="alta" href="[URL]" onClick="popDocWindow2('[URL]',[WIDTH],[HEIGHT]); return false"> [LABELTXT]</a>*/

function popDocWindow2(filename,tWidth,tHeight){
	var height = tHeight ;
	var top = new Number((screen.availHeight/3)-(height/2));	
	var width = tWidth ;
	var left = new Number((screen.availWidth/2)-(width/2));	
	docPopwd2 = window.open( filename,"docPopwd2","height="+height+",width="+width+",status=0,resizable=1,scrollbars=1,directories=0,menubar=0,top="+top+",left="+left);
	docPopwd2.focus();
}