
function setIdioma(evt) 
{
	document.location.href="?appIdioma="+evt;
}


    _CurrentSubSubMenu = "";
function jsMenuTools(_CurrentMenu, _CurrentSubMenu) 
{
    $(_CurrentMenu).style.color = "#ff0000"; 
        if( $(_CurrentMenu + '_') ) { $(_CurrentMenu+"_").style.display = "block"; }

    if( $(_CurrentMenu + _CurrentSubMenu) ) { $(_CurrentMenu + _CurrentSubMenu).style.color = "#ff0000"; }

    if( _CurrentSubSubMenu != '') { $(_CurrentMenu + _CurrentSubMenu + "_").style.display = "block"; $(_CurrentMenu + _CurrentSubMenu + _CurrentSubSubMenu).style.color = "#ff0000"; }
}

function setLeftHeight()
{
    setTimeout("$('leftContent').style.height = $('rightContent').clientHeight;", 200);
    setTimeout("$('rollWhite').style.height = $('rightContent').clientHeight;", 200);
}

function getDate()
{
        var getMonth;   
    if( (new Date().getMonth()+1).toString().length > 1 ) { getMonth = new Date().getMonth() + 1; }
    else{ getMonth = "0" + (new Date().getMonth()+1).toString(); }

    document.write(new Date().getDate()+"<span style='margin-left:1px; margin-right:2px;'>/</span>"+getMonth+"<span style='margin-left:0px; margin-right:2px;'>/</span>"+new Date().getFullYear());
}

function sendContactForm() {
	if ((document.forms[0].destinatario[0].checked) || (document.forms[0].destinatario[1].checked) || (document.forms[0].destinatario[2].checked) ||(document.forms[0].destinatario[3].checked)) {
		if ((document.forms[0].nombre.value=='') || (document.forms[0].email.value=='') || (document.forms[0].asunto.value=='') || (document.forms[0].comentario.value=='')) {
			alert('Debe rellenar todos los campos');
		} else {
			document.forms[0].submit();
		}
	} else {
		alert('Debe seleccionar algún destinatario');
	}
}
