function formulartest()
{
  if (document.adressdaten.eintragstitel.value == "")
  {
    alert("Bitte tragen Sie Ihren Eintragstitel ein");
    document.adressdaten.eintragstitel.focus();
    return false;
  }
  if (document.adressdaten.beschreibung.value == "")
  {
    alert("Bitte tragen Sie Ihre Beschreibung ein");
    document.adressdaten.beschreibung.focus();
    return false;
  }
  if (document.adressdaten.handel.checked == false &&
    document.adressdaten.restaurierung.checked == false &&
    document.adressdaten.auktionen.checked == false &&
    document.adressdaten.onlineshops.checked == false&&
    document.adressdaten.sammler.checked == false)
  {
    alert("Bitte wählen Sie mindestens eine Sparte aus");
    return false;
  }
  if (document.adressdaten.anrede.value == "Bitte")
  {
    alert("Bitte wählen Sie Ihre Anrede");
    document.adressdaten.anrede.focus();
    return false;
  }
  if (document.adressdaten.vorname.value == "")
  {
    alert("Bitte geben Sie Ihren Vornamen ein");
    document.adressdaten.vorname.focus();
    return false;
  }
  if (document.adressdaten.nachname.value == "")
  {
    alert("Bitte geben Sie Ihren Nachnamen ein");
    document.adressdaten.nachname.focus();
    return false;
  }
  if (document.adressdaten.strasse.value == "")
  {
    alert("Bitte geben Sie Ihre Strasse ein");
    document.adressdaten.strasse.focus();
    return false;
  }
  if (document.adressdaten.hausnummer.value == "")
  {
    alert("Bitte geben Sie Ihre Hausnummer ein");
    document.adressdaten.hausnummer.focus();
    return false;
  }
  if (document.adressdaten.plz.value == "")
  {
    alert("Bitte geben Sie Ihre Postleitzahl ein");
    document.adressdaten.plz.focus();
    return false;
  }
  if (document.adressdaten.ort.value == "")
  {
    alert("Bitte geben Sie Ihren Wohnort ein");
    document.adressdaten.ort.focus();
    return false;
  }
  if (document.adressdaten.bundesland.value == "Bitte" || document.adressdaten.bundesland.value == false)
  {
    alert("Bitte geben Sie Ihr Bundesland oder Land ein");
    document.adressdaten.bundesland.focus();
    return false;
  }
  if (document.adressdaten.vorwahl.value == "")
  {
    alert("Bitte geben Sie Ihre Telefonvorwahl ein");
    document.adressdaten.vorwahl.focus();
    return false;
  }
  var chkZ = 1;
  for(i=0;i<document.adressdaten.vorwahl.value.length;++i) {
  if(document.adressdaten.vorwahl.value.charAt(i) < "0" ||                                       document.adressdaten.vorwahl.value.charAt(i) > "9")
  chkZ = -1;
  if(chkZ == -1) {
  alert('Bitte tragen Sie nur Nummern ein');
  document.adressdaten.vorwahl.focus();
  return false;
  }
  }
  if (document.adressdaten.telefon.value == "")
  {
    alert("Bitte geben Sie Ihre Telefonnummer ein");
    document.adressdaten.telefon.focus();
    return false;
  }
  var chkZ = 1;
  for(i=0;i<document.adressdaten.telefon.value.length;++i) {
  if(document.adressdaten.telefon.value.charAt(i) < "0" ||                                       document.adressdaten.telefon.value.charAt(i) > "9")
  chkZ = -1;
  if(chkZ == -1) {
  alert('Bitte tragen Sie nur Nummern ein');
  document.adressdaten.telefon.focus();
  return false;
  }
  }
  if (document.adressdaten.email.value == "")
  {
    alert("Bitte geben Sie Ihre Email-Adresse ein");
    document.adressdaten.email.focus();
    return false;
  }
  if (document.adressdaten.email.value.indexOf('@') == -1 || document.adressdaten.email.value.indexOf('.') == -1)
  {
    alert("Keine gültige E-Mail-Adresse. Bitte korrigieren Sie Ihre Eingabe");
    document.adressdaten.email.focus();
    return false;
  }
  var agree=confirm("Ich bin mit der Übermittlung meiner Daten einverstanden und versichere die Rechtssicherheit meines Eintrages!");
  if (agree)
    return true ;
  else
    return false ;

}







