function stripeTables() {

var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
  if (tables[i].className.search(/edit_Farb_Tabelle/)) {
    var rows = tables[i].getElementsByTagName("tr");
	 for (var j=0; j<rows.length; j=j+1) {
      rows[j].className = rows[j].className.replace(/ row_dark/, "");
    }
    for (var j=0; j<rows.length; j=j+2) {
      if (rows[j].className.search(/row_dark/) == -1) {
        rows[j].className =rows[j].className + " row_dark"  ;
      }
    }
    }
  }
}

//Script for Displaying Downloads and Links with Items Tag 

function displayDownloads() {
  var download = document.getElementsByTagName("input");
var itemid;
  for (var i=0; i<download.length; i++) {
var ischeck = download[i].name.substr(0, 6);  
    if ((ischeck == "2check") && (download[i].value!="")){
      	itemid = "download" + download[i].name.substring(7);
	document.getElementById(itemid).style.display="block";
                      }
          }
		  
  var hiddenlink = document.getElementsByTagName("input");
var itemid2;
  for (var i=0; i<hiddenlink.length; i++) {
var ischeck = hiddenlink[i].name.substr(0, 5);  
    if ((ischeck == "check") && (hiddenlink[i].value!="")){
      	itemid2 = "hiddenlink" + hiddenlink[i].name.substring(6);
	document.getElementById(itemid2).style.display="block";
                      }
          }
}

function colorInputs (){
var ua = navigator.userAgent;
if (ua.indexOf("MSIE") > 0) {
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++) {
		inputs[i].setAttribute("onfocus","");
   		inputs[i].setAttribute("onblur","");
   		inputs[i].setAttribute("style","");
   		inputs[i].onblur = function() { this.style.setAttribute("backgroundColor","#ffffff");};
   		inputs[i].onfocus = function() { this.style.setAttribute("backgroundColor","#e6f1fc");};
}
	var textareas = document.getElementsByTagName("textarea");
	for (var i=0; i<textareas.length; i++) {
		textareas[i].setAttribute("onfocus","");
   		textareas[i].setAttribute("onblur","");
   		textareas[i].setAttribute("style","");
   		textareas[i].onblur = function() { this.style.setAttribute("backgroundColor","#ffffff");};
   		textareas[i].onfocus = function() { this.style.setAttribute("backgroundColor","#e6f1fc");};
}



} 

}



function JSrot13(text) {var text = text.replace(/%/, "@");var rot13text_rotated = ""; /* the function will return this string */;for (i = 1 ; i < (text.length + 1); i++) {k = text.charCodeAt(i-1);if (k >= 97 && k <= 109) {k = k + 13;} else if (k >= 110 && k <= 122) {k = k - 13;} else if (k >= 65 && k <= 77) {k = k + 13;} else if (k >= 78 && k <= 90) {k = k - 13;}rot13text_rotated = rot13text_rotated + String.fromCharCode(k);}return rot13text_rotated;}function Securemail(maillink){var maillink_output;maillink_output = JSrot13(maillink);location.href= 'mailto:' + maillink_output;}function displaymailaddress(linktext){var linktext_output;linktext_output = JSrot13(linktext);linktext_output = linktext_output.replace(/@/, "<span style='display:none'> *secure E-Mailaddress* </span>@");document.write(linktext_output);}
















function formsDoitlive(){

//format input types submit and reset
var inputs = document.getElementsByTagName("input");
for (var i=0; i<inputs.length; i++) {
	if ((inputs[i].type == "submit") && (inputs[i].value == "Send")) {
		inputs[i].style.width = "auto";
		inputs[i].style.color = "#000000";		
		inputs[i].style.backgroundColor = "#f2f4f6";
		inputs[i].style.border = "1px solid #104fa0";
		inputs[i].style.margin = "0px";
		inputs[i].value = "Absenden";
	}  else if (inputs[i].type == "reset") {
		inputs[i].style.width = "1px";
		inputs[i].style.display = "none";
	}
}
var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
	if (tables[i].cellSpacing == 7) {
		tables[i].cellSpacing = 0;
	}
	if (tables[i].cellPadding == 1) {
		tables[i].cellPadding = 0;
	}

var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
  if (tables[i].className=="form") {
   tables[i].getElementsByTagName("tr")[0].style.display= "none";
  }
}

}}