
function findObj(n, d)
{       var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function senden()
{
	checkCount = 0
	form = findObj('formular');	
	if(typeof(senden.arguments[0]) == "string" || senden.arguments.length == 0){feldArr=senden.arguments;}
	if(typeof(senden.arguments[0]) == "object"){feldArr=senden.arguments[0];}	
	
	for(i=0; i<feldArr.length; i++)
    { 	
		feld = eval("form." + feldArr[i])	
		argName = feldArr[i]
				if (argName.charAt(1) == "_") //wenn "_" an pos2 wir das feld auf bestimmte kriterien untersucht
					{				
						feldtyp = argName.charAt(0)
						//alert(feldtyp)
						if(feldtyp == "E")
							{	
								var email = feld.value
/*
Notes:
'exclude' checks 5 conditions:
a) characters that should not be in the address
b) characters that should not be at the start
c) & d) characters that shouldn't be together
e) there's not more than one '@'
'check' checks there's at least one '@', later followed by at least one '.'
'checkend' checks the address ends with a period followed by 2 or 3 alpha characters
N.B. Javascript 1.2 only works with version 4 browsers and higher.
*/
								
								//alert(email)
								//var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
								var check=/@[\w\-]+\./;
								var checkend=/\.[a-zA-Z]{2,4}$/;
								var lenname = /^.{2,}@/   // xxx@lendomain.xxx länge des domainnamens muss min 2 betragen
								var lendomain = /@.{2,}\./     // xxx@lendomain.xxx länge des domainnamens muss min 2 betragen
								
								//if(!((email.search(exclude) != -1)||(email.search(check) == -1)||(email.search(checkend) == -1)||(email.search(lenname) == -1)||(email.search(lendomain) == -1)))
							  	if(!((email.search(check) == -1)||(email.search(checkend) == -1)||(email.search(lenname) == -1)||(email.search(lendomain) == -1)))
									{
										checkCount++;
										//alert(feld.name + "Img")
										swapbild = findObj(feld.name + "Img");	
										if(typeof(swapbild) != "undefined")
											{swapbild.src = erforderlImg.src}
									}	
								else 
									{
										//alert(feld.name + "Img")
										swapbild = findObj(feld.name + "Img");	
										if(typeof(swapbild) != "undefined")
										{swapbild.src = checkImg.src}
									
									}
							}	
						else if(feldtyp == "N")
							{
								var nummer = feld.value
								
								var valid = 1
								var GoodChars = "0123456789"
								var y = 0
								if (nummer=="") 
									{			
									valid = 0 // Return false if number is empty
									}
								for (y =0; y <= nummer.length -1; y++) 
									{
										if (GoodChars.indexOf(nummer.charAt(y)) == -1) 
											{
												//alert(nummer.charAt(y) + " is no good.")
												valid = 0
											} 	
									} 	
								if (valid)
									{
										checkCount++;
										swapbild = findObj(feld.name + "Img");	
										swapbild.src = erforderlImg.src
									}	
								else 
									{
										swapbild = findObj(feld.name + "Img");	
										swapbild.src = checkImg.src
									
									}			
							}	
						else if(feldtyp == "R")							
							{				
								for (y=0;y<feld.length;y++) // radio array durchgehen und auf checked pruefen
									{ 
										if (feld[y].checked)
											{
												checkCount++;
												swapbild = findObj(argName + "Img");	
												swapbild.src = erforderlImg.src
												break;
											}
										else
											{
												swapbild = findObj(argName + "Img");	
												swapbild.src = checkImg.src
											}
									}	
							}	
						else if(feldtyp == "X")		// für felder, die keine "erforderlich" image habe und trotzdem überprüft werden sollen					
							{			
								if (feld.value != "")
									{ 	
										checkCount++;
									}	
							}	
					}
				else if (feld.value != "")					
							{
								checkCount++;
								swapbild = findObj(feld.name + "Img");	
								swapbild.src = erforderlImg.src
							}	
						else 
							{
								swapbild = findObj(feld.name + "Img");
								swapbild.src = checkImg.src							
							}			
										
	}	
	
	
	//alert("checkCount länge = " + checkCount)	
	//alert("feld länge= " + feldArr.length)
	//if(checkCount == feldArr.length) {alert("abschicken\n");}	
	//alert(form.E_Email.value)
	if(checkCount == feldArr.length) {form.submit();}	
	else {alert(checkImg.info)}	
}


newwin = null;
function popClose(winName)
	{
		if (newwin == null)
			{
				newwin = window.open('',winName,'')			
			}
   		  if (!newwin.closed)
     		  newwin.close();	
	}
function ccpop(winurl, scrollbars)
{	
//neuer CC fuer audi.at
	if ((winurl.search('cc.audi.at') != -1 && winurl.search('de') != -1)||(winurl.search('cc.porscheinformatik.com') != -1 && winurl.search('hu') != -1)||(winurl.search('cc.porscheinformatik.com') != -1 && winurl.search('si') != -1)) { 
		newwin = window.open(winurl,"ccpopN","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=1014,height=700");
	}
	//popClose("ccpop") funktioniert leider nicht bei popup-Blocker -> dann geht das neue window nicht mehr auf
	else if (scrollbars==1){
		newwin = window.open(winurl,"ccpopsb","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=857,height=710"); 
	}
	else {
		newwin = window.open(winurl,"ccpop","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=857,height=710"); 
	}
	newwin.focus();                      
}

function ccpop2(winurl, scrollbars)
{
	//popClose("ccpop2")
	if (scrollbars==1){
	newwin = window.open(winurl,"ccpop2sb","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=793,height=530"); }
	else {
	newwin = window.open(winurl,"ccpop2","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=793,height=530"); }
	
	newwin.focus();                      
}

function ccpop3(winurl, scrollbars)
{
	//popClose("ccpop3")
	if (scrollbars==1){
	newwin = window.open(winurl,"ccpop3sb","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=870,height=710"); }
	else {
	newwin = window.open(winurl,"ccpop3","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=870,height=710"); }
	newwin.focus();
	//voruebergehende Aktion
	/*if (winurl.search('SVC=SEARCH') != -1 && winurl.search('LANG=de') != -1 &&  winurl.search('POP=true') != -1) { 
		newwin2 = window.open("http://cc.audi.at/nw/audi/lager/de/aktion/a6popup.html","ccpop4","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=500"); 
		newwin2.focus();
	}*/
	                      
}

function popupde(winurl)
{
//popClose()
newwin = window.open(winurl,"audide","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=1040,height=740");
newwin.focus();                      
}

function rspop()
{
	popup = window.open("http://www.premiumpromotions.at/IndexServlet?pid=1422&subafp=hmt_1422_audi_at&pmode=solo&language=de","rspop","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=740,height=480")

}

function pop(url, w, h, scrollbars, name){
  var spec = 'directories=no,menubar=no,toolbar=no,status=no';
  var h = h + 50
  if (name = 'sline') { h = h + 50 }//popup ist groesser geworden
  //fuer haendler muss der domain dran
  if (url.search('http') == -1) {
  	url = 'http://' + window.location.host + '/' + url;
  }
  if(typeof(name) != "string"){ name = "Bild"; }
  if(w>0 && h>0){
     if(! scrollbars){
       spec += ",scrollbars=no";
       spec += ",resizable=no";
     }
	 else {
       spec += ",scrollbars=yes";
       spec += ",resizable=no";
     }
     spec += (",width=" + w);
     spec += (",height=" + h);
  }
  if (typeof(cur_mfile) != "undefined")
  	{
		url = url + '&id=' + cur_mfile
	}
  var popwin=window.open(url, name, spec);
  
  if ((screen.width - w) <= 0) { var links = (screen.width - w) - 5;
								  var oben = 0;
					   }
			else {
    
	 if (document.layers) {
        var links = (screen.width - w) / 2;
        var oben = (screen.height - h) / 2;
    } else {
        var links = (screen.width - w) / 2; 
        var oben = ((screen.height - h) / 2) - 20;
		
    }
				};
    popwin.moveTo(links, oben);
  	popwin.focus();
}

function popgeneral(url, w, h, scrollbars, name){
  var spec = 'directories=no,menubar=no,toolbar=no,status=no';
  var h = h + 50
  if(typeof(name) != "string"){ name = "Audi"; }
  if(w>0 && h>0){
     if(! scrollbars){
       spec += ",scrollbars=no";
       spec += ",resizable=no";
     }
	 else {
       spec += ",scrollbars=yes";
       spec += ",resizable=no";
     }
     spec += (",width=" + w);
     spec += (",height=" + h);
  }
  	
  var win=window.open(url, name, spec);
  
  if ((screen.width - w) <= 0) { var links = (screen.width - w) - 5;
								  var oben = 0;
					   }
			else {
    
	 if (document.layers) {
        var links = (screen.width - w) / 2;
        var oben = (screen.height - h) / 2;
    } else {
        var links = (screen.width - w) / 2; 
        var oben = ((screen.height - h) / 2) - 20;
		
    }
				};
    win.moveTo(links, oben);
  	win.focus();
}


var fullscreenWin = null;
function fullscreenPopup ( url ) {// vollbildschirm-fenster öffnen
		if(url.indexOf("?lang=") == -1 && url.indexOf("?") == -1) url += "?lang=";//Sprachcode übergeben
		var w = window.screen.availWidth;
		var h = window.screen.availHeight;
		w -= 10;
		h -= 30;
		fullscreenWin = window.open(url,'maxwin','toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=1,scrollbars=0,top=0,left=0,width='+ w +',height=' + h );
	}


var swapNrOld = '';
function bildladen(land,filenr,typ,download,swapNr,imgPath)
{	swapbild = findObj("bildmittel")	
	if (download == 1) { swapbild.src= land + '/images/hintergruende/mittel/'+filenr+'.'+typ; }
	if (download == 2) { swapbild.src= land + '/images/bilder/modelle/mittel/'+filenr+'.'+typ; }
	if (download == 3) { swapbild.src= land + '/images/hintergruende/allg/mittel/'+filenr+'.'+typ; }
	if (download == 4) 
		{ 
			swappfeilbild = findObj("swappfeil" + swapNr)
			if(swapNrOld != '')
				{
					swappfeilbildOld = findObj(swapNrOld)
					swappfeilbildOld.src= 'images/pfeil.gif'; 
				}
			swappfeilbild.src= 'images/pfeil_mo.gif'; 
			swapNrOld = "swappfeil" + swapNr;
			if(imgPath == '')
				{
					swapbild.src= land + '/images/bilder/modelle/mittel/'+filenr+'.'+typ; 
				}
			else
				{
					swapbild.src= '/' + imgPath + filenr + '.'+typ; 
				}
			
		}
	 cur_mfile = filenr;
}
//besonderheiten modell startseite
oldBoxNr = '';
function specialsFunc(Path, specID, specImgID, specImgExt, specBoxID)
{ 
	specImg = findObj("specialsImg")
	specText = findObj("specialsText")
	specBox = findObj("specialsBox"+specBoxID)		
	if(specBox.src.indexOf("box_no.gif") != '-1')
		{
			specBox.src = 'images/box_mo.gif'
		}
	else
		{			
			specBox.src = 'images/box_no.gif'
		}
	specText.innerHTML = specialsTextArr[specID]
	
	specImg.src = Path + specImgID + '.' + specImgExt	
}

function specialsFuncLink(Path, specID, specImgID, specImgExt, specBoxID)
{ 
	specImg = findObj("specialsImg")
	specText = findObj("specialsText")
	specBox = findObj("specialsBox"+specBoxID)			
	specImg.src = Path + specImgID + '.' + specImgExt	
}

function toolbox(aOff, divNm, nTabs, ROIset)
{       this.tabs       = new Array();                                 
        this.aOff       = aOff;                                                
        this.divNm 		= divNm;                                          
        this.no         = nTabs;                                                
        this.ROI        = ROIset;                                               
        this.show(0);                                                      
}
toolbox.prototype.show = function(j)
{       
		target = findObj('tool')
		source = findObj(this.divNm + j)
		target.innerHTML = source.innerHTML; 
}
toolbox.prototype.cl = function(j)                 
{       this.show(j);                                                           
        this.ROI.cl(j);                                                                       
}

function checkBrowser(){
        this.ver = navigator.appVersion;

        this.dom = document.getElementById?1:0;

        this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
        this.ie55 = (this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;
        this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie4 = (document.all && !this.dom) ? 1:0;
        this.ns5 = (this.dom && parseInt(this.ver) >= 5) ? 1:0;
        this.ns4 = (document.layers) ? 1:0;
        this.bw  = (this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie55 || this.ie6);
        this.os  = (this.ver.indexOf("Macintosh")>-1)? "mac":"pc";
        this.ie  = (this.ie5 || this.ie4 || this.ie55 || this.ie6);
        this.ns  = (this.ns4 || this.ns5);
        this.client = (this.ie) ? "ie" : "ns";
		this.ok  =  (this.dom)
		return this;
}
function ROI(imgID, imgNm, format, statusMessage, currentState, noOfStates, Nav, imgPfad, lnk) 
{       if (!statusMessage) 
                statusMessage = "";                             
        this.sm         = statusMessage;                		
        this.img        = imgID;                                
        this.name       = imgNm;  
		this.lnk        = lnk;                                
        this.state      = currentState;         
        this.no         = noOfStates;  
		this.Nav   		= Nav;       
		this.imgPfad   	= imgPfad;              
        this.pl         = new Array();                  		              
        
        
        if (imgNm == "spacer")                         			
        {       this.pl[0] = new Image();
                this.pl[0].src = 
                        "imgs/glob/misc/xl_64_64.gif";
                return;
        }
        
        if (this.Nav == "main")
        {
			     this.pl[0] = new Image();
	             this.pl[0].src = this.imgPfad + "/images/nav/norm/" + this.name + "." + format;
				 
				 this.pl[1] = new Image();
	             this.pl[1].src = this.imgPfad + "/images/nav/mo/" + this.name + "." + format;
				 
				 
	        
		}
		else if (this.Nav == "tab")
		{
			     this.pl[0] = new Image();
		         this.pl[0].src = this.imgPfad + "/images/nav/toolbox/norm/" + this.name + "." + format;
				 
				 
				 this.pl[1] = new Image();
		         this.pl[1].src = this.imgPfad + "/images/nav/toolbox/mo/" + this.name + "." + format;
				 
				 
				 this.pl[2] = new Image();
		         this.pl[2].src = this.imgPfad + "/images/nav/toolbox/checked/" + this.name + "." + format;
				 
		       	
		}
		else if (this.Nav == "head")
		{
			     this.pl[0] = new Image();
		         this.pl[0].src = this.imgPfad + "/images/spacer"  + "." + format;
				 
				 
				 this.pl[1] = new Image();
		         this.pl[1].src = this.imgPfad + "/images/nav/toolbox/head/"+ this.name + "." + format;
				 
		}
		else 
		{
			for (var i = 0; i < this.no; i++)       
		        {       this.pl[i] = new Image();
		                this.pl[i].src = this.name + "_0" + i + "." + format;
		        }		
		}
}
ROI.prototype.show = function(j)
{       if (j % 2 == 0) 
        window.status = "";                            			
        else window.status = this.sm;           				
        im = findObj(this.img);                         		
        if (!im) return;                                        
        im.src = this.pl[j].src;                        		
        
}
ROI.prototype.hi = function() 
{   if ((this.state % 2 == 0) && (this.state + 1 < this.no))
        this.state++;
        this.show(this.state);  
}
ROI.prototype.lo = function() 
{   if (this.state % 2 == 1)
                this.state--;
        this.show(this.state);  
}
ROI.prototype.cl = function(notFocus) 
{       this.state = 2;
        if(this.state >= this.no)
        this.state = 0;
        this.show(this.state);

}
ROI.prototype.dc = function() 
{       this.state = 0;
        this.show(this.state);  
}
ROI.prototype.set = function(j, img) 
{       if(this.pl[j])
        this.pl[j].src = img;
        this.show(j);
}

function setofROI(ROIarray, typearray) 
{       this.e = ROIarray;
        this.type = typearray;
}
setofROI.prototype.hi = function(j)
{       for (var i = 0; i < this.e.length; i++)
                this.e[i][j].hi();
}
setofROI.prototype.lo = function(j)
{       for (var i = 0; i < this.e.length; i++)
                this.e[i][j].lo();
}
setofROI.prototype.cl = function(j,notFocus)
{       if(!notFocus) notFocus=false; else notFocus=true;
        for (var i = 0; i < this.e.length; i++)
        {       if (this.type[i] == "nav")                                     
                        if (this.e[i][j]) this.e[i][j].cl(notFocus);    
                        else return;

                if (this.type[i] == "head")                                     
                {       a = this.e[i];                                                  
                        for(var k = 0; k < a.length; k++)               
                                a[k].set(0, a[j].pl[1].src);            
                }

                if (this.type[i] == "tab")
                {       a = this.e[i];
                        for(var k = 0; k < a.length; k++)               
                                a[k].dc();                                                      
                        a[j].cl();                                                              
                }
        }
} 

function initTable(initM,initS)
{	
	
	for (y = 0; y < mp.length ; y++)
 			{
				if (mpObj[y].name == initM) 
					{
						initMod = y
						//alert("initMod" + initMod)
					}
				
			}
	//alert("aktmodell " + aktModell)
	initSub = ""
	if(typeof(initS) != "undefined")
		{	
			for (x = 1; x < (mp[initMod].length/2) ; x++)
				{	
					if (mpObj[initMod][x].name == initS)
					{
						initSub = x
						//alert("initSub" + initSub)
					}					
				}
		}
	gentable(initM,initS)
	
}


function gentable(modell,modellsub)
{	
	saveToolbox();
	swapflag = 0
	
	for (y = 0; y < mp.length ; y++)
 			{
				if (mpObj[y].name == modell) 
					{
						clickModell = y
						//alert("aktModell" + clickModell)
					}
				
			}
		
		
	str = '<table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td colspan="3"><img src="images/spacer.gif" width=1 height=4 border="0"></td></tr>'
	 	for (y = 0; y < mp.length ; y++)
 			{
			
			if (document.layers) // damit ns 4.7 auch was davon hat
			{
				str += genfold(y)
			}
			else
			{
				if(mp[y][0] == "tool")
					{
						str+= '<tr><td COLSPAN="4">&nbsp;</td></tr>'
						str+= '<tr>'
						str+= '<td>&nbsp;</td>'
						str+= '<td COLSPAN="3"><div id="toolbox"></div></td>'
						str+= '</tr>'	
						str+= '<tr><td COLSPAN="4">&nbsp;</td></tr>'			
					}
				else
					{
					if (clickModell == y)  // wenn y ist geklickte mp, dann aktiver haupt mp und ausklappen
							{	
								if (clickModell == initMod){str+=genfold(clickModell,initSub)} // wenn init mp wieder angeklickt wird, wird der wert des urspr. aktivierten submp uebergeben
								else {str+=genfold(clickModell,modellsub)}	
							}
					else  // inaktiver menuepunkt
							{	
								str+= '<tr>'
								str+= '<td><img src="images_nav/m_rechteck.gif" width=11 height=22 border="0"></td>'
							
							if (initMod == y)  // init menuepunkt wird aktiviert dargestellt, damit man weiss wo mann sich befindet
								{
								if (mp[y].length <= 2)  // wenn keine submenue punke vorhanden wird der link direkt eingefügt
									{str+= '<td colspan="2"><a href="' + mpObj[y].lnk +'"><img src="' + mpObj[y].pl[1].src +'" border="0" id=mp' + y +' hspace="2"></A></td>'}
								else  // wenn submenue punke vorhanden wird ein funktionsaufruf gentable() eingefügt
									{
									str+= '<td colspan="2"><a href="javascript:gentable(' + mpObj[y].name + ')"><img src="' + mpObj[y].pl[1].src +'" border="0" id=mp' + y +' hspace="2"></A></td>'}
								}
							else  // wenn menuepunkt nicht der init mp war
								{
								
								if (mp[y].length <= 2)  // wenn keine submenue punke vorhanden wird der link direkt eingefügt
									{str+= '<td colspan="2"><a href="' + mpObj[y].lnk +'" onmouseover="mpObj[' + y +'].hi(' + y +')"  onmouseout="mpObj[' + y +'].lo(' + y +')"><img src="' + mpObj[y].pl[0].src +'" border="0" id=mp' + y +' hspace="2"></A></td>'}
								else if (mp[y].length > 2 &&  mp[y][1] != "#")  // wenn hmp einen link hat unt submenue punkte vorhanden wird der link direkt eingefügt
									{str+= '<td colspan="2"><a href="' + mpObj[y].lnk +'" onmouseover="mpObj[' + y +'].hi(' + y +')"  onmouseout="mpObj[' + y +'].lo(' + y +')"><img src="' + mpObj[y].pl[0].src +'" border="0" id=mp' + y +' hspace="2"></A></td>'}						
								else
									{ // wenn submenue punke vorhanden wird ein funktionsaufruf gentable() eingefügt
									str+= '<td colspan="2"><a href="javascript:gentable(' + mpObj[y].name + ')" onmouseover="mpObj[' + y +'].hi(' + y +')"  onmouseout="mpObj[' + y +'].lo(' + y +')"><img src="' + mpObj[y].pl[0].src +'" border="0" id=mp' + y +' hspace="2"></A></td>'
									}
								}
								str+= '</tr>' //zeile wird abgeschlossen	
							}
					} //end tool
			}
				
						
				}
	str+= '</tbody></table>'	//tbody fuer mozilla	
	
	if (document.layers) {document.write(str);}  //achtung: muss vor abschluss des ladevorgangs erfolgen,  nicht onload. sonst funktioniert write nicht
	else 
		{
			document.getElementById("tabelle").innerHTML = str;
			placeToolbox();
		}
	
	
	//quell(str);
	
} 

function genfold(modell,modellsub)
{	
	str= '<tr>'
	str+= '<td><img src="images_nav/mo_rechteck.gif" width=11 height=22 border="0"></td>'
	
	// hier werden die haupt mp gebaut
	if(typeof(modellsub) != "undefined") //wenn ein sub mp zum aktivieren definiert wurde
		{
		if (mp[modell].length <= 2 || (mp[modell].length > 2 && mp[modell][2] != "#")) // wenn keine sub mp vorhanden: haupt mp aktiviert, mit link
				{
					str+= '<td colspan="2"><a href="' + mpObj[modell].lnk +'"><img src="' + mpObj[modell].pl[1].src +'" border="0" id=mp' + y +' hspace="2"></a></td></tr>'
				}		
		else   // wenn sub mp vorhanden: haupt mp aktiviert, ohne link			
				{ 
					str+= '<td colspan="2"><img src="' + mpObj[modell].pl[1].src +'" border="0" id=mp' + y +' hspace="2"></td></tr>'
				}
		}
	else  //wenn KEIN sub mp zum aktivieren definiert wurde
		{
			
		// hauptmenuepunkt nicht high mit untermenue, kein link
		if (document.layers) // fuer ns4.7
				{
					str+= '<td colspan="2"><a href="' + mpObj[modell].lnk +'"><img src="' + mpObj[modell].pl[0].src +'" border="0" id=mp' + y +' hspace="2"></a></td></tr>'
				}
		else	
				{
					str+= '<td colspan="2"><img src="' + mpObj[modell].pl[0].src +'" border="0" id=mp' + y +' hspace="2"></td></tr>'
				}
		}
	
	//hier werden falls vorhanden sup mp gebaut
	if (mp[modell].length > 2)
		{	
		for (x = 1; x < (mp[modell].length/2) ; x++)
	 		{	
				//alert(mpObj[modell][x].name)
				str+= '<tr>'
				str+= '<td><img src="images_nav/mz_quadrat.gif" width=11 height=16 border="0"></td>'
				str+= '<td><img src="images/spacer.gif" width=5 height=10 border="0"></td>'
				if (x == modellsub) // aktiver sub mp wird eingebaut
				{
				str+= '<td><a href="' + mpObj[modell][x].lnk + '"><img src="' + mpObj[modell][x].pl[1].src +'" id=' + mpObj[modell][x].img +' border="0" hspace="2"></a></td>'
				}
				else // inaktiver sub mp wird eingebaut
				{				
				str+= '<td><a href="' + mpObj[modell][x].lnk + '" onmouseover="mpObj[' + modell + '][' + x + '].hi(' + x +')"  onmouseout="mpObj[' + modell +'][' + x + '].lo(' + x +')"><img src="' + mpObj[modell][x].pl[0].src +'" id=' + mpObj[modell][x].img +' border="0" hspace="2"></a></td>'
				}
				
				str+= '</tr>'	
							
			}	
			
				str+= '<tr>'
				str+= '<td><img src="images_nav/m_linie.gif" width=11 height=2 border="0"></td>'
				str+= '<td><img src="images/spacer.gif" width=1 height=1 border="0"></td>'
				str+= '<td><img src="images/spacer.gif" width=1 height=1 border="0"></td>'
				str+= '</tr>'	
		}	
	return str;	
}

function quell(q)
{
downwindow = window.open("","Download","height=480,width=640,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"); 
value = ('<html><head><title>Download</title></head><body leftmargin="0" topmargin="0" onLoad="focus()"><textarea cols="70" rows="30">' + q + '</textarea></body></html>');		
downwindow.document.writeln(value);
downwindow.document.close();
}

function placeToolbox()
	{
		document.getElementById("toolbox").innerHTML = document.getElementById("contTool").innerHTML;
		document.getElementById("contTool").innerHTML = "";
		if(typeof(toolboxinit) != "undefined")
			{
				toolboxinit();
			}		
	}
function saveToolbox()
	{
		if(document.getElementById("toolbox") != null)
			{
				document.getElementById("contTool").innerHTML = document.getElementById("toolbox").innerHTML;
			}
	}