//Contents of this file are Copyright,loss.de - Webdesign und Programmierung / 17-06-2006
//
// Diese Software ist urheberrechtlich geschützt. 
// Es ist verboten, den Source Code zu veränden,
// sowie die Software mehr als lizensiert zu nutzen. 
// Zuwiderhandlungen werden strafrechtlich verfolgt.


function stoperror(){
return true
}
window.onerror=stoperror



local = new Array (105,110,102,111);
local1 = new Array (109,111,111,114,101,97,112,105,120,101,108);
local2 = new Array (99,111,109);
local_part  = '';
local_part1 = '';
local_part2 = '';
for (i=0; i<local.length; local_part += String.fromCharCode(local[i]), i++) ; 
for (i=0; i<local1.length; local_part1 += String.fromCharCode(local1[i]), i++) ;
for (i=0; i<local2.length; local_part2 += String.fromCharCode(local2[i]), i++) ;
var adresse = local_part + String.fromCharCode(64) + local_part1+String.fromCharCode(46)+local_part2;
var e_link = "<a href='#' onclick=\"this.href='mail'+'to:'+adresse;\" onfocus=this.blur()"; 


// kontakt, impressum 
function email1()
{
document.write(e_link+'>'+adresse+'</a>');
}




function form_test(theForm)
{

if (theForm.name.value == "")
  {    
    alert("Bitte geben Sie Ihren Namen an!");    
    theForm.name.focus();
    return (false);
  }

if (theForm.email.value == "")
  {    
    alert("Bitte geben Sie Ihre E-Mail-Adresse an!");    
    theForm.email.focus();
    return (false);
  }
else if (theForm.email.value.search(/ /)!= '-1')
  {    
    alert("Bitte geben Sie Ihre E-Mail-Adresse ohne Leerzeichen an!");    
    theForm.email.focus();
    return (false);
  }

s=theForm.email.value.split(/@/);

if((s.length !=2) || s[0]=='' || s[1]=='')
  {    
    alert("E-Mail-Adressen haben das Format \"Benutzername@Domainname\"");    
    theForm.email.focus();
    return (false);
  }

if
   (theForm.email.value.indexOf('@')=='-1' || theForm.email.value.indexOf('.')=='-1')
  {
   alert("Bitte überprüfen Sie Ihre E-Mail-Adresse!");
   theForm.email.select();
   theForm.email.focus();
   return (false);
  }
  
return (true);
}
