function cOn(td)
{
  if(document.getElementById||(document.all && !(document.getElementById)))
  {
    //td.style.borderStyle="solid";
    //td.style.borderColor="#336699";    
    td.style.backgroundColor = "#fBDB79";
 }
}

function cOut(td,borderColor)
{
  if(document.getElementById||(document.all && !(document.getElementById)))
  {
    td.style.borderColor=borderColor;
    td.style.backgroundColor = "";
  }
}

function PrintWindow()
{
  var newlink;
  if(self.location.href.indexOf("?")>0)
  {
    newlink = self.location.href+"&print=1";
  }
  else
  {
    newlink = self.location.href+"?print=1";
  }
  var nIndex = newlink.indexOf(".",20);
  // check for umlaut in domain
  if(nIndex>10 && 
    (newlink.charCodeAt(nIndex-5)==220 || newlink.charCodeAt(nIndex-5)==252))
  {
    //220 252 for u uml
    newlink = newlink.substr(0,nIndex-5) + "ue" + newlink.substr(nIndex-4);
  }
  window.open(newlink,"print");
}

