function flash(str,w,h,t){
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + w + '" height="' + h + '" id="flash">');
  document.write('<param name=movie value="' + str + '">');
  document.write('<param name=quality value=high>');
  document.write('<param name=scale value=exactfit>');
  document.write('<param name=bgcolor value=black>');
  if (t=="true"){document.write('<param name=wmode value="transparent">');}
  document.write('<embed src="' + str + '" quality="high" scale="exactfit" bgcolor="black" name="flash" width="' + w + '" height="' + h + '" ');
  if (t=="true"){document.write(' wmode="transparent" ');}
  document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> ');
  document.write('</object>');
}

function pop(image){
	var newwin=window.open('pop.asp?image=' + image, 'wndNoticia', 'height=400,width=400,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,left=125,top=0');
}

function validarEmail(valor) {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(valor)){
   return true
  } else {
   alert("La dirección de email es incorrecta.");
   return false;
  }
}

