function dispMap(kto,visibility){
	var who = document.getElementById(kto);
	if(who != 'undefined'){
	who.style.display=visibility;
	}
} 


function openPictureWindow(imageFilePath,alt,left,top) {  // v4.01
	
	var alt = alt || 'image';
	var left = left || 0;
	var top = top || 0;

		
	
	newWindow = window.open("", "newWindow", "width=100,height=100,scrollbars=no,resizable=yes,status=no,left="+left+", top="+top);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><script>var plusH = document.all ? 35 : 55; var plusW = document.all ? 10 : 10;</script><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src="'+imageFilePath+'"  onload="self.resizeTo(this.width+plusW,this.height+plusH);" alt="'+alt+'">'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	
	return;
}

function openPictureWindow2(imageId,alt,left,top) {  // v4.01
	
	var alt = alt || 'image';
	var left = left || 0;
	var top = top || 0;
			
	newWindow = window.open("/fotogaleria.php?id="+imageId, "newWindow", "width=100,height=100,scrollbars=no,resizable=yes,status=no,left="+left+", top="+top);	
	newWindow.focus();	
	return;
}

var radioCheckboxByParam = function(el, param)
{
	var value = $(el).attr(param);
	var checked = $(el).get(0).checked;
	
	var checkBoxCollection = $("input["+param+"='"+value+"']");	
	jQuery.each(checkBoxCollection, function() {													 					
	 	if(this.id != el.id)
			$(this).get(0).checked=false;		
	 });	
}

var selectOptByValue = function(field, sel){
	var opts = field.options;              
	for(var i=0; i<opts.length; i++){ 				    
		if(opts[i].value == sel){
			opts[i].selected=true;
		return;
		}
	}  
} 