        NewTax = new Image();
	NewTax.src ="images/SearchTaxRecordsB.gif";
	OldTax = new Image();
	OldTax.src ="images/SearchTaxRecords.gif";
	

	function swapimg(strNew) {
		
		image = eval(strNew + ".src");
		eval("document.OldTax.src = " + strNew + ".src");
		}




/* Checks if the object exists */

	function findObject(n) { 
		var x;
		var NS4 = (document.layers) ? true : false;
		var NS6 = (document.getElementById && !document.all) ? true : false;
		if (!NS6) {
			if(!(x = document[n]) && document.all) 
				x = document.all[n]; 	}
		else	{
			x = document.getElementById(n);	}
		return x;
		}


/* Hide or show a menu  */

	function menu(strMenu, strVisible) { 
		var obj;
		
		if ((obj=findObject(strMenu))!=null)   { 
			if (obj.style) { 
			      	obj=obj.style; 
				strVisible=(strVisible=='show')?'visible':(strVisible=='hide')?'hidden':strVisible; }
			obj.visibility=strVisible;  }
		
		if (strMenu == "TaxRecordMenu" && strVisible == "hidden") {
			swapimg('OldTax') }			
		
		if (strMenu == "TaxRecordMenu" && strVisible == "visible") {
			swapimg('NewTax') }	
		}


/* Hides every menu */

	function closemenus(s) {
		var m;
		m = s.split(',');

		for (i = 0; i<m.length; i++)	{
			menu(m[i],'hide');	}
		}

	function tbOnError(error_msg) {
		alert(error_msg);
		return false;																
					}

		
								
	

/* Check to see they entered an Appeal Number */
	function CheckAppealNumber(tbthis) {
		if (HasValue(tbthis.AppealNumber)) { 
			return true; }
		else 	{
		
			tbOnError("Appeal Number Must Be Entered")
			}
		return false;				
					}


