
// **** Email hiding below written by Joshua Kalis
function Email() {
	var fullLink = '<a href="mailto:' + String( Email.arguments[0] ) + '@' + String( Email.arguments[1] ) + '">' + String( Email.arguments[2]? Email.arguments[2]: Email.arguments[0] + "@" + Email.arguments[1] ) + '</a>';
	var output = 'document.write(String.fromCharCode(';
	for( i = 0; i < fullLink.length; i++) {
		output += fullLink.charCodeAt( i ); // **** add character code to list of codes
		if( ( i + 1 ) != fullLink.length ) output += ', '; // **** make sure this is not the last code for the list
	}
	output += '));';
	eval( output );
}
// **** Email hiding above written by Joshua Kalis

// **** initForm 
function initForm() {
	lbls = document.getElementsByTagName( "LABEL" );
	for( i = 0; i < lbls.length; i ++ ) {
		// add hidden character to non-required labels so they all line up at the ":"s
		lbls[i].innerHTML = lbls[i].innerHTML.replace( /:\s*$/, ":<span style=\"visibility:hidden;\">_<\/span>" );
	}
	tars = document.getElementsByTagName( "TEXTAREA" );
	for( i = 0; i < tars.length; i++ ) {
		tars[i].onkeyup = updateTARS;
		tars[i].onkeyup();
	}
	selc = document.getElementsByTagName( "SELECT" );
	for( s = 0; s < selc.length; s++ ) {
		if( selc[s].className.indexOf( "countLimit" ) > -1 ) {
			selc[s].onchange = updateCountLimit;
			selc[s].onchange();
		}
	}
}
// **** initForm


// **** initialize the window **** keeps this last ****
window.onload = function() {
	initForm();
	
	temp = document.getElementById( "mmenu" ).getElementsByTagName( "A" );
	
	for( var i = 0 ; i < temp.length; i++ ) {
		if( temp[i].href == document.location ) { temp[i].className = "active"; }
	}
	
}
// **** initialize the window **** keeps this last ****
