function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//Jump Menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

////////CAMBIA IMAGEN//////////////
    function cambio(url)
    {
	var img
        document.images.contenedor.src = url;
    }
/////////////////////////////////////

<!--

function checkComm(field) {
  if (field.value.indexOf("'") != -1) {
    alert("Por Favor NO ingrese Comillas en los campos\n");
  }
  if (field.value.indexOf("\"") != -1) {
    alert("Por Favor NO ingrese Comillas en los campos\n");
  }
}


function checkRequiredFields(input)
{

    var requiredFields = new Array("nombre","apellido","pais","telefono","email");

    // TEXT TO DISPLAY THAT DESCRIBES THE MISSING FIELD(S) TO THE USER
    var fieldNames = new Array("Nombre","Apellido","País","Teléfono","E-Mail");


    // YOU SHOULD NOT NEED TO MAKE ANY CHANGES BELOW THIS POINT ------

    var fieldCheck   = true;
    var fieldsNeeded = "\nPor favor complete los siguiente campo(s):\n\n\t";

    for(var fieldNum=0; fieldNum < requiredFields.length; fieldNum++) {
        if ((input.elements[requiredFields[fieldNum]].value == "") ||
            (input.elements[requiredFields[fieldNum]].value == " ")) {

            fieldsNeeded += fieldNames[fieldNum] + "\n\t";
            fieldCheck = false;
        }
    }

    // ALL REQUIRED FIELDS HAVE BEEN ENTERED
    if (fieldCheck == true)
    {
        return true;

    }
    // SOME REQUIRED FIELDS ARE MISSING VALUES
    else
    {
        alert(fieldsNeeded);
        return false;
    }

}

//-->

//////////////////////////////////////////////////////////////////////////////

function aparece(){
document.all.inicio2.style.display='block'
document.all.inicio3.style.display='block'
}


function news(n){
var n
w=760
h=420
window.open('news.php?id='+n,'aviso','scrollbars=yes,top='+Math.floor(screen.height/2-h/2)+',left='+Math.floor(screen.width/2-w/2)+',width='+w+',height='+h+',resizable=no');
}
