function mask(n,d,l) {
	//EMAIL MASKIERUNG
	var string = "<a href='"+"ma"+"ilt"+"o:"+n+"@"+d+"'>"+l+"</a>";
	document.write(string);
}

function win(page,b,h) {
	//POPUP FUNKTION
	pwin = window.open(page, "popupwin", "width="+b+", height="+h+", resizable=yes, location=no, menubar=no, scrollbars=no, status=no");
	pwin.focus(); 
}
	
function formwin(nic,subject) { if (!nic) { var nic = ""; } if (!subject) { var subject = ""; }
	//POPUPFUNKTION FÜR MAILFORM
	mailwin = window.open("<? echo $cfg[base]; ?>mail_form.php?sub="+subject+"&nic="+nic, "mailpop", "width=400, height=570, resizable=yes, location=no, menubar=no, scrollbars=yes, status=no");
	mailwin.focus(); 
}
	
function OpenPopUp(theURL,winName,features) {  
	window.open(theURL,winName,features);
}

function checkIt(id){
	   obj = document.getElementById(id);
	   if(obj.style.display != 'block'){
	     obj.style.display = 'block';
	   }
	   else{
	     obj.style.display = 'none';
	  }
 }

function block(id){
	   obj = document.getElementById(id);
       obj.style.display = 'block';
}

function none(id){
	   obj = document.getElementById(id);
       obj.style.display = 'none';
}
