function goURL() { //v3.0

  var i, args=goURL.arguments; document.returnValue = false;

  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");

}

/*function PopUp(url_pop)
    {
     var PopWidth=620;
     var PopHeight=382;
     var PopLeft = (window.screen.width-PopWidth)/2;
     var PopTop = ((window.screen.height-PopHeight)/2)+50;
fenster=window.open(url_pop,'fenster','toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width='+PopWidth+',height='+PopHeight+',top='+PopTop+',left='+PopLeft);
     }*/
/******************************wird nicht geblockt***********/
function PopUp(pDestination,pWinname,pBig) 
{
var vWidth=612;
var vHeight=520;
var vLeft=250;
var vTop=75;

if (screen)
  {
	 if (pBig == true)
	   {
		  vWidth = screen.width;
		  if (vWidth > 850)
		  vWidth = 850;
			vHeigth = screen.width / 2;
			if (vHeight > 520)
			  vHeigth = 520;
			}
	 else
	   {
		  vWidth = screen.width / 2;
			if (vWidth > 612)
			  vWidth = 612;
			if (vWidth < 612)
			  vWidth = 612;
			vHeigth = screen.width / 2;
			if (vHeight > 470)
			  vHeigth = 470;
			}	
	 if ((vLeft + vWidth + 10) > screen.width)
		  vLeft = screen.width - vWidth - 10;	  
	 if ((vTop + vHeight + 50) > screen.height)
			vTop = screen.height - vHeight - 50;	  
		}
	
nWindow = window.open (pDestination,pWinname,'width='+vWidth+',height='+vHeight+',resizable=yes,scrollbars=YES,toolbar=no,Left='+vLeft+',Top='+vTop+',status=no,directories=no,menubar=no,location=tabelle');
nWindow.self.focus();
}
function kf_PopUp(pDestination,pWinname,pBig) 
{
var vWidth=600;
var vHeight=382;
var vLeft=250;
var vTop=75;

if (screen)
  {
	 if (pBig == true)
	   {
		  vWidth = screen.width;
		  if (vWidth > 850)
		  vWidth = 850;
			vHeigth = screen.width / 2;
			if (vHeight > 520)
			  vHeigth = 520;
			}
	 else
	   {
		  vWidth = screen.width / 2;
			if (vWidth > 600)
			  vWidth = 600;
			if (vWidth < 600)
			  vWidth = 600;
			vHeigth = screen.width / 2;
			if (vHeight > 382)
			  vHeigth = 382;
			}	
	 if ((vLeft + vWidth + 10) > screen.width)
		  vLeft = screen.width - vWidth - 10;	  
	 if ((vTop + vHeight + 50) > screen.height)
			vTop = screen.height - vHeight - 50;	  
		}
	
nWindow = window.open (pDestination,pWinname,'width='+vWidth+',height='+vHeight+',resizable=yes,scrollbars=YES,toolbar=no,Left='+vLeft+',Top='+vTop+',status=no,directories=no,menubar=no,location=tabelle');
nWindow.self.focus();
}
/******************************wird nicht geblockt***********/

/*function kf_PopUp(url_pop)
    {
     var PopWidth=600;
     var PopHeight=382;
     var PopLeft = (window.screen.width-PopWidth)/2;
     var PopTop = ((window.screen.height-PopHeight)/2)+50;
fenster=window.open(url_pop,'fenster','toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=no,width='+PopWidth+',height='+PopHeight+',top='+PopTop+',left='+PopLeft);
     }*/

/*****************formularcheck_contact****************/

function check_form()
{
if(document.form.Anrede.value == false)  {
   alert("Bitte ergänzen Sie die Anrede!");
   document.form.Anrede.focus();
   return false;
}
if(document.form.Name.value == "")  {
   alert("Bitte Ihren Namen eingeben!");
   document.form.Name.focus();
   return false;
}

if(document.form.Ort.value == "") {
   alert("Bitte Ortsangabe ergänzen!");
   document.form.Ort.focus();
   return false;
}
if(document.form.fon.value == "") {
   alert("Sie haben noch keine Telefonnummer eingetragen!");
   document.form.fon.focus();
   return false;
}
if(document.form.Firma.value == "") {
   alert("Sie haben noch keine Firmenbezeichnung eingetragen!");
   document.form.Firma.focus();
   return false;
}
if(document.form.plz.value == "") {
   alert("Bitte ergänzen Sie die Postleitzahl!");
   document.form.plz.focus();
   return false;
}
if(document.form.email.value.indexOf('@') == -1) {
   alert("Bitte geben Sie eine gültige E-Mail Adresse an!");
   document.form.email.focus();
   return false;
}
}
/*****************ende formularcheck_contact****************/

	function check(){

    if(document.info.Name.value == ""){

  alert("Bitte geben Sie Ihren Namen ein!");

  document.info.Name.focus();

  return false;}
   
   if(document.info.Rufnummer.value == ""){

  alert("Bitte geben Sie Ihre Rufnummer ein!");

  document.info.Rufnummer.focus();

  return false;}
  

  if(document.info.FBAUTORESPONDTO.value == ""){

  alert("Bitte geben Sie Ihre E-Mailadresse ein!");

  document.info.FBAUTORESPONDTO.focus();

  return false;}
  
  if((document.info.FBAUTORESPONDTO.value != '')&&(document.info.FBAUTORESPONDTO.value.indexOf('@') == -1)){
  alert("Die angegebene Adresse ist keine gültige E-Mail Adresse. Bitte korrigieren Sie Ihre Angaben!");
  document.info.FBAUTORESPONDTO.focus();
  return false;}
  
  
      else{document.forms[0].submit();}

  return;

}
//Rollover Vorrausladen-Zurücksetzen-Bildaustausch
function ImgPreload() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=ImgPreload.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function RestoreImg() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function objFind(n, d) { //v3.0
  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=objFind(n,d.layers[i].document); return x;
}

function exchange() { //v3.0
  var i,j=0,x,a=exchange.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=objFind(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//ende-rollover

