function tokenize (str)
{
  strUpper=str.toUpperCase();
  tokStr=strUpper.substr (0,1) + str.substr (1,str.length-1);
  return tokStr;
}

function kontakt() {
    var woBinIch = document.URL;
    woBinIch = woBinIch.replace(/ae/, "ä");
    woBinIch = woBinIch.replace(/ue/, "ü");
    woBinIch = woBinIch.replace(/oe/, "ö");
    var SubPath = woBinIch.split ("/");
    var ref = 'nix';
    var URLstring = 'http://grazpoint.esystems.at/contact.php?id=';
    if ('ss' == 'http://dico.cc/tom2/files/inhalt_2.php?aktfirma=2') URLstring=URLstring + '1&proj=';
      else if ('gg' == 'http://dico.cc/tom2/files/inhalt_2.php?aktfirma=2') URLstring=URLstring + '2&proj=';
      else URLstring=URLstring + '0&proj=';
    if (SubPath.length < 5) URLstring=URLstring + tokenize (SubPath[SubPath.length-1]);
       else URLstring=URLstring+tokenize (SubPath[4]);
    if (SubPath.length > 5) URLstring=URLstring + '&subproj=' + tokenize (SubPath[5]);
    window.open(URLstring,'kontakt','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=680,top=300,left=700');
}

function reprint() {
   var woBinIch = document.URL;
   var isLend = woBinIch.match(/lendplatz/);
   document.images.PH.src = 'printHeader.gif';
   if (!isLend) document.images.PF.src = 'printFooter.gif';
     else document.images.PF.src = 'printFooterLend.gif';
   this.print ();
}

function colorTable () {
var tables = document.getElementsByTagName ("table");

for (j=0; j < tables.length ; j++) 
{
  var table = tables[j];
  if (table.id == "EpozTableBorder")
    {
     var allTRs = table.getElementsByTagName ("tr");
     var allTDs = table.getElementsByTagName ("td");
     var TDsTRs = allTDs.length / allTRs.length;
  


/*
for (i=0; i < allTRs.length ; i++) 
   {
    if (i % 2 == 0)
    allTRs[i].style.backgroundColor = "#eeeeee";
   }
*/

for (i=0; i < allTDs.length ; i++) 
   {
    if (i % TDsTRs == 1)
    allTDs[i].style.backgroundColor = "#cccccc";
  //  allTDs[i].style.border = "0";
   }
}
}
}
