function processKeywordSubmit(sid,url)
{ 
	if (document.getElementById(sid) != null)
	{ 
		var sKeyword = document.getElementById(sid).value; 
		if (/[^\w\-\s]/.test(sKeyword) || sKeyword.search(/\S/)==-1 || !url) return true; 
		sKeyword = sKeyword.replace(/-/g, '_-_'); 
		sKeyword = sKeyword.replace(/\s+/g, ' '); 
		sKeyword = sKeyword.replace(/\s/g, '-'); 
		var func = typeof(encodeURIComponent) != "undefined" ? encodeURIComponent : escape; 
		url = url.replace(/TERMS/g, func(sKeyword)); 
		location.href = url; 
		return false; 
	} 
	return true; 
}

function ToggleText(id1,id2)
{
	var tmp=document.getElementById(id1).style.display; 
	document.getElementById(id1).style.display=document.getElementById(id2).style.display; 
	document.getElementById(id2).style.display=tmp;
	return false;
}

function ShowText(d) 
{ 
	if(document.getElementById(d))
	{
		document.getElementById(d).style.display = "inline";
	} 
}

function HideText(d) 
{ 
	if(document.getElementById(d))
	{
		document.getElementById(d).style.display = "none";
	} 
}
