function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//-->
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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];}
}

function MM_jumpMenu(selObj,restore){ //v3.0
    eval("parent.frames['mainFrame']"+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
    if (restore) selObj.selectedIndex=0; 
}

function MM_jumpMenuParent(selObj,restore){ //v3.0
    eval("parent"+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
    if (restore) selObj.selectedIndex=0; 
}

function year(){
	var dateObj=new Date(document.lastModified) 
	var year=dateObj.getFullYear()
	document.write(year) 
}

function nueva_ventana(mypage,w,h,barra){
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+barra+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	window.open(mypage,"",settings);
}

function imagen_completa(imagen,w,h,barra) {
	var newWin
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+barra+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
  	newWin = window.open("","",settings)
  	newWin.document.write("<html><head><title>CVG La Voz de Guayana 89.7 FM ... Su Emisora Cultural y Educativa</title>\n")
	newWin.document.write("<link href='../../files/style.css' rel='stylesheet' type='text/css'></head>\n")
  	newWin.document.write("<body style='scrollbar-track-color: #FFFFFF;' bottomMargin=0 leftMargin=0 topMargin=0 marginheight='0' marginwidth='0'>\n")
  	newWin.document.write("<table width='100%' height='100%' border='0' align='center' cellpadding='0' cellspacing='0'>\n")
  	newWin.document.write("<tr><td align='center' valign='middle'>\n");
  	newWin.document.write("<img src='" + imagen + "'></td></tr></table>\n");
  	newWin.document.write("</body></html>\n")
  	newWin.document.close()
}
function ver_imagen(foto) {
	window.open(foto,"verfoto","toolbar=no,directories=no,menubar=no,scrollbars=no, width=780,height=490");
}

function favoritos(){
if (document.all)
window.external.AddFavorite(url,titulo)
}

function borrar(form){
	if(form.first_click.value==0){
		form.correoe.value="";
		form.sn.value=0;
		form.first_click.value=1;
	}
}
function enviar(form){
	if(checkEmail(form)){
		alert("Gracias por suscribirse!")
		form.sn.value=1;
		form.submit();
	}
}
function checkEmail(form) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.correoe.value)){
		return (true)
	}
	alert("Dirección de correo inválida, por favor revísela e intente nuevamente!")
	return (false)
}
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}
function comprobacion(forma){
if(forma.empresa.value=="" || forma.telefono.value=="" || forma.representante.value=="" || forma.email.value==""){
alert("Alguno de los campos requeridos no fué llenado, Por favor revise los datos suministrados y luego presione el botón Enviar. (Los campos requeridos se encuentran marcados por un asterisco)")}
	else{
		forma.submit()
	}
}
function fecha_actual(){
	var months=new Array(13);
months[1]="Enero";
months[2]="Febrero";
months[3]="Marzo";
months[4]="Abril";
months[5]="Mayo";
months[6]="Junio";
months[7]="Julio";
months[8]="Agosto";
months[9]="Septiembre";
months[10]="Octubre";
months[11]="Noviembre";
months[12]="Diciembre";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) 
year = year + 1900; 

//Get Time
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += (hours >= 12) ? " pm" : " am"

//Get Day
var days=new Array(7);
days[0]="Domingo";
days[1]="Lunes";
days[2]="Martes";
days[3]="Miércoles";
days[4]="Jueves";
days[5]="Viernes";
days[6]="Sabado";
var lday=days[time.getDay()];
document.write(lday + " "   + date + " de " + lmonth + " de " + year + " :: " + timeValue);
}
function CodigoToSelect(codigo, elselect){
var LongSelect=elselect.length;
for (var i=0; i<LongSelect; i++){
	if (codigo==elselect.options[i].value){
		elselect.selectedIndex=elselect.options[i].index;
		break;
	} else
	{
		elselect.selectedIndex=0;
	}
}
}

