	function replaceChars(entry)
	{
		out = "'"; // replace this
		add = ""; // with this
		temp = "" + entry; // temporary holder
		
		while (temp.indexOf(out)>-1) 
		{
			pos= temp.indexOf(out);
			temp = "" + (temp.substring(0, pos) + add + 
			temp.substring((pos + out.length), temp.length));
		}
		

		
		return temp;
	}
	
	function search(term)
	{
		var trm = replaceChars(term);
		window.open("http://terrymadden.com/cgi-bin/search/search.pl?p=1&lang=en&include=&exclude=&penalty=0&mode=all&q=" + trm + "", "search");
	}	