function formulartest_auktion()
{
  if (document.adressdaten.anrede.value == "Bitte")
  {
    alert("Bitte wählen Sie Ihre Anrede");
    document.adressdaten.anrede.focus();
    return false;
  }
  if (document.adressdaten.vorname.value == "")
  {
    alert("Bitte geben Sie Ihren Vornamen ein");
    document.adressdaten.vorname.focus();
    return false;
  }
  if (document.adressdaten.nachname.value == "")
  {
    alert("Bitte geben Sie Ihren Nachnamen ein");
    document.adressdaten.nachname.focus();
    return false;
  }
  if (document.adressdaten.strasse.value == "")
  {
    alert("Bitte geben Sie Ihre Strasse ein");
    document.adressdaten.strasse.focus();
    return false;
  }
  if (document.adressdaten.hausnummer.value == "")
  {
    alert("Bitte geben Sie Ihre Hausnummer ein");
    document.adressdaten.hausnummer.focus();
    return false;
  }
  if (document.adressdaten.plz.value == "")
  {
    alert("Bitte geben Sie Ihre Postleitzahl ein");
    document.adressdaten.plz.focus();
    return false;
  }
  if (document.adressdaten.ort.value == "")
  {
    alert("Bitte geben Sie Ihren Wohnort ein");
    document.adressdaten.ort.focus();
    return false;
  }
  if (document.adressdaten.bundesland.value == "Bitte" || document.adressdaten.bundesland.value == false)
  {
    alert("Bitte geben Sie Ihr Bundesland oder Land ein");
    document.adressdaten.bundesland.focus();
    return false;
  }
  if (document.adressdaten.vorwahl.value == "")
  {
    alert("Bitte geben Sie Ihre Telefonvorwahl ein");
    document.adressdaten.vorwahl.focus();
    return false;
  }
  var chkZ = 1;
  for(i=0;i<document.adressdaten.vorwahl.value.length;++i) {
  if(document.adressdaten.vorwahl.value.charAt(i) < "0" ||                                       document.adressdaten.vorwahl.value.charAt(i) > "9")
  chkZ = -1;
  if(chkZ == -1) {
  alert('Bitte tragen Sie nur Nummern ein');
  document.adressdaten.vorwahl.focus();
  return false;
  }
  }
  if (document.adressdaten.telefon.value == "")
  {
    alert("Bitte geben Sie Ihre Telefonnummer ein");
    document.adressdaten.telefon.focus();
    return false;
  }
  var chkZ = 1;
  for(i=0;i<document.adressdaten.telefon.value.length;++i) {
  if(document.adressdaten.telefon.value.charAt(i) < "0" ||                                       document.adressdaten.telefon.value.charAt(i) > "9")
  chkZ = -1;
  if(chkZ == -1) {
  alert('Bitte tragen Sie nur Nummern ein');
  document.adressdaten.telefon.focus();
  return false;
  }
  }
  if (document.adressdaten.email.value == "")
  {
    alert("Bitte geben Sie Ihre Email-Adresse ein");
    document.adressdaten.email.focus();
    return false;
  }
  if (document.adressdaten.email.value.indexOf('@') == -1 || document.adressdaten.email.value.indexOf('.') == -1)
  {
    alert("Keine gültige E-Mail-Adresse. Bitte korrigieren Sie Ihre Eingabe");
    document.adressdaten.email.focus();
    return false;
  }
  var agree=confirm("Ich bin mit der Übermittlung meiner Daten einverstanden!");
  if (agree)
    return true ;
  else
    return false ;

}





