function zoom(bild,breite,hoehe,bname)
{
var t;
var para;
var nam;
var fenst;

t = "<img src="+bild+" width="+breite+" height="+hoehe+">\n";
para = "width="+breite+",height="+hoehe+",scrollbars=no,menubar=no,resizable=no,top=10,left=10,innerHeight="+hoehe+",innerWidth="+breite;

fenst=window.open("",bname,para);
fenst.document.write("<HTML\n><HEAD><TITLE>Zoom</TITLE></HEAD>\n<BODY leftmargin=\"0\" topmargin=\"0\" marginheigth=\"0\" marginwidth=\"0\">\n");
fenst.document.write(t);
fenst.document.write("</BODY>\n</HTML>");
fenst.document.close();
//fenst.resizeTo(breite,hoehe);
fenst.focus();
}

function nw1(tit,bild,alt) 
{
	Format="height=435,width=538";
	neu=open("","neuesFenster",format);
	neu.document.open();
	neu.focus();
	with (neu.document) 
	{
		write("<html><head><title></title></head><body leftmargin=\"0\" topmargin=\"0\" bgcolor=\"#dddddd\"><table><tr><td align='center'>");
		image="referenz/"+bild;

		write("<img width='533' src='"+image+"' alt='"+alt+"'>");
		write("<br><b><i>"+tit+"</i></b></td></tr></table></body></html>");
	}
	neu.document.close();
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function GoF(ziel) {
	ziel="http://www.ifd-gera.de/sz/tservice/"+ziel+".php";
	window.location.href=ziel; 
}

function info(ziel) {
	ziel="mailto:info@"+ziel+".de";
	window.location.href=ziel; 
}

function infphp(ziel) {
	ziel="info@"+ziel+".de";
	window.location.href=ziel; 
}

function GoH(ziel) {
	ziel="http://www.tagungsservice.de/"+ziel+".html";
	window.location.href=ziel; 
}

function GoHp(ziel) {
	ziel="http://www.tagungsservice.de/"+ziel+".php";
	window.location.href=ziel; 
}

function GoS(ziel) {
	ziel="https://ssl.kundenserver.de/service.ifd-gera.de/"+ziel+".php";
	window.location.href=ziel; 
}

function mailtest(){
	b=1;
	if(document.Form1.NName.value == ""){
		b=0;
		alert("Bitte geben Sie Ihren Namen ein");
	}
	if((document.Form1.Anreise.value == "am")||(document.Form1.Anreise.value == "")){
		b=0;
		alert("Wann wollen Sie anreisen?");
	}
	if((document.Form1.Abreise.value == "am")||(document.Form1.Abreise.value == "")){
		b=0;
		alert("Wann wollen Sie abreisen?");
	}
	if((document.Form1.Hotel.checked)&&(document.Form1.Jugendherberge.checked)){
		b=0;
		alert("Wählen Sie Hotel ODER Jugendherberge");
	}
	if((!document.Form1.Hotel.checked)&&(!document.Form1.Jugendherberge.checked)){
		b=0;
		alert("Wählen Sie Hotel oder Jugendherberge");
	}
	if ((document.Form1.email.value.indexOf("@")==-1)||(document.Form1.email.value.indexOf(".")==-1)){
		b=0;
   		alert("Die Email-Adresse enthält Fehler...");
	}

	if (b ==0){
		return false;
	}
	else{
		return true;
	}
} 

function buchtest(){
	b=1;
	if(document.Form2.NameTagung.value == ""){
		b=0;
		alert("Für welche Tagung soll abgebucht werden?");
	}
	if(document.Form2.Betrag.value == ""){
		b=0;
		alert("Welcher Betrag soll abgebucht werden?");
	}
	if(document.Form2.NVName.value == ""){
		b=0;
		alert("Geben Sie bitte Ihren Namen ein!");
	}
	if ((document.Form2.email.value.indexOf("@")==-1)||(document.Form1.email.value.indexOf(".")==-1)){
		b=0;
   		alert("Die Email-Adresse enthält Fehler...");
	}
	if(document.Form2.Anschrift.value == ""){
		b=0;
		alert("Geben Sie bitte Ihre Anschrift ein!");
	}
	if(document.Form2.Land.value == ""){
		b=0;
		alert("Geben Sie bitte Ihre Land ein!");
	}
//CardNumber1-4
   	for(i=0;i<document.Form2.CN1.value.length;++i){
    	if((document.Form2.CN1.value.charAt(i) < "0")||(document.Form2.CN1.value.charAt(i) > "9")){
       		b = 0;
			alert("Ungültiges Zeichen in der Karten-Nummer");
		}
    }
	if (document.Form2.CN1.value.length != 4){
		b=0;
		alert("Ungültige Kartennummer");
	}
//CardNumber5-8
   	for(i=0;i<document.Form2.CN2.value.length;++i){
    	if((document.Form2.CN2.value.charAt(i) < "0")||(document.Form2.CN2.value.charAt(i) > "9")){
       		b = 0;
			alert("Ungültiges Zeichen in der Karten-Nummer");
		}
    }
	if (document.Form2.CN2.value.length != 4){
		b=0;
		alert("Ungültige Kartennummer");
	}
//CardNumber9-12
   	for(i=0;i<document.Form2.CN3.value.length;++i){
    	if((document.Form2.CN3.value.charAt(i) < "0")||(document.Form2.CN3.value.charAt(i) > "9")){
       		b = 0;
			alert("Ungültiges Zeichen in der Karten-Nummer");
		}
    }
	if (document.Form2.CN3.value.length != 4){
		b=0;
		alert("Ungültige Kartennummer");
	}
//CardNumber13-16
   	for(i=0;i<document.Form2.CN4.value.length;++i){
    	if((document.Form2.CN4.value.charAt(i) < "0")||(document.Form2.CN4.value.charAt(i) > "9")){
       		b = 0;
			alert("Ungültiges Zeichen in der Karten-Nummer");
		}
    }
	if (document.Form2.CN4.value.length < 2){
		b=0;
		alert("Ungültige Kartennummer");
	}

	if (b ==0){
		return false;
	}
	else{
		return true;
	}
}
function kontest(){
	b=1;
	if(document.Form1.NName.value == ""){
		b=0;
		alert("Bitte geben Sie Ihren Namen ein");
	}
	if ((document.Form1.email.value.indexOf("@")==-1)||(document.Form1.email.value.indexOf(".")==-1)){
		b=0;
   		alert("Die Email-Adresse enthält Fehler...");
	}
	if(document.Form1.Mitt.value == ""){
		b=0;
		alert("Sie haben noch keine Mitteilung eingegeben");
	}

	if (b ==0){
		return false;
	}
	else{
		return true;
	}
} 

function antest(){
	b=1;
	if(document.Form1.gepver.value == "Geplante Veranstaltung"){
		b=0;
		alert("Welche Veranstaltung planen Sie?");
	}
	if(document.Form1.NName.value == "Verantwortliche/r"){
		b=0;
		alert("Bitte geben Sie Ihren Namen ein");
	}
	if ((document.Form1.email.value.indexOf("@")==-1)||(document.Form1.email.value.indexOf(".")==-1)){
		b=0;
   		alert("Die Email-Adresse enthält Fehler...");
	}
	if(document.Form1.von.value == "von"){
		b=0;
		alert("Wann beginnt Ihre Veranstaltung?");
	}
	if(document.Form1.bis.value == "bis"){
		b=0;
		alert("Wann endet Ihre Veranstaltung?");
	}

	if (b ==0){
		return false;
	}
	else{
		return true;
	}
} 


function restest(){
	b=1;
	if((document.Form1.anr.value == "am")||(document.Form1.anr.value == "")){
		b=0;
		alert("Wann wollen Sie anreisen?");
	}
	if((document.Form1.abr.value == "am")||(document.Form1.abr.value == "")){
		b=0;
		alert("Wann wollen Sie abreisen?");
	}
	if((document.Form1.nnam.value == "")&&(document.Form1.str.value == "")&&(document.Form1.ort.value == "")&&(document.Form1.land.value == "")&&(document.Form1.tel.value == ""))
		{
		b=0;
		alert("Anschrift nicht vollständig");
	}
	if ((document.Form1.email.value.indexOf("@")==-1)||(document.Form1.email.value.indexOf(".")==-1)){
		b=0;
   		alert("Die Email-Adresse enthält Fehler...");
	}

	if (b ==0){
		return false;
	}
	else{
		return true;
	}
} 



function restest_eng(){
	b=1;
	if((document.Form1.anr.value == "on")||(document.Form1.anr.value == "")){
		b=0;
		alert("When are you arriving?");
	}
	if((document.Form1.abr.value == "on")||(document.Form1.abr.value == "")){
		b=0;
		alert("When are you leaving?");
	}
	if(document.Form1.nnam.value == "")
		{
		b=0;
		alert("Please, insert your name!");
	}
	if(document.Form1.str.value == "")
		{
		b=0;
		alert("Please, insert your adress!");
	}
	if(document.Form1.ort.value == "")
		{
		b=0;
		alert("Please, insert your country and postal code!");
	}
	if (document.Form1.email.value==""){
		b=0;
   		alert("Please, insert your phone, fax or email!");
	}

	if (b ==0){
		return false;
	}
	else{
		return true;
	}
} 