﻿    //<![CDATA[

	isIE=document.all;
	isNN=!document.all&&document.getElementById;
	isN4=document.layers;

	function hideMe(){
		if (isIE) document.all.diadeinternet.style.visibility = "hidden";
		else if (isNN||isN4) document.getElementById("diadeinternet").style.visibility="hidden";
	}

	function EnviarPagina()
	{
	    script = "http://segu-info.com.ar/programas/enviarpagina/form.php";
	    referer = document.location;
	    url = script+"?url="+referer;
	    name = '_blank';
	    features = 'width=450,height=350';
	    window.open(url,name,features);
	}

	function agregar(){
	   if ((navigator.appName=="Microsoft Internet Explorer") && 
	         (parseInt(navigator.appVersion)>=4)) {
	      var url="http://www.segu-info.com.ar/"; 
	      var titulo="Segu-Info Seguridad de la Información";
	      window.external.AddFavorite(url,titulo);
	   } else { 
	      if(navigator.appName == "Netscape") 
	         alert("Presione Crtl+D para agregar este sitio a sus Favoritos"); 
	   }
	} 

	function isEmailAddress(theElement)
	{
		var s = theElement.value;
		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (!filter.test(s) || s.length == 0)
		{
			alert("La Direccion de correo ingresada no es valida");
			theElement.focus();
			return false;
		}
		return true;
	}
	
	function isNumber(n) {
		return !isNaN(parseFloat(n)) && isFinite(n);
	}
	
	
	function textCounter(field, maxlimit) {
		if (field.value.length > maxlimit)
			field.value = field.value.substring(0, maxlimit);
	}

	function verificaDenuncia(theElement)
	{
		var s = theElement.value;
		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (!filter.test(s) || s.length == 0)
		{
			alert("La Direccion de correo ingresada no es valida");
			theElement.focus();
			return false;
		}
		
		if (!isNumber(document.formulario.resu.value)) {
			alert("Por favor ingrese un numero en la suma");
			document.formulario.resu.focus();
			return false;
		}

		//verifica los checkbox
		//marcado = false;
		for (i=0;i<document.formulario.tipo.length;i++) {
			if (document.formulario.tipo[i].checked) {
				//marcado = true;
				document.formulario.valortipo.value = i;
				break;
			}
		}
		if (document.formulario.valortipo.value < 0) 
		{
			alert("Debe seleccionar un Tipo de Ataque");
			return false;
		}
		return true;
	}

	function enviar()
	{
		if (document.buscador.q.value.length < 4) {
			alert("La cadena de busqueda debe tener mas de 3 caracteres");
			return false;
		}
	}

	 function ValidarFormHotmail(formu)
	{
		/*
		cadena=formu.email.value.toLowerCase();
		if (cadena.indexOf('hotmail') > -1){
			alert('Para evitar problemas, es recomendable que su correo no sea de este Webmail');
			return false;
		}else{
			return true;
		}
		*/
	}

//escribe las Imagenes
function rotator_I () {
	var mostrar = 2;
	var imagenes = new Array("di-2.jpg--http://www.elderechoinformatico.com/",
						 "inteco.jpg--http://cert.inteco.es/",
						 "segu-kids.jpg--http://www.segu-kids.org/");
	imagenes.sort( randOrd );

	for (var i = mostrar-1; i >= 0; i--) {
		sitio = imagenes[i].split("--");
		imagen = sitio[0];
		url = sitio[1];
		
		document.write('<div style="float:right"><a href="'+url+'">');
		document.write('<img src="images/'+imagen+'" alt="Estas organizaciones nos apoyan" border="0" />'); 
		document.write('</a></div>');
		if (i > 0) document.write('<div style="width:25px;float:right">&nbsp;</div>');
	}
}
function randOrd() {
	//hermoso hack para no repetir el rnd de img
	return (Math.round(Math.random())-0.5);
} 
    //]]>

var tfb={};tfb.allowedLabels=["follow-me","follow-us","follow","my-twitter"];tfb.defaultTop=78;
tfb.account = 'seguinfo';
tfb.label = 'follow-us';
tfb.color = '#ff9c00';
tfb.side = 'r';
tfb.top = 135;
tfb.defaultColor="#35ccff";tfb.isInArray=function(str,ar){if(ar.length<1)return;for(var i=0;i<ar.length;i++){if(ar[i]==str){return true;break;}}
return false;}
tfb.showbadge=function(){if(!window.XMLHttpRequest){return;}
if(document.getElementById('twitterFollowBadge')){document.body.removeChild(document.getElementById('twitterFollowBadge'));}
if(tfb.top<0||tfb.top>1000||isNaN(tfb.top)){tfb.top=tfb.defaultTop;}
if(!tfb.isInArray(tfb.label,tfb.allowedLabels)){tfb.label=tfb.allowedLabels[0];}
var validColorPattern=/^#([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/;if(!validColorPattern.test(tfb.color)||(tfb.color.length!=4&&tfb.color.length!=7)){tfb.color=tfb.defaultColor;};if(tfb.side!='l'){tfb.side='r';}
tfb.tabStyleCode='position:fixed;'+'top:'+tfb.top+'px;'+'width:30px;'+'height:119px;'+'z-index:8765;'+'cursor:pointer;'+'background:'+tfb.color+' url(../images/'+tfb.label+'.jpg);'+'background-repeat:no-repeat;';tfb.aboutStyleCode='position:absolute;'+'top:'+(parseInt(tfb.top)+97)+'px;'+'width:30px;'+'height:31px;'+'z-index:9876;'+'cursor:pointer;'+'background:url(../images/icon-rss.jpg);'+'background-repeat:no-repeat;';if(tfb.side=='l'){tfb.tabStyleCode+='left:0; background-position:right top;';tfb.aboutStyleCode+='left:0;';}else{tfb.tabStyleCode+='right:0; background-position:left top;';tfb.aboutStyleCode+='right:0;';}
tfbMainDiv=document.createElement('div');tfbMainDiv.setAttribute('id','twitterFollowBadge');document.body.appendChild(tfbMainDiv);tfbMainDiv.innerHTML='<div id="tfbTab" style="'+tfb.tabStyleCode+'"></div><div id="tfbAbout" style="'+tfb.aboutStyleCode+'"></div>'+'<style>#tfbAbout{visibility:hidden;} #twitterFollowBadge:hover #tfbAbout{visibility:visible;}</style>';document.getElementById('tfbTab').onclick=function(){window.open('http://www.segu-info.com.ar/twitter');}
document.getElementById('tfbAbout').onclick=function(){window.open('http://www.segu-info.com.ar/feed/');}}
	
    //]]>

