// TABNAV	function changeto(highlightcolor){		source=event.srcElement		if (source.tagName=="TR"||source.tagName=="TABLE")		return		while(source.tagName!="TD")		source=source.parentElement		if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")		source.style.backgroundColor=highlightcolor}	function changeback(originalcolor){		if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")		return		if (event.toElement!=source)		source.style.backgroundColor=originalcolor}// BAYER LINKS	function bayernavover(imgname){		imgname.src = "http://www.baycareonline.net/images/arrow_blue.gif"}	function bayernavout(imgname){		imgname.src = "http://www.baycareonline.net/images/arrow_clear.gif"}// LEFTNAV LINKS	function leftnavover(imgname){		imgname.src = "http://www.baycareonline.net/images/arrow_blueblock.gif"}	function leftnavout(imgname){		imgname.src = "http://www.baycareonline.net/images/arrow_clearblock.gif"}// OTHER LINK BEHAVIORS    function imgover(imgname){		imgname.src = "http://www.baycareonline.net/images/top_arrow_on.gif"	}	function imgout(imgname){		imgname.src = "http://www.baycareonline.net/images/top_arrow_off.gif"	}	function imgover2(imgname){		imgname.src = "http://www.baycareonline.net/images/left_arrow_on.jpg"	}	function imgout2(imgname){		imgname.src = "http://www.baycareonline.net/images/left_arrow_off.jpg"	}	function imgover2b(imgname){		imgname.src = "http://www.baycareonline.net/images/sub_arrow_on.gif"	}	function imgout2b(imgname){		imgname.src = "http://www.baycareonline.net/images/sub_arrow_off.gif"	}	function imgover3(imgname){		imgname.src = "http://www.baycareonline.net/images/page_tool_print_ov.jpg"	}	function imgout3(imgname){		imgname.src = "http://www.baycareonline.net/images/page_tool_print_df.jpg"	}	function imgover4(imgname){		imgname.src = "http://www.baycareonline.net/images/page_tool_email_ov.jpg"	}	function imgout4(imgname){		imgname.src = "http://www.baycareonline.net/images/page_tool_email_df.jpg"	}	function imgover5(imgname){		imgname.src = "http://www.baycareonline.net/images/page_tool_top_ov.jpg"	}	function imgout5(imgname){		imgname.src = "http://www.baycareonline.net/images/page_tool_top_df.jpg"	}	function Buildmail(name,domain1,domain2){   		var prefix ='mai'+'lto:';   		var at='@';   		var url= prefix+name+at+domain1+'.'+domain2;   		document.location.href=eval('"'+url+'"');   		window.status=url;   }// MISC	function clearDefault(el) {  		if (el.defaultValue==el.value) el.value = ""	}	function NewWindow(mypage, myname, w, h, scroll) {    	var winl = (screen.width - w) / 2;    	var wint = (screen.height - h) / 2;    	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll    	win = window.open(mypage, myname, winprops)    	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }    }    	    function ShowHide(nr)    {        if(document.getElementById(nr).style.display=="none")        {            document.getElementById(nr).style.display=''  ;        }        else        {            document.getElementById(nr).style.display="none";        }    }        function ValidComment(){        if (document.frm.name.value=="") {        	alert("Please enter your name.")        	document.frm.name.focus()        return false }        if (document.frm.email.value=="") {        	alert("Please enter your e-mail address ONLY if you want a response to your comment.")        	document.frm.email.focus()        return false }        if (document.frm.comment.value=="") {        	alert("Please enter your comment.")        	document.frm.comment.focus()        return false }    }        function ValidateSendEmail(){        if (document.frm.email.value=="") {        	alert("Please enter an e-mail address for the recipient of your message.")        	document.frm.email.focus()        return false }        if (document.frm.msg.value=="") {        	alert("Please enter your message.")        	document.frm.msg.focus()        return false }    }    function taLimit() {    	var taObj=event.srcElement;    	if (taObj.value.length==255*1) return false;    }        function taCount(visCnt) {     	var taObj=event.srcElement;    	if (taObj.value.length>255*1) taObj.value=taObj.value.substring(0,255*1);    	if (visCnt) visCnt.innerText=255-taObj.value.length;    }	function ValidateUpload(){		if (document.frm.FILE1.value=="") {			alert("Please select an image from your local hard drive.")			document.frm.FILE1.focus()		return false }	}    function show(object) {    	if (document.layers && document.layers[object] != null)    	    document.layers[object].visibility = 'visible';    	else if (document.all)    	    document.all[object].style.visibility = 'visible';    }    function hide(object) {    	if (document.layers && document.layers[object] != null)    	    document.layers[object].visibility = 'hidden';    	else if (document.all)    	    document.all[object].style.visibility = 'hidden';    }// VALIDATE ADD & EDIT USER        function ValidateUserEdit(){        if (document.frm.name.value=="") {        	alert("Please enter username.")        	document.frm.name.focus()        return false }        if (document.frm.password.value=="") {        	alert("Please enter desired password.")        	document.frm.password.focus()        return false }        if (document.frm.email.value=="") {        	alert("Please enter user's e-mail address.")        	document.frm.email.focus()        return false }    }    // VALIDATE ADD    function ValidateUser(){        if (document.frm.email.value=="") {        	alert("Please enter your e-mail address.")        	document.frm.email.focus()        return false }		        if (document.frm.username.value=="") {        	alert("Please enter desired username; must be between 4 and 25 characters.")        	document.frm.username.focus()        return false }        if (document.frm.password.value=="") {        	alert("Please enter desired password; must be between 4 and 25 characters.")        	document.frm.password.focus()        return false }        if (document.frm.name.value=="") {        	alert("Please enter your company name.")        	document.frm.name.focus()        return false }		    }// VALIDATE URL     function ValidateURL(URL){    	if (document.frm.url.value=="") {    		alert("The website URL is empty.")    		document.frm.url.focus()    	return false     	} else {    		window.open(URL)    		return true    	}    }    // VALIDATE LOGIN FORM    function ValidateReminder(){        if (document.frm.email.value=="") {        	alert("Please enter your e-mail address.")        	document.frm.email.focus()        return false }    }        // VALIDATE LOGIN FORM    function ValidateLogin(){        if (document.frm.username.value=="") {        	alert("Please enter your username.")        	document.frm.username.focus()        return false }        if (document.frm.password.value=="") {        	alert("Please enter your password.")        	document.frm.password.focus()        return false }    }    