// these are functions that need to appear on every pagefunction validateEmail() {	var e = document.getElementById("newsletter_email").value;	if (e == "") {		alert("Please enter an email address in the field provided!");		return false;	} else if (e.indexOf("@") == -1 || e.indexOf(".") == -1) {		alert("Please enter a valid email address in the field provided!");		return false;	} else {		return true;	}	}function address(which) {	document.getElementById("addresses").className = "sel_" + which;}//leaving the senate servers so we have to display this message://function openWin(urlToOpen) {//	window.open(site_webroot + "redirect/?r=" + encodeURIComponent(location.hostname) + "&u=" + encodeURIComponent(urlToOpen));//}//leaving the senate servers so we have to display this message:function openWin(urlToOpen) {	window.open("http://www.senate.gov/cgi-bin/exitmsg?url=" + urlToOpen);	}//leaving the current site, but staying on senate servers.function openSenateWin(urlToOpen) {	window.open(urlToOpen);	}//used throughout the site to show link descriptions in the status bar instead of javascript window.opens.function showLinkDescription(linkDesc) {	//alert("linkDesc:" + linkDesc);	window.status="hello there";		//alert(window.status);		}//called on mouse out to clear the status bar.function clearStatus() {		window.status="";		}function search() {		document.getElementById("supra_nav_links").style.display = "none";		document.getElementById("supra_nav_search").style.display = "";		document.getElementById("search_terms").focus();	}		function validateSearch() {		if (document.getElementById("search_terms").value != "") {			return true;		} else {			return false;		}	}		function hideSearch() {		document.getElementById("supra_nav_search").style.display = "none";		document.getElementById("supra_nav_links").style.display = "";	}	//font size functionsvar currentSize = 1;var textIncrease = null; var textDecrease = null;function SetCookie( name, value, expires, path, domain, secure ){var today = new Date();today.setTime( today.getTime() );if ( expires ){expires = expires * 1000 * 60 * 60 * 24;}var expires_date = new Date( today.getTime() + (expires) );document.cookie = name + "=" +escape( value ) +( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +( ( path ) ? ";path=" + path : "" ) +( ( domain ) ? ";domain=" + domain : "" ) +( ( secure ) ? ";secure" : "" );}// this function gets the cookie, if it existsfunction Get_Cookie( name ) {	var start = document.cookie.indexOf( name + "=" );	var len = start + name.length + 1;	if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {	return null;	}	if ( start == -1 ) return null;	var end = document.cookie.indexOf( ";", len );	if ( end == -1 ) end = document.cookie.length; 	return unescape( document.cookie.substring( len, end ) );}function CE_FixIE6(which) {	document.getElementById("font_select").style.cssText = "background-position:0px 0px";	document.getElementById("font_select_med").style.cssText = "background-position:0px 0px";	document.getElementById("font_select_large").style.cssText = "background-position:0px 0px";	if (which == "") {		document.getElementById("font_select").style.cssText = "background-position:0px -14px";	} else {		document.getElementById("font_select_" + which).style.cssText = "background-position:0px -14px";	}}function CE_SetPageFont(which) {	document.body.className = "body_" + which;		document.getElementById("font-resizer").className = which;	document.getElementById("font-resizer").setAttribute("className", which);	// IE6 hack	if (document.all && !window.XMLHttpRequest) {		CE_FixIE6(which);	}	var domain = site_webroot.substring(site_webroot.indexOf("http://") + 7, site_webroot.length - 1);	SetCookie("font_size", which, 1, "/");	window.location.href = window.location.href;}function CE_LoadPageFont() {	if(Get_Cookie("font_size")) {		fs = Get_Cookie("font_size");		document.body.className = "body_" + fs;		document.getElementById("font-resizer").className = fs;				// IE6 hack		if (document.all && !window.XMLHttpRequest) {			CE_FixIE6(fs);		}	}}/* language selector */window.addEvent("domready", function() {	if (Browser.Engine.trident) {		var nav_ul = $("nav").getElement("ul");		var lis = nav_ul.getElements("li");		$each(lis, function(li) {			if ($chk(li.id) && li.id.indexOf("nav-") != -1) {				li.addEvents({					"mouseover": function() {						this.addClass("over");					},					"mouseout": function () {						this.removeClass("over");					}				});			}		});	}	$("lang-select-link").removeEvents("click");	$("lang-select-link").addEvent("click", function(e) {		var event = new Event(e);		event.stop();		var c = null;		var lang = Cookie.read("LANGUAGE");		Cookie.dispose("LANGUAGE");		if (!$chk(lang) || lang == "en") {			c = Cookie.write("LANGUAGE", "es", {				path: "/",				duration: 365			});		} else {			c = Cookie.write("LANGUAGE", "en", {				path: "/",				duration: 365			});		}		window.location.href = window.location.href;	});});