var testzeich = /\S.+/;
var testmail = /(@)/;

function pruef_1(inhalt)
{
if(!nr_1.exec(inhalt)) return  false; else return true;
}

function pruef(inhalt)
{
if(!testzeich.exec(inhalt)) return  false; else return true;
}
function pruef_zahl(inhalt)
{
if(!Number(inhalt)) return  false; else return true;
}
function pruef_mail(inhalt)
{
if(!testmail.exec(inhalt)) return  false; else return true;

}

 


function angebot_anz(id,y){
	
	
	if(document.getElementById(id).style.display == 'block'){
		
		
		document.getElementById(id).style.top = y+'px'; 
		document.getElementById(id).style.display = 'none'; 
	
			
	}
	else
		{
	
	document.getElementById(id).style.top = y+'px'; 
	document.getElementById(id).style.display = 'block'; 
}
}

function send(){

if(!pruef(document.kontakt.vorname.value)) {alert(unescape("Bitte f%FCllen Sie den Vornamen aus!")); return;}
if(!pruef(document.kontakt.name.value)) {alert(unescape("Bitte f%FCllen Sie den Namen aus!")); return;}
if(!pruef_mail(document.kontakt.email.value)) {alert(unescape("Bitte f%FCllen Sie die E - Mailadresse aus!")); return;}
if(!pruef(document.kontakt.kommentar.value)) {alert(unescape("Bitte f%FCllen Sie den Kommentar aus!")); return;}
document.kontakt.submit();
}


function smsanz()
{
kalk = open("templates/smsconfig.php","kalkulator","width=340,height=550,left=200,top=100,status=no ,scrollbars=yes, resizable=no");
}

function sig(){
	signatur = open("sig/index.php","signatur","width=640,height=400,left=200,top=100,status=no ,scrollbars=yes, resizable=no");
	
}
function conv(){
	konvert = open("convert/index.php","konvert","width=640,height=400,left=200,top=100,status=no ,scrollbars=yes, resizable=no");
	
}

function pk(){
	post = open("postkarte/index.php","postkarten","width=970,height=750,left=200,top=100,status=no ,scrollbars=yes, resizable=no");
	
}
function bingo(){
	bingo = open("bingo/index.php","bingo","width=750,height=650,left=200,top=100,status=no ,scrollbars=yes, resizable=no");
	
}

function qr(){
	qrr = open("qr/index.php","qr","width=790,height=750,left=10,top=10,status=no ,scrollbars=yes, resizable=no");
	
}

function qr_s(){
	if(document.getElementById("qr").style.display == "none" || !document.getElementById("qr").style.display) var qr_a = 'block'; else var qr_a = 'none';
	document.getElementById("qr").style.display = qr_a;
}
