	var invalidCharacters = new Array('&amp;','&#187;','&#149;');
	var validCharacters = new Array('&',' ',' ');
		
	String.prototype.replacecharacters = replace_characters;
		
	function tdswap() {
	
		try {
			cells = document.getElementsByTagName("TD");
	
			for(i=0; i< cells.length; i++) {
				
				if(cells[i].getAttribute("hclass")) {
					
					td = new Object();
					
					td = cells[i]
					
					td.cls = cells[i].className;
					td.hcls = cells[i].getAttribute("hclass");
					td.dcls = cells[i].getAttribute("dclass");	
					td.u = cells[i].getAttribute("href");
					td.tip = cells[i].getAttribute("tip");
					td.txt = cells[i].innerHTML;
					
					td.onmouseover = switchclassover;
					td.onmouseout = switchclassout;
					td.onclick = gotourl;
					td.onmousedown = switchclassdown;
					td.onmouseup = switchclassover;
					

				} //end if
			} //end for
				
		} catch(e) {
		
		}//end try
	} //end init
	
	function switchclassover() {
		this.className = this.hcls;
		
		if(this.tip!=null) {
			overlib(ToolTips[0],FIXX,190,OFFSETY,-7,CAPTION,this.txt,AUTOSTATUSCAP);
		}
		
	}
	
	function switchclassout() {
		this.className = this.cls;
		window.status='';

		if(this.tip!='') {
			nd();
		}		
		
	}

	function switchclassdown() {
		this.className = this.dcls;
	}
				
	function gotourl() {
		location.href = this.u;
	}
	

		
	function replace_characters() {
		
		val = this;
		valwords = val.split(/\s+/g); 
		
		for(n=0; n < invalidCharacters.length; n++) {
			for(z=0; z < valwords.length; z++) {
				val = val.replace(invalidCharacters[n],validCharacters[n]);	
			}
			
		}
		
		return val;
	}
