/* author: peter.hiltmann@utanet.at */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 04.01.2005 */
var Zelle = 0;
var j=0;
var Zei = 0;
var i=0;
function ZeileEinfuegen(l,Tab,Z) {
 while (Zei<l){
	if (Zei==0) document.getElementById(Tab).deleteRow(0);
	 TR = document.getElementById(Tab).insertRow(Zei);
	 ZelleEinfuegen(Z,Daten);
	 i=0;
	}
}
function ZelleEinfuegen(m,n){
	 	 while (i<m) {
		 TD1= document.createElement("td");
		 var TD1text = document.createTextNode(n[j]);
		 TD1.appendChild(TD1text);
		 if (bool)
		 formatsz(j);
		 else
		 formatsw(j);		 
		 TR.appendChild(TD1);
		 j += 1;
		 i += 1;
		 Zelle += 1;
		 }
		 Zei += 1;
		 Zelle=0; 
}  
function formatsw(k){
	switch(k){
	case 0:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";
				width="150";
				} break;
	case 1:
				with(TD1.style){
				fontFamily="Arial";				
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";
				width="100";
				} break;
	case 2:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";	
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";
				width="100";
				} break;
	case 3:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";
				width="450";
				} break;
	case 4:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";

				} break;
	case 5:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="200";
				textAlign = "center";

				} break;
	case 6:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="200";
				textAlign = "center";

				} break;
	case 7:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="200";
				textAlign = "center";

				} break;
	case 8:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";

				} break;
	case 9:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="200";
				textAlign = "center";

				} break;
	case 10:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="200";
				textAlign = "center";

				} break;
	case 11:
				with(TD1.style){
				border = "solid blue 1px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="200";
				textAlign = "center";

				} break;
					
}}
function formatsz(k){
	switch(k){
	case 0://Zwingername
 				with(TD1.style){
				border = "solid red 1px";
				fontSize = "19pt";
				color="red";
				textAlign = "center";
				width="300";
				} break;
	case 1://Adresse
				with(TD1.style){
				fontSize = "12pt";
				textAlign = "left";
				width="512";
				} break;
	case 2://Besitzer
				with(TD1.style){
				fontSize = "12pt";
				fontWeight="bold";
				textAlign = "center";
				} break;
	case 3://Telefon u. email
				with(TD1.style){
				fontSize = "12pt";
				textAlign = "left";
				} break;
	case 4:
				with(TD1.style){
				backgroundColor="#ccaa11";
				border = "solid blue 2px";
				fontFamily="Arial";
				fontSize = "10pt";
				fontWeight="bold";
				textAlign = "center";
				} break;
	case 5://Paarung
				with(TD1.style){
				backgroundColor="#ccaa11";
				border = "solid blue 2px";
				fontFamily="Arial";
				fontSize = "12pt";
				color="#ffff99";
				fontWeight="bold";
				textAlign = "center";
				} break;
}}
function MachTab1(TB){
bool=1==1; //setzt bool auf true für Formatierung
Zelle = 0;
	j=0;
	Zei = 0;
	i=0;
  	with(document.getElementById(TB)){
  	border = "1";
	rules = "none";
  	bgColor = "#ccbb33";
  	cellPadding=1;
  	align="center";
    ZeileEinfuegen(3,TB,2,Daten);
}}
function MachTab2(TB){
bool=1==2; //setzt bool auf false für Formatierung
  Zelle = 0;
	j=0;
	Zei = 0;
	i=0;
  	with(document.getElementById(TB)){
  	border = "0";
	rules = "none";
  	bgColor = "#ccaa11";
  	cellPadding=1;
  	align="center";
    ZeileEinfuegen(3,TB,4,Daten);
	
}}
