function form_reset(form_name)
{
  for (var i=0;i<form_name.length;i++)
  {  	if(form_name.elements[i].type=="checkbox")
  	{
  	  if (form_name.elements[i].checked)
  	  {        form_name.elements[i].click();  	  }
  	  continue;  	}
  	if(form_name.elements[i].type=="select-one")
  	{
      form_name.elements[i].selectedIndex=0;
      form_name.elements[i].options[0].selectedIndex=true;
  	  continue;
  	}
  }
  return false;
}

function confirmation_(href_val_par,text)
{
  var flag
  flag=confirm(text)
  if (flag)
  {
    window.location.href=href_val_par;
  }
}

function getObject(obj)
{
  var theObj
  if (document.layers)
  {
    if (typeof obj == "string") return document.layers[obj]
    else return obj
  }
  if (document.all)
  {
    if (typeof obj == "string")
    {
      if (document.all(obj)!=null) return document.all(obj).style;
      else return null;
    }
    else return obj.style
  }
  if (document.getElementById)
  {
    if (typeof obj == "string")
      return document.getElementById(obj).style
    else return obj.style
  }
  return null
}

function show(obj)
{
  var theObj=getObject(obj);
  if (typeof theObj.visibility != "undefined")
     theObj.visibility = "visible"
  if (typeof theObj.display != "undefined") theObj.display = "block"
}

function hide(obj)
{
  var theObj=getObject(obj)
  if (typeof theObj.visibility != "undefined")
     theObj.visibility = "hidden"
  if (typeof theObj.display != "undefined") theObj.display = "none"
}

function add_to_favourites(press_ctrl_d,favourites_url,title)
{
  if(window.navigator.appName=='Netscape')
  {
      alert(press_ctrl_d);
  }else{
      window.external.addFavorite(favourites_url,title);
  }
  return false;
}

