
function copydata() {
    document.html1.year.value  = document.flash1.year.value;
    document.html1.month.value = document.flash1.month.value;
    document.html1.day.value   = document.flash1.day.value;
    document.html1.page.value  = document.flash1.page.value;
}

function copydata2() {
    document.html2.year.value  = document.flash2.year.value;
}


function checkyear(field) {
	var year = parseInt(field.value);
	if ((year > 1989) || (year < 1945) || (Number(field.value) != year)) {
		alert("Geben Sie bitte ein Jahr zwischen 1945 und 1989 ein");
	}
}

function checkday(field) {
	var day = parseInt(field.value);
	if ((day > 31) || (day < 1) || (Number(field.value) != day)) {
		alert("Geben Sie bitte einen Tag zwischen 1 und 31 an");
	}
}

function checkpage(field) {
	if (parseInt(field.value) != (Number(field.value))) {
		alert("Geben Sie bitte ein Seite an oder lassen sie das Feld frei!");
	}
}

function openFlash(seite,typ) {
	if (typ == null) typ = 'seite'; 
	// popup = window.open('/cgi-bin/az/flash.pl?' + typ + '=' + seite,'popup','width=750,height=640,scrollbars=yes');
	// popup = window.open('/cgi-bin/az/flash.pl?' + typ + '=' + seite,'popup','width=750,height=630');
	popup = window.open('/cgi-bin/az/flash.pl?' + typ + '=' + seite,'popup','width=770,height=630,scrollbars=yes');
	// popup = window.open('/cgi-bin/az/flash.pl?' + typ + '=' + seite,'popup','width=740,height=630');
}

function openHTML(seite,typ) {
	if (typ == null) typ = 'seite'; 
	popuphtml = window.open('/cgi-bin/az/flash.pl?html=1;' + typ + '=' + seite,'popuphtml');
}

function popupUmfrage() {
    umfragepopup = window.open('/umfrage/popup.html', 'umfragepopup','width=320,height=400,scrollbars=yes');
    if (umfragepopup) {
        umfragepopup.focus();
    }
}
