function tg(ind,id,max){
	var showdiv = document.getElementById('switch'+ind+'div'+id)

	for (i=1; i<=max; i++) {
		hidediv = document.getElementById('switch'+ind+'div'+ i)
		hidediv.style.display = 'none'
		}

		showdiv.style.display = 'block'
}

function pokaz(ref) {
	if (ref) document.getElementById(ref).style.display = 'block';	
}

function ukryj(ref) {
	if (ref) document.getElementById(ref).style.display = 'none';	
}

function nS(user,domain) {
         locationstring = "mailto:" + user + "@" + domain;
         window.location = locationstring;
} 

function validateForm_en(AForm) {
if (!AForm.subject.value) {
        alert("Enter message title");
        return false; }

    if (!AForm.body.value) {
        alert("Enter message body");
        return false;
        }

    if (!AForm.signature.value) {
        alert("Enter signature");
        return false;
       	}
       	
     if (!AForm.email.value) {
        alert("Enter e-mail address");
        return false;
       	}   	
    else {
        return true;
    }
}
function validateForm_pl(AForm) {
if (!AForm.subject.value) {
        alert("Wpisz tytuł wiadomości");
        return false; }

    if (!AForm.body.value) {
        alert("Wpisz treść wiadomości");
        return false;
        }

    if (!AForm.signature.value) {
        alert("Wpisz podpis");
        return false;
       	}
       	
     if (!AForm.email.value) {
        alert("Wpisz adres e-mail");
        return false;
       	}   	
    else {
        return true;
    }
}