function imprimir_mapa(){
	fr = document.getElementById('iframe_mapa');
	iframe_mapa.focus();
	window.iframe_mapa.print();
	}
	
	
//CALENDARIO
function calendario_events(obj, eventos){
	str  = "<div class=\"alt_Shadow\">";
		str += "<div class=\"alt_Content calendario_alt color2\">";
			for(i=0; i<eventos.length; i++){
				str += eventos[i];
				if(i<eventos.length-1) str += " <hr />";
			}
		str += "<div>";
	str += "</div>";
	
	createBoxMSG(obj, str);
}

//ALT
function createBoxMSG(obj, valor){
	boxMSG 					= document.createElement('div');
	boxMSG.id 				= "boxMSG";
	boxMSG.style.position 	= "absolute";
	boxMSG.style.zIndex 	= 10;
	boxMSG.innerHTML 		= valor;
	
	document.body.appendChild(boxMSG);
	obj.onmouseout 			= removeBoxMSG;
	obj.onmousemove 		= moveBox;
}

function moveBox(e){
	var posX, posY;
	if(e) _event = e;
	else  _event = event;
	
	boxMSG.style.left 	= (_event.clientX + document.documentElement.scrollLeft + 15) + "px";
	boxMSG.style.top 	= (_event.clientY + document.documentElement.scrollTop  + 15)  + "px";
}
	
function removeBoxMSG(){
	if (document.getElementById("boxMSG")){
		document.body.removeChild(boxMSG);
	}
}

//SHOW HIDDEN ELEMENT
function showHide(field, modeIni){
	var target = document.getElementById(field);
	if (target){
		if (!target.style.display) target.style.display = modeIni;
		else if (target.style.display == "none") target.style.display = "block";
		else									 target.style.display = "none";
	}
}
