// JavaScript Document

function agp_servicios( texto ) { 
	document.getElementById('servicio_detalle_header').innerHTML =texto;
}

function agpMostrarEntradilla( posicion, texto, limpiar ) { 
	// alert('entradilla'+posicion);
	// alert(limpiar)
	var regexp = /,*\d.\b/
	var newArray = limpiar.split(",")
	// result = an array “Fred”, “Jane”, “Steve”
	// alert( newArray.length+" | "+newArray[0]+" | "+limpiar );
	
	for ( i=0; i<7; i++ ) {
		// indice= newArray[i];
		document.getElementById( 'entradilla'+i ).style.display = 'none'
	}

	document.getElementById( 'entradilla'+posicion ).style.display = ''
	document.getElementById( 'entradilla'+posicion ).innerHTML =texto;

	// OnOff('entradilla'+posicion, "");
}


function agpMostrarEntradilla2( posicion, texto ) { 
	i=0;
	for ( i=0; i<8; i++ ) {
		document.getElementById( 'entradilla'+i ).style.display = 'none'
	}
	i=0;
	document.getElementById( 'entradilla'+posicion ).style.display = ''
	document.getElementById( 'entradilla'+posicion ).innerHTML =texto;
}

function OnOff( cual, estado ) {
	document.getElementById(cual).style.visibility = estado
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


