<!--
// for ns6
if (!document.all) {
	document.write('<style>');
	document.write('body {font-size:small;}');
	document.write('th, td {font-size:small;}');
	document.write('th.label, label {text-align:left;}');
	document.write('#cornerimg {right:53px;}');
	document.write('</style>');
}

// convert all characters to lowercase to simplify testing 
var agt = navigator.userAgent.toLowerCase(); 
var is_mac    = (agt.indexOf("mac")!=-1);
var is_safari = (document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)&&(!navigator.accentColorName)?true:false;

if (is_mac) {
	if (document.all) {
		document.write('<style>');
			document.write('body {font-size:medium;font-size:1.1em;line-height:1.2em;}}');
			document.write('table, th, td, select, p, div, span, input {font-size:medium;font-size:1.5em;}');
			document.write('label, th.labelcheck, table.browse th, table.browse td, td.recordtotal, table.list th, table.list td, #main, th.leftfield, .rightfield, table.checklist th.col, table.detail td.item, #detailmandatory,table.search th.item, table.search .leftfield, table.search .rightfield, table.search td a,  table.regis th, table.regis td, .itemselect, table.search .download, .downloadtitle {font-size:medium;}');
			document.write('th.regsubhead, td.label {font-size:1.3em; line-height:1.5em;}');		
			document.write('input.button {font-size:medium; line-height:1.0em;}');
			document.write('#addnew {font-size:1.0em; line-height:1.0em;}');
			document.write('#detailheader {height:1.2em;}');
			//document.write('.itemselect select, .itemselect input.button {font-size:1.0em; }');
			//document.write('.rightfield select {font-size:0.8em; }');

			// login page
			document.write('table.login td, table.login th {font-size:medium;padding-left:10px;}');
			
			// error page
			document.write('table.error td, table.error th {font-size:medium;padding-left:10px;}');

			// forgotten password page
			document.write('table.forgot td, table.forgot th {font-size:medium;padding-left:10px;}');

			// main body page generic font-size error
			document.write('#homebody table td, #mainbody table td, #mainbody1 table td, #mainbody2 table td , #mainbody3 table td, #mainbody4 table td , label {font-size:medium;}');
			
			// adminmain and main page
			document.write('.welcome input.button {width:120px;}');

			// footer
			document.write('#service {font-size:medium;}');
			
			// browse page
			document.write('th.browse {font-size:medium;font-weight:bold;}');
			
			// menu tabs - multiple pages
			document.write('div.sm, div.smon, div.smnull  {width:73px;height:28px;}');


		document.write('</style>');
	}

	
	if (is_safari) {
		document.write('<style>');
		
			//fixes for base font size errors
			document.write('body {font-size:medium;font-size:1.0em;}');
			document.write('th, td, tr {font-size:medium;font-size:1.1em}');
		
		document.write('</style>');
	
	}

	else if (!document.all) {
		document.write('<style>');
		document.write('body {font-size:medium;font-size:1.1em;line-height:1.2em;}}');
		document.write('table, th, td, select, p, div, span, input {font-size:medium;}');
		document.write('th.label, label {text-align:left;}');
		document.write('#cornerimg {right:53px;}');

			document.write('label, th.labelcheck, table.browse th, table.browse td, td.recordtotal, table.list th, table.list td, #main, th.leftfield, .rightfield, table.checklist th.col, table.detail td.item, #detailmandatory,table.search th.item, table.search .leftfield, table.search .rightfield, table.search td a,  table.regis th, table.regis td, .itemselect, table.search .download, .downloadtitle {font-size:medium;}');
			document.write('th.regsubhead, td.label {font-size:1.3em; line-height:1.5em;}');		
			document.write('input.button {font-size:medium; line-height:1.0em;}');
			document.write('#addnew {font-size:1.0em; line-height:1.0em;}');
			document.write('#detailheader {height:1.2em;}');
			//document.write('.itemselect select, .itemselect input.button {font-size:1.0em; }');
			//document.write('.rightfield select {font-size:0.8em; }');

			// login page
			document.write('table.login td, table.login th {font-size:medium;padding-left:10px;}');
			
			// error page
			document.write('table.error td, table.error th {font-size:medium;padding-left:10px;}');

			// forgotten password page
			document.write('table.forgot td, table.forgot th {font-size:medium;padding-left:10px;}');

			// main body page generic font-size error
			document.write('#homebody table td, #mainbody table td, #mainbody1 table td, #mainbody2 table td , #mainbody3 table td, #mainbody4 table td , label {font-size:medium;}');
			
			// adminmain and main page
			document.write('.welcome input.button {width:145px;}');

			// footer
			document.write('#service {font-size:medium;}');
			
			// browse page
			document.write('th.browse {font-size:medium;font-weight:bold;}');
			
			// menu tabs - multiple pages
			document.write('div.sm, div.smon, div.smnull  {width:73px;height:28px;font-size:x-small;line-height:1.0em;}');
			
			// input fields
			document.write('input.text, input.textsml, input.textmed, input.textlarge {margin:0px;padding:0px;height:1.5em;line-height:1.0em;}');

		document.write('</style>');
	}
}



// controls for search menu

function goURL(newURL) {
	document.location.href=newURL;
}

function doStyle (smi,evt) {
	
	if (evt == 'over') {
		// change the values below for the onMouseover event
		// these control the cursor state, background and on-state colors for the layer
		var strCursor = 'hand';
		var strBGColor = '#CE9DC7';
		var strColor = '#000000';
	}
	
	else if (evt == 'out') {
		// change the values below for the onMouseout event
		// these control the cursor state, background and on-state colors for the layer
		var strCursor = 'default';
		var strBGColor = '#d7d7d7';
		var strColor = '#dddddd';
	}

	//******	NO NEED TO EDIT BELOW THIS LINE	 ******

	if (document.all) {
		// IE-specific DOM
		var obj = document.all(smi).style;
	}
	
	else {
		// W3C DOM
		var obj = document.getElementById(smi).style;
	}

	obj.cursor = strCursor;
	obj.backgroundColor = strBGColor;
	obj.color = strColor;
}


function checkemail(emailtext) 
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailtext))
	{
		return (true);
	}
	return (false);
}

/*function checkemail(emailtext){
	var str=emailtext;
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i ;
	if (filter.test(str))
		return true;
	else
		//alert("Please input a valid email address!");
	
	return false;
}
*/


function funcHighBandPopUp(as_HBUrl)
	{
		var ls_HBUrl;
		ls_HBUrl = as_HBUrl;
		window.open(ls_HBUrl,'TeachreShare','width=400;height=400;');
	}

-->

