document.write(
	navigator.userAgent.indexOf('Mozilla/4')<0 || navigator.userAgent.indexOf('compatible')>=0
	?'<STYLE type="text/css"> DIV.shown { display:block }	DIV.hidden { display:none } </STYLE>'
	:'<STYLE type="text/css"> DIV.shown { display:block }	DIV.hidden { display:block } </STYLE>'
);

function flip(name) {
	x = document.getElementById('div_' + name);
	if (x.className == "hidden") {
		x.className = "shown";
	} else {
		x.className = "hidden";
	}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

document.write(
	navigator.userAgent.indexOf('Mozilla/4')<0 || navigator.userAgent.indexOf('compatible')>=0
	?'<STYLE type="text/css"> DIV.shown { display:block }	DIV.hidden { display:none } </STYLE>'
	:'<STYLE type="text/css"> DIV.shown { display:block }	DIV.hidden { display:block } </STYLE>'
);

function oculta(name) {
	x = document.getElementById('div_' + name);
	if (x.className == "hidden") {
		x.className = "shown";
	} else {
		x.className = "hidden";
	}
}


ReturnKey = false

// test current keypress

function eventCheckKey()
{
	ReturnKey = window.event.keyCode == 13   // global variable ReturnKey will be set to "true" if Enter key (code 13) was pressed
	window.event.cancelBubble
}

function eventFormSubmit()
{

// if Enter Key was pressed to get here,
//    then cancel the Submit event (default action) created when the Enter key was pressed.
//    Take particular note of the syntax used in the "onSubmit event" in the "form" element below:
//    must return("false") to onSubmit event to cancel it.
// else user has clicked the submit button, let the event continue on its way

if (ReturnKey)
   {
  	ReturnKey = false;          // reset global var ReturnKey to false
  	return false;                     // return false to caller
   }
}


function mapa(url) {
	var ancho = 370;
	var alto = 374;
	var w = screen.width;
	var h = screen.height;
	var derecha = (w - ancho) / 2;
	var arriba = (h - alto) / 2;
	window.open(url,"mapa",'width='+ancho+',height='+alto+',resizable=yes,top='+arriba+',left='+derecha);
}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
