var checkflag = "false";function check(field) {	if (checkflag == "false")	{		for (i = 0; i < field.length; i++)		{			field[i].checked = true;		}		checkflag = "true";		return "Uncheck All"; 	}else{		for (i = 0; i < field.length; i++)		{			field[i].checked = false;		}		checkflag = "false";		return "Check All";	}}function confirm_do(){	var confirmed = confirm("Are you sure you want to do that?");	if(confirmed)	{		return true;	}else{		return false;	}}function check_form(error, get_field){	if(get_field=="")	{		alert(error);			return false;	}else{		return true;	}}/*validate the contact form*/function  validate_contact(){	if(document.contact.name.value!="")	{		var email_reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;		if(email_reg.test(document.contact.email.value))		{			if(document.contact.body_txt.value!="")			{									return true;			}else{				alert("Please enter content");				return false;			}		}else{			alert("Please enter a real email");			return false;		}	}else{		alert("Please enter your name");		return false;	}			}		/*this will get the style attributes of a css element - ussualyl a div or span */function getStyleObject(objectId) {    // cross-browser function to get an object's style object given its    if(document.getElementById && document.getElementById(objectId)) {	// W3C DOM	return document.getElementById(objectId).style;    } else if (document.all && document.all(objectId)) {	// MSIE 4 DOM	return document.all(objectId).style;    } else if (document.layers && document.layers[objectId]) {	// NN 4 DOM.. note: this won't find nested layers	return document.layers[objectId];    } else {	return false;    }} // getStyleObject      function load_admin(div, url_in){	height = document.getElementById(div).offsetHeight + 100 + 'px';	var url = url_in + '&height=' + height;	window.location.href = url;}			/* Nav Hack for IE */function startList() {	if(document.all && document.getElementById)	{		navRoot = document.getElementById("nav");		for (i=0; i<navRoot.childNodes.length; i++)		{			node = navRoot.childNodes[i];			if (node.nodeName=="LI")			{				node.onmouseover=function()				{					this.className+=" over";				}				node.onmouseout=function()				{					this.className=this.className.replace					(" over", "");			 	}			}		}	}}/* End Nav Hack for IE *//*preload images function*/var preloaded = new Array();function preload_images(){    for (var i = 0; i < arguments.length; i++)	{        preloaded[i] = document.createElement('img');        preloaded[i].setAttribute('src',arguments[i]);    };};/*********************************************************************************************************************************************BEGIN HEADLINE ROTATION SET UP*********************************************************************************************************************************************/var the_timeout;var j=2;var k = 1;var timer = null;var headlines_arr = new Array();var headline_loaded=1;/*this function will receive the array and allocate the data*/function make_headline(file){	this.file = file;	this.write = show_headline;}function slide_headline(){  // get the stylesheet  var style_show = getStyleObject('headline_show');  var style_next = getStyleObject('headline_next');   if (style_show)  {	// get the current coordinate and add 5	var current_opac = (style_show.opacity);	var new_opac = current_opac - .04;	style_show.opacity = new_opac;	style_show.filter = 'alpha(opacity=' + new_opac*100 + ')';	if (new_opac >= .04)	{		setTimeout('slide_headline();', 0);	}else{		var len = headlines_arr.length;		if(k >= len)		{			k = 0;		}				if(k+1<len)		{			j=k+1;			}else{			j=0;		}				style_show.opacity = 1;		style_show.filter = 'alpha(opacity=100)';				document.getElementById('headline_show').innerHTML = headlines_arr[k];			document.getElementById('headline_next').innerHTML = headlines_arr[j];				k++;		timer = setTimeout('slide_headline();',6000);	}  }}function pause_headline(){	if (timer != null)	{		clearTimeout(timer);		timer = null;	}}function play_headline(){	if (timer == null)	{		slide_headline();		}else{		slide_headline();		}}/*********************************************************************************************************************************************END HEADLINE ROTATION SET UP*********************************************************************************************************************************************/