function video(){	
	frames[0].frames[3].location = 'html7/index.php?id1=3755';
}

function ac00(){
	window.location = 'index.html';
}

function ac01(){
	frames[0].frames[3].location = 'html1/';
}

function ac02(){
	window.open('https://www.assal.gov.ar/assa/','','target=_blank, location=no,  scrollbars=yes, menubar=yes, toolbar=yes, resizable=yes');
}

function ac03(){
	window.open('https://auth.afip.gov.ar/contribuyente/?','','target=_blank, location=no,  scrollbars=yes, menubar=yes, toolbar=no, resizable=yes');
}

function ac04(){
	frames[0].frames[3].location = 'html2/';
}

function ac05(){
	frames[0].frames[3].location = 'html3/';
}

function ac06(){
	frames[0].frames[3].location = 'html4/';
}

function ac07(){
	frames[0].frames[3].location = 'html5/';
}

function ac08(){
	frames[0].frames[3].location = 'html8/';
}

function ac09(){
	frames[0].frames[3].location = 'html9/';
}

function ac10(){
	frames[0].frames[3].location = 'html10/';
}

function ac11(){
	frames[0].frames[3].location = 'html11/';
}

function ac12(){
	frames[0].frames[3].location = 'html12/';
}

function ac13(){
	frames[0].frames[3].location = 'html13/';
}

function ac14(){
	frames[0].frames[3].location = 'http://ec.europa.eu/dgs/health_consumer/library/pub/pub06_es.pdf';
}

function ac15(){
	frames[0].frames[3].location = 'html14/';
}

function ac16(){
	frames[0].frames[3].location = 'html15/';
}

function ac17(){
	frames[0].frames[3].location = 'html16/';
}

function ac18(){
	frames[0].frames[3].location = 'visorInfografias/';
}

function ac19(){
	frames[0].frames[3].location = 'html18/';
}

function ac20(){
	frames[0].frames[3].location = 'html20/';
}

function ac21(){
	frames[0].frames[3].location = 'html21/';
}

function ac22(){
	frames[0].frames[3].location = 'html22/';
}

function ac23(){
	//top.document.getElementById('popup').style.display = 'block';
	//top.document.getElementById('contenido_popup').innerHTML = '<div align="left"><b title="click para cerrar" style="cursor:pointer; color:#ff0000; text-decoration:blink;" onclick="cerrarPopUp();">Cerrar&nbsp;&nbsp;</b></div><iframe frameborder="0" width="100%" height="600px" src="haccp/index.html"></iframe>';
	frames[0].frames[3].location = 'html23/';
}

function ac23_1(){
	top.document.getElementById('popup').style.display = 'block';
	top.document.getElementById('contenido_popup').innerHTML = '<div align="left"><b title="click para cerrar" style="cursor:pointer; color:#ff0000; text-decoration:blink;" onclick="cerrarPopUp();">Cerrar&nbsp;&nbsp;</b></div><iframe frameborder="0" width="100%" height="600px" src="haccp/index.html"></iframe>';	
}

function ac24(){
	frames[0].frames[3].location = 'html24/';
}

function ac25(){
	frames[0].frames[3].location = 'html25/';
}

function ac26(){
	frames[0].frames[3].location = 'html26/';
}

function ac27(){
	frames[0].frames[3].location = 'html27/';
}

function ac28(){
	window.open('https://www.assal.gov.ar/assa/documentacion/politica_calidad.pdf','','target=_blank, location=no,  scrollbars=yes, menubar=yes, toolbar=yes, resizable=yes');
}

function ac29(){
	window.open('https://www.assal.gov.ar/assa/documentacion/manual_calidad.pdf','','target=_blank, location=no,  scrollbars=yes, menubar=yes, toolbar=yes, resizable=yes');
}

function ac30(){
	window.open('https://www.assal.gov.ar/assa/documentacion/encuesta_calidad_2011.pdf','','target=_blank, location=no,  scrollbars=yes, menubar=yes, toolbar=yes, resizable=yes');
}

function ac31(){
	frames[0].frames[3].location = 'html31/';
}

function ac32(){
	top.document.getElementById('popup').style.display = 'block';
	top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="600px" src="../FormsWeb/raeSearch/index.php"></iframe>';
}

function ac33(){
	//top.document.getElementById('popup').style.display = 'block';
	//top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="600px" src="../FormsWeb/raeSearch/index.php"></iframe>';
	
	
	frames[0].frames[3].location = '../FormsWeb/consumidores/';
	
	/*
	top.document.getElementById('popup').style.display = 'none';
	top.document.getElementById('popup2').style.display = 'block';
	top.document.getElementById('contenido_popup2').innerHTML = '<iframe frameborder="0" width="100%" height="550px" src="/assa/FormsWeb/rnpaInfoConsumidores/index.php?id1='+id+'"></iframe>';	
	*/
}

function ac36(){
	//top.document.getElementById('popup').style.display = 'block';
	//top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="600px" src="../FormsWeb/raeSearch/index.php"></iframe>';
	
	
	frames[0].frames[3].location = 'directorTecnicoWeb/';
	
	/*
	top.document.getElementById('popup').style.display = 'none';
	top.document.getElementById('popup2').style.display = 'block';
	top.document.getElementById('contenido_popup2').innerHTML = '<iframe frameborder="0" width="100%" height="550px" src="/assa/FormsWeb/rnpaInfoConsumidores/index.php?id1='+id+'"></iframe>';	
	*/
}

