<!--
var BrowserType = "na";
if(document.all) { BrowserType="IE"  }
if(!document.all && document.getElementById) { BrowserType="NN6" } // what is Netscape smoking????


function CheckRadio(IDVal) {

		if (BrowserType == "na") { return }
		var e = document.getElementById(IDVal);
		if (e) {		
			e.checked = true;
		}				
	}
	
function CheckChecker(IDVal) {

		if (BrowserType == "na" || BrowserType == "NN6") { return }
		if (event.srcElement.tagName == 'INPUT') { return }
		var e = document.getElementById(IDVal);
		if (e) {				
			if (e.checked) {e.checked = false}
				else {e.checked = true }
		}				
	}	
	
	function SumResponses(EList) {
		var Sum = 0;
		var Num = 0;
		var TNum = '';
		var c = '';
		var GoodNums = '1234567890.';
		
		var FrmEl;
		spT = EList.split(',')
		for (var i=0; i < spT.length; i++) {
			TNum = '';
			FrmEl = eval('document.frmSE.' + spT[i]);
			// clean the value
			for (var x=0; x < FrmEl.value.length; x++) {
				c = FrmEl.value.charAt(x);
				if (GoodNums.indexOf(c) > -1) { TNum = TNum + c }
				}
			// make sure we've got a value
			if (TNum.length <= 0) {TNum = '0' }
			// convert to a number
			Num = parseFloat(TNum);
			// Sum it
			Sum = Sum + Num;			
			}
		// Set the sum
		document.frmSE.CurrentSum.value = formatNumber(Sum);				
	
	}
	
function formatNumber( num ) { 
	var isNegative = false; 
	num = num.toString().replace(/\\$|\\,/g,''); 
	if( isNaN( num ) ) { 
	num = "0"; 
	} 
	if ( num < 0 ) { 
	num = Math.abs( num ); 
	isNegative = true; 
	} 
	cents = Math.floor( ( num * 100 + 0.5 ) % 100 ); 
	num = Math.floor( ( num * 100 + 0.5 ) / 100 ).toString(); 
	if ( cents == 0 ) { cents = -1 }
	if ( cents < 10 && cents != -1 ) { cents = "0" + cents; } 
	if ( cents == -1 ) { cents = '' }
	for ( i = 0; i < Math.floor( ( num.length - ( 1 + i ) ) / 3 ); i++) { 
	num = num.substring( 0 ,num.length - ( 4 * i + 3 ) ) + ',' + num.substring( num.length - ( 4 * i + 3 ) ); 
	} 

	var result = num
	if ( cents != '' ) { result = result + '.' + cents; }
	if ( isNegative ) { 
	result = "-" + result; 
	} 
	return result; 
} 		

function OpenWin(Link, W, H) {
		window.open(Link, 'PrintPage', 'width=' + W + ',height=' + H + ',directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=10,left=10')
	}	
	
function Mark_A_Row_Red(RowID) {

	var e;
	var j;
	
	e = document.getElementById(RowID);
	// loop through the child cells of the row and mark them red with white text	
	for (j=0; j<e.childNodes.length; j++) 
	{
		try
		{
			e.childNodes[j].style.backgroundColor = '#BF5959';
			e.childNodes[j].style.color = '#FFFFFF';
		}
		catch(err)
		{
		}
	}

}

function Mark_A_Row_White(RowID) {

	var e;
	var j;
	
	e = document.getElementById(RowID);
	// loop through the child cells of the row and mark them red with white text	
	for (j=0; j<e.childNodes.length; j++) 
	{
		try
		{
			e.childNodes[j].style.backgroundColor = '#FFFFFF';
			e.childNodes[j].style.color = '#000000';
		}
		catch(err)
		{
		}
	}

}
	
	
	// -->