
//if (location.href.search('itays') >=0) alert(document.body.id);
if (document.body.id == "page_results") {
	
  var tds = document.getElementsByTagName("td");
  for (var td = 0;td < tds.length;td++) {
    if (tds[td].getAttribute("name") == "td_f6") { // date
        tds[td].style.width = "65px";
        tds[td].style.padding = "0px 2px 0px 2px";
    }
  }
  // hide buttons if iframe
  if (window.name == "articles") {
    document.search_form.skin.value="";
    document.form1.skin.value="";
    var buttons_td = document.getElementById("next_prev_td");
    if (buttons_td) {
      buttons_td.parentNode.parentNode.parentNode.style.display = "none";
    }
  }
 
}

if (document.body.id == "sform") {
  var form = document.form1;
  var sortSelect = form.elements['sort'];
  if (sortSelect.value == "") {
    sortSelect.value = "f6";
    form.revsort.checked = true;
  }
}
else if (document.body.id == "page_show") {
	
	
}