function auktion_anfrage()
{
  if (document.anfrageform.anfrage.value == "")
  {
    alert("Tragen Sie Ihre Anfrage bitte in das Textfeld ein.");
    document.anfrageform.anfrage.focus();
    return false;
  }
}




function ein(str) {
str.value='';
}



function message() {
if(document.kontakt.absender_name.value == 'Vorname Nachname' ||
   document.kontakt.absender_name.value == '') {
   alert('Bitte tragen Sie Ihren Namen ein!');
   document.kontakt.absender_name.focus();
   return false;
   }
if(document.kontakt.absender_mail.value.indexOf('E-mail')==-1 ||
   document.kontakt.absender_mail.value.indexOf('')==-1) {
   if(document.kontakt.absender_mail.value.indexOf('@')==-1 ||
   document.kontakt.absender_mail.value.indexOf('.')==-1) {
   alert('Bitte tragen Sie eine gültige E-Mail Adresse ein!');
   document.kontakt.absender_mail.focus();
   return false;
   }
   }
document.kontakt.submit();
return true;
}




function logintest()
{
  if (document.userlogin.usern.value == "")
  {
    alert("Bitte geben Sie Ihren Usernamen ein");
    document.userlogin.usern.focus();
    return false;
  }
  if (document.userlogin.userpw.value == "")
  {
    alert("Bitte geben Sie Ihr Passwort ein");
    document.userlogin.userpw.focus();
    return false;
  }
}

function passford()
{
  if (document.anforderung.usern.value == "")
  {
    alert("Bitte geben Sie Ihren Usernamen ein");
    document.anforderung.usern.focus();
    return false;
  }
}





function verifyCompatibleBrowser(){
    this.ver=navigator.appVersion
    this.dom=document.getElementById?1:0
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;

    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
    return this
}
bw=new verifyCompatibleBrowser()


var speed=50

var loop, timer

function ConstructObject(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.up=MoveAreaUp;this.down=MoveAreaDown;
    this.MoveArea=MoveArea; this.x; this.y;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}

function ConstructObject2(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.up=MoveAreaUp2;this.down=MoveAreaDown2;
    this.MoveArea2=MoveArea2; this.x; this.y;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}


function MoveArea(x,y){
    this.x=x;this.y=y
    this.css.left=this.x
    this.css.top=this.y
}

function MoveAreaDown(move){
        if(this.y>-this.scrollHeight+objContainer.clipHeight){
    this.MoveArea(0,this.y-move)
    if(loop) setTimeout(this.obj+".down("+move+")",speed)
        }
}
function MoveAreaUp(move){
        if(this.y<0){
    this.MoveArea(0,this.y-move)
    if(loop) setTimeout(this.obj+".up("+move+")",speed)
        }
}
function PerformScroll(speed){
        if(initialised){
                loop=true;
                if(speed>0) objScroller.down(speed)
                else objScroller.up(speed)
        }
}


function MoveArea2(x,y){
    this.x=x;this.y=y
    this.css.left=this.x
    this.css.top=this.y
}

function MoveAreaDown2(move){
        if(this.y>-this.scrollHeight+objContainer2.clipHeight){
    this.MoveArea2(0,this.y-move)
    if(loop) setTimeout(this.obj+".down("+move+")",speed)
        }
}
function MoveAreaUp2(move){
        if(this.y<0){
    this.MoveArea2(0,this.y-move)
    if(loop) setTimeout(this.obj+".up("+move+")",speed)
        }
}

function PerformScroll2(speed){
        if(initialised){
                loop=true;
                if(speed>0) objScroller2.down(speed)
                else objScroller2.up(speed)
        }
}


function CeaseScroll(){
    loop=false
    if(timer) clearTimeout(timer)
}

function CeaseScroll2(){
    loop=false
    if(timer) clearTimeout(timer)
}




var initialised;
function InitialiseScrollableArea(){
    objContainer=new ConstructObject('divContainer')
    objScroller=new ConstructObject('divContent','divContainer')
    objScroller.MoveArea(0,0)
    objContainer.css.visibility='visible'
    initialised=true;
}
