function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); }
// EJ: onclick="MM_openBrWindow('url.htm','','resizable=yes,status=yes,scrollbars=yes,width=500,height=300')"


function MostrarOcultar(theTable)
{ if (document.getElementById(theTable).style.display == 'none') {
		document.getElementById(theTable).style.display = 'block';
		} else {
		document.getElementById(theTable).style.display = 'none';
			}}

function Mostrar(theTable)
{ if (document.getElementById(theTable).style.display == 'none') {
		document.getElementById(theTable).style.display = 'block';
		}}

function Ocultar(theTable)
{ if ( document.getElementById(theTable).style.display == 'none') {
		 document.getElementById(theTable).style.display = 'none'; 
		 } else { 
		 document.getElementById(theTable).style.display = 'none'; 
		 }}		

// EJ ('id'): onClick="Mostrar('1'); Ocultar('2'); Mostrar('3')" 


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]+"'");
}


function modalWin(url, width, height) {
	if (window.showModalDialog) {
		return window.showModalDialog(url,"name", "dialogWidth:"+width+"px;dialogHeight:"+height+"px");
	} else {
		window.open(url,'name',	'height='+height+',width='+width+',toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,modal=yes');
	}
} 

function ismaxlength(obj){
			var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
			if (obj.getAttribute && obj.value.length>mlength)
			obj.value=obj.value.substring(0,mlength)
			}





