<!-- 
//					Reload Fix für Netscape					//

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//					Neues Fenster mit Bild öffnen					//

function openPictureWindow(imageName,imageWidth,imageHeight,alt) 
{ 
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><meta http-equiv="imagetoolbar" content="no"><BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" background="../img/warten.gif" onBlur="self.close()">'); 
	newWindow.document.write('<IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' ALT="'+alt+'">'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 

function druckWindow(imageName,imageWidth,imageHeight,alt) 
{ 
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>'+alt+'</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><meta http-equiv="imagetoolbar" content="no"><BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" background="../img/warten.gif">'); 
	newWindow.document.write('<a href="javascript:self.print();"><IMG SRC='+imageName+' WIDTH='+imageWidth+' HEIGHT='+imageHeight+' ALT="Zum drucken bitte klicken!" border="0"></a>'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 

//					Formular validieren				//

function MM_validateForm() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' muss eine E-mail Adresse enthalten.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (val!=''+num) errors+='- '+nm+' darf nur Zahlen enthalten.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' muss eine Zahl zwischen '+min+' und '+max+' enthalten.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' muss ausgefüllt werden.\n'; }
  } if (errors) alert('Es fehlen Angaben !\n'+errors);
  document.MM_returnValue = (errors == '');
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

if ((( navigator.appName == 'Netscape' ) && (navigator.appVersion.charAt(0) != "4")) | (navigator.appName != 'Netscape')) {
	document.write("<LINK href=../css/format_w3.css type=text/css rel=StyleSheet>");
}else{
	document.write("<LINK href=../css/format.css type=text/css rel=StyleSheet>");
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

function turnon(menuitem) {
	// Navigator 4 ausschließen...
	if (((navigator.appName == 'Netscape' ) && (navigator.appVersion.charAt(0) != "4")) |(navigator.appName != 'Netscape')) {
			document.getElementById(menuitem).style.background='#CCCCCC';
	}
}

function turnoff(menuitem) {
	// Navigator 4 ausschließen...
	if ((( navigator.appName == 'Netscape' ) && (navigator.appVersion.charAt(0) != "4")) | (navigator.appName != 'Netscape')) {
			document.getElementById(menuitem).style.background='#CCCCFF';
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
	function vfw()
	{
	open('../edit/vfw.php','vfw','menubar=yes,scrollbars=yes,width=400,height=400');
	}


	function gw()
	{
	open('../edit/gw.php','gw','menubar=yes,scrollbars=yes,width=400,height=400');
	}
*/

	function vfw()
	{
	open('http:\/\/www.autoscout24.de/custom/list.asp?language=ger&member=25318333','autoscout','menubar=yes,scrollbars=yes,width=630,height=400');
	}

	function bau1()
	{
	open('../plugin/galerie1/index.html','bau','menubar=yes,scrollbars=yes,width=650,height=350');
	}

	function bau2()
	{
	open('../plugin/galerie2/index.html','bau','menubar=yes,scrollbars=yes,width=650,height=350');
	}

	function bau3()
	{
	open('../plugin/galerie3/index.html','bau','menubar=yes,scrollbars=yes,width=650,height=350');
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

function pop_up(site,width,height) {
//function pop_up(site) {
	remote = window.open("","remotewin","fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	//remote.location.href = "remote.html";
	remote.location.href = site;
	remote.resizeTo(width,height);
	remote.moveTo(10,100);
	remote.focus();
	
	if (remote.opener == null) remote.opener = window;
	remote.opener.name = "opener";
}

//-->