function gallery (id,num) {
window.open("gallery.php?id=" + id + "&num=" + num,"Galerie","height=100,width=100");
}

function merken(id){
url = document.location.href;
document.location.href="remember_this.php?url=" + url +"&id=" + id;
}

function druckfenster(id){
    if (id)
	   { window.open("printexpose.php?id=" + id,"RosemarieBaur","width=800,height=800,scrollbars=1,resizable=1"); }
    else
	   { window.open("printexpose.php","RosemarieBaur","width=800,height=800,scrollbars=1,resizable=1"); }
}

function ladeblender(wer,was){
    document.getElementById("blender_" + wer).style.visibility = was;
}

function logout(){
    document.location.href="modul_logout_inc.php?url=" + document.location.href;
}

function login(){
        ladeblender('login','visible');
}

function loginRetry(){
    document.retry.submit();

}
function abbrechen(){
    document.location.href=document.location.href;

}

function goSelf(){
    document.location.href=document.location.href;
}


function register(){
    ladeblender("login","hidden");
    ladeblender("register","visible");
}


function checkRegisterForm(){
    f = document.registerform;
    var check = false;

    if (f.email.value == "")
        check = true;
    
    if (f.vname.value == "")
        check = true;
    
    if (f.nname.value == "")
        check = true;
    
    if (f.telefon.value == "")
        check = true;
    
    if (f.strasse.value == "")
        check = true;
    
    if (f.hausnummer.value == "")
        check = true;
    
    if (f.plz.value == "")
        check = true;
    
    if (f.ort.value == "")
        check = true;
    
    if (f.land.value == "")
        check = true;
    
    if (f.pwd.value == "")
        check = true;

    if (f.valid.value != f.pwd.value)
        check = true;
    
    if (check == false){
        f.submit(); }
    else{
        alert("Пожалуйста, заполните все обязательные поля (*)."); }
}

function checkKontaktForm(){
    f = document.kontaktform;

    var check = false;

    if (f.email.value == "")
        check = true;
    
    if (f.vname.value == "")
        check = true;
    
    if (f.nname.value == "")
        check = true;
    
    if (f.telefon.value == "")
        check = true;
    
    if (f.strasse.value == "")
        check = true;
    
    if (f.hausnummer.value == "")
        check = true;
    
    if (f.plz.value == "")
        check = true;
    
    if (f.ort.value == "")
        check = true;
    
    if (f.land.value == "")
        check = true;
    
    if (f.agb.checked == false)
        check = true;

    if (check == false){
        f.submit(); }
    else{
        alert("Пожалуйста, заполните все обязательные поля (*) и подтвердите Ваше согласие с нашими общими условиями заключения сделок и взаимоотношений с клиентами."); }
}
function checkBilderForm(){
    f = document.bilderform;

    var check = false;

    if (f.fotodatei.value == "")
        check = true;

    if (check == false){
        f.submit(); }
    else{
        alert("Пожалуйста, выберите фотографию."); }
}

