    function convert_It(sString) 
	{
		var a = escape(sString); 
		var b = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ%@#$^&*()-_=+.:"; // letters to compare to 
		var c = "zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA +=_-)(*&^$#@:."; // letter to change string to
		var d;
		var h;
		var i;
		var j = "";

		var f = a.length; // get length of the textbox1 string 
		var e = 0; 
		var g = 1;

		while (e != f) 
		{ // while e is not equal to the string length loop  
			d = a.substring(e,g); // get each letter in the text box 
			h = b.indexOf(d); // find that letter in var b 
			i = c.charAt(h); // change it to the letter in var c 
			e++; // add one to var e 
			g++; // add one to var g 
			j += i; // write out each letter 
		}
		return j; // the final output put in textbox2 
	}


	function unconvert_It(sString) 
	{
		var aa = sString;
		var bb = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ @#$^&*()-_=+.:";
		var cc = "zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA +=_-)(*&^$#@:.";
		var dd;
		var hh;
		var ii;
		var jj = "";

		var ff = aa.length;
		var ee = 0; 
		var gg = 1;

		while (ee != ff) 
		{ 
			dd = aa.substring(ee,gg);
			hh = cc.indexOf(dd); // just switch var b with c to unencode ex(h = b.indexOf(d); now  ='s hh = cc.indexOf(dd);)
			ii = bb.charAt(hh); // just switch var c with b to unencode  
			ee++;
			gg++;
			jj += ii;
		}
		return jj;
	}
	
	function emailAddress(sName, sDomain, sSuffix, sDisplay)
	{
		var sReturn = "<a class=\"body_link\" href=\"#\" onclick=\"sendMail('" + convert_It(sName + "@" + sDomain + "." + sSuffix) +"')\">" +
				sDisplay + "</a>";
		return sReturn;
	}
	
	function sendMail(sAddress)
	{
		location.replace("mailto:" + unconvert_It(sAddress));
	}
	function allow_numeric(obj)
	{
  		if (/[^0-9]/i.test(obj.value))
  		{
			obj.value=obj.value.replace(/[^0-9]/g,'')
			obj.value+=''
			obj.focus()
		}
	}
	//Check the form before submitting
	function CheckForm () {

		//Check for a word to search
		if (document.frmSiteSearch.search.value==""){
			alert("Please enter at least one keyword to search");
			document.frmSiteSearch.search.focus();
			return false;
		}
																
		return true
	}
			