
///////////////////////////////////////
//funcion que previsualiza una imagen del cliente en la imagen id=id del objeto imagen, string=path
///////////////////////////////////////
function setImage_(id,string){
	preview_frame.document.getElementById(id).src = 'File:\/\/' + string;
}
///////////////////////////////////////
//Abre una imagen en el navegador de las dimenciones de la imagen
///////////////////////////////////////
function openImag(file){
	window.open("pop_img.php?f=" + file,"_blank","toolbar=no, location=no, directories=no, menubar=no, status=no, scrollbars=no, resizable=yes, width=20, height=20")
}
///////////////////////////////////////
//Abre una pagina en el navegador de las dimenciones que se indiquen sin barras de herramientas
///////////////////////////////////////
function openWin(file,width,height){
	window.open(file,"_blank","toolbar=no, location=no, directories=no, menubar=no, status=no, scrollbars=no, resizable=no, width=" + width + ", height=" + height)
}
///////////////////////////////////////
//Abre una pagina en el navegador de las dimenciones que se indiquen sin barras de herramientas
///////////////////////////////////////
function openWinScroll(file,width,height){
	window.open(file,"_blank","toolbar=no, location=no, directories=no, menubar=no, status=no, scrollbars=yes, resizable=no, width=" + width + ", height=" + height)
}
///////////////////////////////////////
// Imprime la pagina
///////////////////////////////////////
<!-- Begin
function printPage() {
	if (window.print) {
		agree = confirm('¿Quieres imprimir la página?')
		if (agree) window.print()
	}
}

///////////////////////////////////////
//Conexion a radio
///////////////////////////////////////


function radio(){
	openWin("/v3/videos/index.php",994,663);
}

function radioOnLine(selector){
	var extra="";
	if(selector!="" && selector!=null)
		extra = "?id=" + selector;
	
	openWin("/v3/videos/index.php" + extra,994,663);
}

function masVideos(selector){
	var extra="";
	if(selector!="" && selector!=null)
		extra = "?id=" + selector;

	openWin("/v3/videos/index.php" + extra,994,663);
}

///////////////////////////////////////
// Validador de mails ... NO FUNCIONA EN MAC
///////////////////////////////////////

function isMail(e_mail_send){

	if(e_mail_send!=null && e_mail_send!=""){
		
		var arroba = e_mail_send.split("@");
		var punto = e_mail_send.split(".");
			
		if(arroba[1]==null){
			return false;
		}
		if(punto[1]==null){
			return false;
		}
	
		return true;
	}
	else
		return false;

}

///////////////////////////////////////
// Valida extencion
///////////////////////////////////////

function isExt(cadena,ext){
	
	var infoArray=new Array();

	cadena=cadena.toLowerCase();
	ext=ext.toLowerCase();
	
	infoArray=cadena.split(".");
	if (infoArray[infoArray.length-1]==ext)
		return true;
	else
		return false;
}	

///////////////////////////////////////
// Actualiza la pagina
///////////////////////////////////////
function actualiza(url,where){
	if(url==null || url=="")
		url = document.location.href;
	if(where==null || where=="")
		where="_self";
	window.open(url,where);
}

////////////////////////////////////////
// Crea efecto de alpha
///////////////////////////////////////
function setAlpha(el){
		el.style.filter="alpha(opacity:80)";
		el.style.KHTMLOpacity="0.90";
		el.style.MozOpacity="0.90";
		el.style.opacity="0.90";
	}

////////////////////////////////////////
// genera un numero 
///////////////////////////////////////

function llave(){

	var mydate=new Date();
	return mydate.getTime(); 
}

/* ========================================================================================= */
// Funciones Locales
/* ========================================================================================= */

	function showAudio(mp3,texto){
		
		Dialog.alert({url: "../modulos/show_audio.php?mp3=" + mp3 + "&texto=" + texto + "&key=" + llave(), options: {method: 'get'}}, 
            {windowParameters: {className: "alphacube", width:300}, okLabel: "Cerrar"});		
	}

			 
////////////////////////////////////////////////////////
// cambio de color de celdas
////////////////////////////////////////////////////////
	function cambiarColorCelda(celda,color){ 
	   celda.style.backgroundColor=color; 
//	   alert(color);
	} 

////////////////////////////////////////
// Manda llamar la funcion de gmail 
///////////////////////////////////////

function hit(){
	_uacct = "UA-442172-3"; // codigo de analytics
	urchinTracker();	// codigo de analytics
//	alert("ok");
}
///////////////////////////////////
	function showVideoEntrevista(id){	
	
/*		Dialog.alert({url: "../modulos/video_entrevistas.php?id=" + id + "&ajax=1&key=" + llave(), options: {method: 'get'}}, 
            {windowParameters: {className: "alphacube", width:800, title: "E N T R E V I S T A S"}, okLabel: "Cerrar"});				
*/

		win = new Window("videoEntrevistas",{className: "alphacube",  width:800, height:600, zIndex:100, opacity:1, resizable: false, minimizable: false, maximizable: false, scrollable: false, draggable:false, url: "../modulos/video_entrevistas.php?id=" + id + "&ajax=1&key=" + llave(),destroyOnClose:true });
	win.show(true);
	win._center();
	win.setDestroyOnClose();

	}