function newImage(arg) {	if (document.images) {		rslt = new Image();		rslt.src = arg;		return rslt;	}}function changeImages() {	if (document.images && (preloadFlag == true)) {		for (var i=0; i<changeImages.arguments.length; i+=2) {			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];		}	}}var preloadFlag = false;function preloadImages() {	if (document.images) {		gnav_site_map_over = newImage("/images/gnav_site_map-over.gif");		gnav_contact_over = newImage("/images/gnav_contact-over.gif");		gnav_emergency_over = newImage("/images/gnav_emergency-over.gif");		gnav_home_over = newImage("/images/gnav_home-over.gif");		gnav_about_over = newImage("/images/gnav_about-over.gif");		gnav_client_over = newImage("/images/gnav_client-over.gif");		gnav_news_over = newImage("/images/gnav_news-over.gif");		gnav_support_over = newImage("/images/gnav_support-over.gif");		gnav_resources_over = newImage("/images/gnav_resources-over.gif");		gnav_calendar_over = newImage("/images/gnav_calendar-over.gif");		gnav_roll_about_over = newImage("/images/gnav_roll_about_over.gif");		gnav_roll_client_over = newImage("/images/gnav_roll_client_over.gif");		gnav_roll_news_over = newImage("/images/gnav_roll_news_over.gif");		gnav_roll_support_over = newImage("/images/gnav_roll_support_over.gif");		gnav_roll_resources_over = newImage("/images/gnav_roll_resources_over.gif");		gnav_roll_calendar_over = newImage("/images/gnav_roll_calendar_over.gif");		preloadFlag = true;	}}function preloadImages_About() {	if (document.images) {		aboutus_sub_mission_over = newImage("/images/aboutus_sub_mission-over.gif");		aboutus_sub_history_over = newImage("/images/aboutus_sub_history-over.gif");		aboutus_sub_board_over = newImage("/images/aboutus_sub_board-over.gif");		aboutus_sub_key_over = newImage("/images/aboutus_sub_key-over.gif");		aboutus_sub_jobs_over = newImage("/images/aboutus_sub_jobs-over.gif");		aboutus_sub_faqs_over = newImage("/images/aboutus_sub_faqs-over.gif");		aboutus_sub_annual_over = newImage("/images/aboutus_sub_annual-over.gif");		aboutus_sub_funding_over = newImage("/images/aboutus_sub_funding-over.gif");		preloadFlag = true;	}}function preloadImages_Support() {	if (document.images) {		support_sub_donations_over = newImage("/images/support_sub_donations-over.gif");		support_sub_fund_over = newImage("/images/support_sub_fund-over.gif");		support_sub_corporate_over = newImage("/images/support_sub_corporate-over.gif");		support_sub_volunteer_over = newImage("/images/support_sub_volunteer-over.gif");		preloadFlag = true;	}}function preloadImages_Client() {	if (document.images) {		client_sub_asian_over = newImage("/images/client_sub_asian-over.gif");		client_sub_community_over = newImage("/images/client_sub_community-over.gif");		client_sub_consumer_over = newImage("/images/client_sub_consumer-over.gif");		client_sub_employment_over = newImage("/images/client_sub_employment-over.gif");		client_sub_family_over = newImage("/images/client_sub_family-over.gif");		client_sub_govt_over = newImage("/images/client_sub_govt-over.gif");		client_sub_housing_over = newImage("/images/client_sub_housing-over.gif");		client_sub_immigration_over = newImage("/images/client_sub_immigration-over.gif");		client_sub_santa_over = newImage("/images/client_sub_santa-over.gif");		client_sub_special_over = newImage("/images/client_sub_special-over.gif");		preloadFlag = true;	}}function preloadImages_News() {	if (document.images) {		news_sub_latest_over = newImage("/images/news_sub_latest-over.gif");		news_sub_from_over = newImage("/images/news_sub_from-over.gif");		news_sub_lafla_over = newImage("/images/news_sub_lafla-over.gif");		news_sub_newsletter_over = newImage("/images/news_sub_newsletter-over.gif");		news_sub_press_over = newImage("/images/news_sub_press-over.gif");		news_sub_in_over = newImage("/images/news_sub_in-over.gif");		news_sub_info_over = newImage("/images/news_sub_info-over.gif");		preloadFlag = true;	}}//open window scriptfunction makeWindow(url) {  logonWindow=window.open("","logonwin","width=540,height=500,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");        logonWindow.location.href=url                if(logonWindow.opener == null) logonWindow.opener = window;        logonWindow.opener.name = "opener";   }//off site windowfunction offSite(url) { logonWindow=window.open("","logonwin","width=400,height=400,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");        logonWindow.location.href=url                if(logonWindow.opener == null) logonWindow.opener = window;        logonWindow.opener.name = "opener";   }function goThere(z) {	location = z}function checkDate() {	var x = document.forms.dat.month	var month = x.options[x.selectedIndex].value	var y = document.forms.dat.day	var day = y.options[y.selectedIndex].value		var z = document.forms.dat.year	var year = z.options[z.selectedIndex].value		if (month == 0 || year == 0) {		alert("For a date search please enter a month and year.")		document.forms.dat.month.focus();		return false;	} else {		document.forms.dat.submit();	}}function checkUnit() {	var t = document.forms.lsu.SValue	var unit = t.options[t.selectedIndex].value		if (unit == 0) {		alert("For a LSU search please select a LSU.")		t.focus();		return false;	} else {		document.forms.lsu.submit();	}}function checkCategory() {	var t = document.forms.category.SValue	var unit = t.options[t.selectedIndex].value		if (unit == 0) {		alert("For a Category search please select a Category.")		t.focus();		return false;	} else {		document.forms.category.submit();	}}function checkLocation() {	var t = document.forms.location.SValue	var unit = t.options[t.selectedIndex].value		if (unit == 0) {		alert("For a Location search please select a Location.")		t.focus();		return false;	} else {		document.forms.location.submit();	}}function validate(theForm) {	badChar = new Array(5)	badChar[0] = "'"	badChar[1] = "@"	badChar[2] = "#"	badChar[3] = "$"	badChar[4] = "%"	badChar[5] = "^"	badChar[6] = "&"	badChar[7] = "*"	badChar[8] = "?"	badChar[9] = '"'	var n = 0	var x = document.forms[theForm]	var t = x.SValue.value	for (var i = 0; i < 10; i++) {		if (t.indexOf(badChar[i]) != -1 ) {			alert("Special characters are not allowed in text searches. Please enter text only.")			x.SValue.value = ""			x.SValue.focus();			var n = 1			break;		}	}	if (n==0) {		document.forms[theForm].submit();	}}