// JavaScript Document

// geschützte email adresse

function email (name,host) {

                document.write('<a href=\'mailto:' + name + '@' + host + '\' class=\'text\'>');
                document.write(name + ' @ ' + host + '</a>');
				
}

function openWin( windowURL, windowName, windowFeatures ) {
        return window.open( windowURL, windowName, windowFeatures ) ;
}


// Fenster ohne Rand öffnen

function openWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/6;
    var myTop = (screen.height-myHeight)/6;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

	function focusfield(feld,wert)
	{ 
		for(y=0;y<20;y++)
		  if(document.forms[y].elements[feld]) { x=y; break; }
		  if(document.forms[x].elements[feld].value==wert) document.forms[x].elements[feld].value='';

	}
	
	function blurfield(feld,wert)
	{
		for(y=0;y<20;y++)
		  if(document.forms[y].elements[feld]) { x=y; break; }
		  if(document.forms[x].elements[feld].value=='') document.forms[x].elements[feld].value=wert;		
	}