<!--

// Browser detection info for test mode:
//window.alert("Browser Type is: " + navigator.appName + ", Version: " + navigator.appVersion + ", Vendor: " + navigator.vendor + ", OS: " + navigator.platform);

/* Disable the following browser detection script since it is currently not necessary due to the navigator object.  Test message follows:
// window.alert("Browser Type is: " + navigator.appName + ", Version: " + navigator.appVersion + ", Vendor: " + navigator.vendor + ", OS: " + navigator.platform);

// Browser detection script follows.  Reference: http://www.quirksmode.org/js/detect.html
// It works immediately, and you can query three properties of the BrowserDetect object:
//   - Browser name: BrowserDetect.browser
//   - Browser version: BrowserDetect.version
//   - OS name: BrowserDetect.OS

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			   string: navigator.userAgent,
			   subString: "iPhone",
			   identity: "iPhone/iPod"
	    },
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();

End of browser detection script disablement */


// To invoke the following function either:
//   - Add the following line to <script type="text/javascript"> section in <header>: window.onload = frameBuster();
//   Or
//   - Add the following to the <body> tag: onload="frameBuster();" 
function frameBuster() { 
	if (parent.location.href != self.location.href) 
		parent.location.href = self.location.href;
	// Test the preceding vs. following 'if' statement in all leading browsers at time of use and enable/disable accordingly - per results.
	// Will be necessary to update this alogrithm if there is any intention to cover the case where the top level is an iframe and it contains 
	// a frame page to be busted.
	//if (window.top != self.parent) 
	//	window.top.location = self.parent.location; 
} // frameBuster();


function hidediv(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById(id).style.visibility = 'hidden'; 
	} 
	else { 
		if (document.layers) { // Netscape 4 
			eval("document." + id + ".visibility = 'hidden'"); 
		} 
		else { // IE 4 
			eval("document.all." + id + ".style.visibility = 'hidden'"); 
		} 
	} 
}


function showdiv(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById(id).style.visibility = 'visible'; 
	} 
	else { 
		if (document.layers) { // Netscape 4 
			eval("document." + id + ".visibility = 'visible'"); 
			} 
		else { // IE 4 
			eval("document.all." + id + ".style.visibility = 'visible'"); 
		} 
	} 
} 


// Invocation example for the following two functions, hidematchingdivs and showmatchingdivs: 
//	<div id="123a">yadda yadda</div> 
//	<div id="123b">yadda yadda</div> 
//	<div id="456a">yadda yadda</div> 
//	To hide or show only the sufficient number fo commonly matching id characters are necessary to pass as input to the two functions. 
//	<a href="javascript:hidematchingdivs('123')">Hide div 256</a> 
//	<a href="javascript:showmatchingdivs('123')">Show div 256</a> 
//	<a href="javascript:hidematchingdivs('456')">Hide div 512</a> 
//	<a href="javascript:showmatchingdivs('456')">Show div 512</a> 
function hidematchingdivs(id) { 
	var divs = document.getElementsByTagName('div'); 
	for(i=0;i<divs.length;i++){ 
		if(divs[i].id.match(id)) { //if they are 'see' divs 
			if (document.getElementById) // DOM3 = IE5, NS6 
				divs[i].style.visibility = "hidden"; // show/hide 
			else if (document.layers) // Netscape 4 
				document.layers[divs[i]].display = 'hidden'; 
			else // IE 4 
				document.all.divs[i].visibility = 'hidden'; 
		} 
	} 
} 


function showmatchingdivs(id) { 
	var divs = document.getElementsByTagName('div'); 
	for(i=0;i<divs.length;i++){ 
		if(divs[i].id.match(id)){ 
			if (document.getElementById) 
				divs[i].style.visibility = "visible"; 
			else if (document.layers) // Netscape 4 
				document.layers[divs[i]].display = 'visible'; 
			else // IE 4 
				document.all.divs[i].visibility = 'visible'; 
		} 
	} 
} 



// Invocation example for the following showonlymatchingdivs function: 
// 	<div id="first" style="position: absolute; left:10px; top:100px; background-color: #C0C0C0; border: 1px dotted #0000FF; visibility: hidden">first here</div> 
// 	<div id="second" style="position: absolute; left:10px; top:100px; background-color: #C0C0C0; border: 1px dotted #0000FF">second here</div> 
// 	. . .
// 	<a href="javascript:showonlymatchingdivs('first')">show all divs containing 'first' in its id and hide all other divs</a> 
// 	<a href="javascript:showonlymatchingdivs('second')">show all divs containing 'second' in its id and hide all other divs</a>
function showonlymatchingdivs(id) { 
	var divs = document.getElementsByTagName('div'); 
	for(i=0;i<divs.length;i++){ 
		if(divs[i].id.match(id)) { // if they are 'show' divs 
			if (document.getElementById) // DOM3 = IE5, NS6 
				divs[i].style.visibility = "visible";
			else if (document.layers) // Netscape 4 
				document.layers[divs[i]].display = 'visible'; 
			else // IE 4 
				document.all.divs[i].visibility = 'visible'; 
		} 
		else { //if they are 'hide' divs 
			if (document.getElementById) 
					divs[i].style.visibility="hidden"; 
			else if (document.layers) // Netscape 4 
				document.divs[i].visibility = 'hidden'; 
			else // IE 4 
				document.all.divs[i].visibility = 'hidden'; 
		} 
	} 
} 



// Invocation example for the following showhide function:
//	<div style="display: none;" id="content"> 
//	. . . 
// 	<a href="#" onclick="showhideforcurrentbrowsersonly('content'); return(false);">hide again</a>
function showhideelementforcurrentbrowsersonly(id){ 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		obj = document.getElementById(id); 
		if (obj.style.display == "none"){ 
			obj.style.display = ""; 
		} 
		else { 
			obj.style.display = "none"; 
		} 
	} 
} 


// Check to see if input is numeric
function isNumeric(sText) { 
	var ValidChars = "0123456789."; 
	var Char;
	var decimalPointCount = 0;
	for (i = 0; i < sText.length; i++) {
		Char = sText.charAt(i);
		if (ValidChars.indexOf(Char) == -1) {
			return false;
		}
		else {
			if (Char == ".") {
				decimalPointCount++;
			}
		}
	}
	if (decimalPointCount > 1) {
		return false;
	}
	else {
		return true;
	}
}


// Check to see if input is a number
function isNumber(val) {
	if (isNaN(val)) {
		return false;
	}
	else {
		return true;
	} 
}

//-->

