if (top.frames.length!=0) {
    if (window.location.href.replace)
        top.location.replace(self.location.href);
    else
        top.location.href=self.document.href;
}

function cleartextrule(field)
  {
  if (field.defaultValue == field.value) field.value = '';
  }
  function restoretextrule(field) 
  {
     if (field.value == '') {
       field.value = field.defaultValue;
     }
  }

  function openpopup(popurl, w, h){
     newone=window.open(popurl,'','width='+w+',height='+h+',scrollbars,resizable');
     newone.focus() 
     return false;
  }
  
function visi(nr)
{
  if (document.layers)
  {
    vista = (document.layers[nr].visibility == 'hide') ? 'show' : 'hide'
    document.layers[nr].visibility = vista;
  }
  else if (document.all)
  {
    vista = (document.all[nr].style.visibility == 'hidden') ? 'visible'  : 'hidden';
    document.all[nr].style.visibility = vista;
  }
  else if (document.getElementById)
  {
    vista = (document.getElementById(nr).style.visibility == 'hidden') ? 'visible' : 'hidden';
    document.getElementById(nr).style.visibility = vista;

  }
}

function blocking(nr)
{
  if (document.layers)
  {
    current = (document.layers[nr].display == 'none') ? 'block' : 'none';
    document.layers[nr].display = current;
  }
  else if (document.all)
  {
    current = (document.all[nr].style.display == 'none') ? 'block' : 'none';
    document.all[nr].style.display = current;
  }
  else if (document.getElementById)
  {
    vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
    document.getElementById(nr).style.display = vista;
  }
}  



 function styleAbbr() {
  var oldBodyText, newBodyText, reg
  if (isIE) {
    oldBodyText = document.body.innerHTML;
    reg = /<ABBR([^>]*)>([^<]*)<\/ABBR>/g;
    newBodyText = oldBodyText.replace(reg, '<ABBR $1><SPAN class=\"abbr\" $1>$2</SPAN></ABBR>');
    document.body.innerHTML = newBodyText;
  }
}

window.onload = function(){
  styleAbbr()
};

isIE = (document.all) ? true:false;