
// JavaScript Document
<!--
// Preistabellen

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

function newPop(href,t,l,d,s1,m,s2,r,c,w,h,left,top) {
  if(parent.artxpop){parent.artxpop.close();}
  artxpop=window.open(href,"_blank","toolbar="+t+",location="+l+",directories="+d+",status="+s1+",menubar="+m+",scrollbars="+s2+",resizable="+r+",copyhistory="+c+",width="+w+",height="+h);}

function xx_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.xx_p) d.xx_p=new Array();
    var i,j=d.xx_p.length,a=xx_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.xx_p[j]=new Image; d.xx_p[j++].src=a[i];}}}

function xx_findObj(n, d) { //v4.01
  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=xx_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;}

function xx_swapImage() { //v3.0
  var i,j=0,x,a=xx_swapImage.arguments; document.xx_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=xx_findObj(a[i]))!=null){document.xx_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
   
function makeHelpWindow(fname,w,h)
      {newWindow = window.open(fname,"_blank","scrollbars=no,resizable=yes,width=" + w + ",height=" + h )}

function xx_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function xx_goToURL() { //v3.0
  var i, args=xx_goToURL.arguments; document.xx_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function xx_findObj(n, d) { //v4.01
  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=xx_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function xx_showHideLayers() { //v6.0
  var i,p,v,obj,args=xx_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=xx_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
// WEBHITS-REFERENZ-CODE
if ((document.referrer.length > 0) && (document.images) && (document.referrer.toLowerCase().indexOf('art-x.de') < 0)&& (document.referrer.toLowerCase().indexOf('artx.de') < 0)&&(document.referrer.toLowerCase().indexOf('artx.eu') < 0)&& (document.referrer.toLowerCase().indexOf('art-x.eu') < 0)) {refstat = new Image(1,1);refstat.src = "http://www.webhits.de/cgi/refstat?df=53668&ref="+escape(document.referrer);}

function showdetails(divname)
		{if	(document.getElementById(divname).style.display!='none')
				{document.getElementById(divname).style.display='none';}
				else {document.getElementById(divname).style.display='';}}

function checkForm()
{
if(document.mailer.name.value=="")
  { alert ("Bitte geben Sie Ihren Namen ein!");
    document.mailer.name.focus();
    return false;}
if(document.mailer.telefon.value=="")
  { alert ("Bitte geben Sie Ihre Telefonnummer ein!");
    document.mailer.telefon.focus();
    return false;}
if (document.mailer.email.value=="")
  { alert ("Bitte geben Sie Ihre E-Mailadresse ein!");
    document.mailer.email.focus();
    return false;}
if(document.mailer.email.value.indexOf('@')==-1 ||document.mailer.email.value.indexOf('.')==-1)
  { alert ("Eine gültige Emailadresse enthält ein\n'@' (At-Zeichen) und einen '.' (Punkt).");
    document.mailer.email.focus();
    return false;}
 }

//-->