function ac37(){
	
	
	frames[0].frames[3].location = 'directorTecnicoSearch/';

}

function ac38(){
	
	
	frames[0].frames[3].location = 'vehiculo/';

}

function ac34(){	
	window.open('http://www.assal.gov.ar/webmail/','','target=_blank');
}
/*
function ac35(){	
	window.open('http://www.assal.gov.ar/webmail/','','target=_blank');
}

function ac36(){	
	frames[0].frames[3].location = 'relcaSearch/';
}
*/

function ac_39(){
	frames[0].frames[3].location = 'upsa/index.php?val=1';
}

function ac_40(){
	frames[0].frames[3].location = 'upsa/index.php?val=2';
}

function ac_41(){
	frames[0].frames[3].location = 'upsa/index.php?val=3';
}

function ac_42(){
	frames[0].frames[3].location = 'upsa/index.php?val=4';
}

function ac_43(){
	frames[0].frames[3].location = 'upsa/index.php?val=6';
}

function ac_44(){
	frames[0].frames[3].location = 'upsa/index.php?val=7';
}

function ac_45(){
	frames[0].frames[3].location = 'upsa/index.php?val=5';
}

function ac_46(){
	frames[0].frames[3].location = 'upsa/index.php?val=8';
}

function ac47(){
	frames[0].frames[3].location = 'relcaSearch/';
}

function ac48(){
	frames[0].frames[3].location = 'html28/';
}

function closePopUp(){
	document.getElementById('popup').style.display = 'none';
}

function cerrarPopUp(){
	document.getElementById('popup').style.display = 'none';
}

function cerrarPopUp2(){
	document.getElementById('popupMensaje').style.display = 'none';
}


function rppp(){
	top.document.getElementById('popup').style.display = 'block';
	//top.document.getElementById('contenido_popup').innerHTML = '<div align="center" style="color:#f37c16; font-size:18px;"><b><p>En instante estar&aacute; habilitado el</p><p>Registro Provincial de Producciones Primarias</p><p>Disculpe las molestias</p></b></div>';
	
	top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="700px" src="rppp2/index.php"></iframe>';
}

function relca(){
	top.document.getElementById('popup').style.display = 'block';
	//top.document.getElementById('contenido_popup').innerHTML = '<div align="center" style="color:#f37c16; font-size:18px;"><b><p>En instante estar&aacute; habilitado el</p><p>Registro Provincial de Producciones Primarias</p><p>Disculpe las molestias</p></b></div>';
	
	//top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="600px" src="../FormsWeb/redLaboratorioAgroalimentario/index.php"></iframe>';
	
	top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="700px" src="../FormsWeb/empresaSearch/index.php?block=1&red=../redLaboratorioAgroalimentario/index.php?"></iframe>';
}


function rae(){
	top.document.getElementById('popup').style.display = 'block';
	top.document.getElementById('contenido_popup').innerHTML = '<iframe frameborder="0" width="100%" height="700px" src="../FormsWeb/empresaSearch/index.php?block=1&red=../rae/index.php?"></iframe>';
}




function trim(cadena){
	for(i=0; i<cadena.length; ){
		if(cadena.charAt(i)==" ")
			cadena=cadena.substring(i+1, cadena.length);
		else
			break;
	}

	for(i=cadena.length-1; i>=0; i=cadena.length-1){
		if(cadena.charAt(i)==" ")
			cadena=cadena.substring(0,i);
		else
			break;
	}
	
	return cadena;
}

function _isInteger(str)
{	
	if (typeof(str)=='undefined')
	{
		return false;
	}
	var expr = /^[\+\-]?[0-9]*$/;
	if (!expr.test(str))
		return false;
 
	return true;
}



function _isNumber(str)
{
	if (typeof(str)=='undefined')
	{
		return false;
	}	
	var expr1 = /^[\+\-]?[0-9]+(\.[0-9]{0,})?$/;
	var expr2 = /^[\+\-]?(\.[0-9]{0,})?$/;
	if (!expr1.test(str)){
		if (!expr2.test(str)){
			return false;
		}
	}
	return true;
}

function in_array(val, array){
	for(i=0; i<=array.length; i++){
		if(array[i] == val)
			return true;		
	}
	
	
	return false;
	
}

function stateUp(tr){tr.style.backgroundColor='#F2F5A9';}
function stateOut(tr){tr.style.backgroundColor='#ffffff';}

function changeImage(){
		image = document.getElementById('imagen');
		if(image.src == 'img/placa 1.jpg')
			image.src = 'img/placa 2.jpg';
		else
			image.src = 'img/placa 2.jpg';
			
		document.body
	}
	
	
function roundNumber(rnum, rlength) { // Arguments: number to round, number of decimal places
  var newnumber = Math.round(rnum*Math.pow(10,rlength))/Math.pow(10,rlength);
  return newnumber; // Output the result to the form field (change for your purposes)
}


