function xLateUrl(aCollection, sProp) {
// Замена префиксов в url
  var i = 0;
  for(i = 0; i < aCollection.length; i++)
  aCollection[i][sProp] = aCollection[i][sProp].replace(/.+\/go\.php\//i,'');
}

function chl(){
	if (document.links)  xLateUrl(document.links, "href");
}

function hs(id){
	if(document.getElementById(id).style.display!='block'){
		document.getElementById(id).style.display='block';
		document.getElementById(id + 'i').src='/i/minus.gif';
	}
	else {
		document.getElementById(id).style.display='none';
		document.getElementById(id + 'i').src='/i/plus.gif';
	}
}

function addf(){
	window.external.AddFavorite(location.href,document.title);
}

function checkform (form) {
  if (form["query"].value == "") {
    alert("Пожалуйста, введите запрос для поиска");
    form["query"].focus();
    return false ; }
 return true; }

 function cl_search(inp){
 	if(inp.value == "Поиск по сайту..."){
 		inp.value="";
 		inp.style.color="black";
 	}
 }