/* Klickdummy Pulldown Verstecken für ältere Browser */
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0") {
location=form.select1.options[myindex].value;}
}




function pop (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Zoom','toolbar=0,location=0,status=0,system=yes,menubar=1,scrollbars=NO,scrollbars=0,height=422,width=690,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Zoom','toolbar=0,location=0,status=0,resizable=yes,menubar=1, scrollbars=NO,scrollbars=0,height=422,width=690,top=0,left=0');
		mini.focus();	
	}
}


function makeRemote(dateiname) {
remote = window.open("","remotewin",'toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=4220,width=475,top=0,left=0');
remote.location.href = dateiname
if (remote.opener == null) remote.opener = window;
remote.opener.name = "opener";
}
function go(url) {
opener.location.href = url;
}

var i=0, sw=screen.width*100/100, sh=screen.height*100/100;
function resize() {
if (navigator.appName == 'Netscape') i=0;
nw = 120 + ((document.closeButton.width > document.articleImage.width) ? document.closeButton.width : document.articleImage.width);
nh = document.articleImage.height + 300 - i;
if(nw>sw) nw = sw;
if(nh>sh) nh = sh;
window.resizeTo(nw, nh);
nx = screen.width/2 - nw/2;
ny = screen.height/2 - nh/2;
window.moveTo(nx, ny);
}

//Script für PullDown Menüs
function surfto(form) {
var myindex=form.select1.selectedIndex;
if (form.select1.options[myindex].value != "0") {
location=form.select1.options[myindex].value;}
}
function surftonav(form) {
	var myindex=form.menue.selectedIndex;
	location=form.menue.options[myindex].value;
}
function surftoquick(form,id) {
	var myindex=form[id].selectedIndex;
	form[id].selectedIndex = 0;
	var myurl=form[id].options[myindex].value;
	
	if(myurl.indexOf('__##__')!=-1){
		var tmp_array = myurl.split('__##__');
		myurl = tmp_array[0];
		var mytarget = tmp_array[1];
		//wir brauchen keine unterscheidung zwischen verschiedenen popups,
		//könnten sie aber hier mit hilfe des targets implementieren
		if(mytarget=='popup'){
			pop(myurl);
		}else if(mytarget=='popup2'){
			popup2(myurl);
		}else{
			popup3(myurl);
		}
	}else{
		location=myurl;
	}
}
function surftokategorie(form) {
    var myindex=form.menue.selectedIndex;
    location=form.menue.options[myindex].value;
}

// Formular checken
function checkform (myform) {
  if(myform.Name.value=="")
  {
  document.getElementById("errorName").style.display="block";
  document.getElementById("Name").style.backgroundColor="#f3f3f4";
 
  return false;
  }
  if(myform.Email.value=="")
  {
 
  document.getElementById("errorEmail").style.display="block";
  document.getElementById("Email").style.backgroundColor="#f3f3f4";
  
  return false;
  }
  if(myform.Street.value=="")
  {
 
  document.getElementById("errorStreet").style.display="block";
  document.getElementById("Street").style.backgroundColor="#f3f3f4";
  
  return false;
  } 
  
   if(myform.Name.value!="" && myform.Email.value!="" && myform.Street.value!=""){
   setTimeout("location.href='response.html'",0);
   }
}
