
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos)
 {
if(pos=="random")
 { LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center")
 {
LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
 }
else if((pos!="center" && pos!="random") || pos==null)
 {
LeftPosition=0;TopPosition=20
 }
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
 }



function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,1)=="*") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(1,30);
alert("Bitte tragen Sie die Daten in das Feld *"+shortFieldName+" ein.");
return false;
}
else
return true;
}


function doSubmit() 
{ 
   document.form.submit(); 
}

function doReset() 
{ 
   document.form.reset(); 
} 


 var farbe="#F3F7F7";   // Hintergrundfarbe, wenn das Formularfeld fokusiert ist
 var farbe1="#BDCDCD";
