<!-- Hide script from old browsers

	var mie = (navigator.appName.indexOf("Microsoft")>= 0)
	var cuenta=0;
	var form_count = true;
	var noticias = new Array()
	noticias[0] = 'Francomacorisanos.com esta de cumpleaņos, ven celebras con nosotros en '; 
	noticias[1] = '*** Registrate como usuario del portal y consigues la entra gratis ala'; 
	noticias[2] = '*** Francomacorisanos.com, El portal de Pueblo ***'; 
	noticias[3] = '*** Vista Guiadominicana.net, el Buscado de Negocios Dominicanos***'; 
	noticias[4] = '*** Entra a los Clasificados de Francomacorisanos.com y Compra o Vende lo que quieras ***'; 
	
	function enviado() {                       
	   if (cuenta == 0)
		  {
		  cuenta++;
		  return true;
		  }
	   else 
		  {
		  window.alert("Procesando...\rPresione OK para Continuar\rMuchas gracias!");
		  return false;
		  }
	   }

	function sent_server()
	{
		if (form_count)
		{
			form_count = false;
			return true;
		}
		else 
		{
			window.alert("Pocesando...\rPresione OK para Continuar\rMuchas gracias!");
			return false;
		}
	}

	function show_menu(mname)
	{
		if (!form_count)
		{
		  	window.alert("Procesando...\rPresione OK para Continuar\rMuchas gracias!");
			return false;
		}
		obj = document.all[mname];
		obj.style.background = "#0000ff";
	}

	function ip2long ( ip_address ) {
		// *     example 1: ip2long( '192.0.34.166' );
		// *     returns 1: 3221234342
		
		var output = false;
	 
		if ( ip_address.match ( /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ ) ) {
		  var parts  = ip_address.split ( '.' );
		  var output = 0;
	 
		  output = ( parts [ 0 ] * Math.pow ( 256, 3 ) ) +
				   ( parts [ 1 ] * Math.pow ( 256, 2 ) ) +
				   ( parts [ 2 ] * Math.pow ( 256, 1 ) ) +
				   ( parts [ 3 ] * Math.pow ( 256, 0 ) );
		}
		 
		return output;
	}
	
	function long2ip ( proper_address ) {
		// *     example 1: long2ip( 3221234342 );
		// *     returns 1: '192.0.34.166'
		
		var output = false;
		
		if ( !isNaN ( proper_address ) && ( proper_address >= 0 || proper_address <= 4294967295 ) ) {
		  output = Math.floor (proper_address / Math.pow ( 256, 3 ) ) + '.' +
				   Math.floor ( ( proper_address % Math.pow ( 256, 3 ) ) / Math.pow ( 256, 2 ) ) + '.' +
				   Math.floor ( ( ( proper_address % Math.pow ( 256, 3 ) )  % Math.pow ( 256, 2 ) ) / Math.pow ( 256, 1 ) ) + '.' +
				   Math.floor ( ( ( ( proper_address % Math.pow ( 256, 3 ) ) % Math.pow ( 256, 2 ) ) % Math.pow ( 256, 1 ) ) / Math.pow ( 256, 0 ) );
		}
		
		return output;
	}	
	
	function showmenu1(mname, nflash1, nflash2, sn)
	{
			obj1 = document.all[mname];
			obj2 = document.all[nflash1];
			obj3 = document.all[nflash2];
		if (sn > 0)
			{
			obj1.style.visibility = "visible";
			obj2.style.visibility = "hidden";
/*			obj3.style.visibility = "hidden";*/
			}
		else
			{
			obj1.style.visibility = "hidden";
			obj2.style.visibility = "visible";
/*			obj3.style.visibility = "visible";*/
			}
	}
	function showmenuhorizontal(mname, sn)
	{
			obj1 = document.all[mname];
		if (sn > 0)
			{
			obj1.style.visibility = "visible";
			}
		else
			{
			obj1.style.visibility = "hidden";
			}
	}

	function showmenu(mname, sn)
	{
		obj = document.all[mname];
		if (sn > 0)
			obj.style.visibility = "visible";
		else
			obj.style.visibility = "hidden";
	}
	function VerImagenAct(mname, sn)
	{
		obj = document.all[mname];
		if (sn > 0)
			obj.style.visibility = "visible";
		else
			obj.style.visibility = "hidden";
	}

	function cambiacolor(mname, sn)
	{
		obj = document.all[mname];
		if (sn > 0)
			{
			obj.style.backcolor = "#FFCC33";
			obj.style.color = "#0080FF";
			obj.style.font.bold = true;
			}
		else
			{
			obj.style.backcolor = "#FFFFFF";
			obj.style.color = "#000000";
			obj.style.font.bold = false;
			}
	}


	function MM_goToURL() 
	{ 
		var i, args = MM_goToURL.arguments;
		document.MM_returnValue = false;
		for (i = 0; i<(args.length-1); i += 2) eval(args[i] + ".location = '" + args[i + 1] + "'");
	}

	function setfocus(pobj) 
	{
		obj = document.all[pobj];
		obj.select();
		obj.focus();
	}

	function openWindow(theURL,winName,winWidth,winHeight,otherFeatures)
	{
		//status=no,scrollbars=no,resize=yes  estos son ejemplos de los otherfeutures
		var x = 0;
		var y = 0;
		x = (screen.availWidth - 12 - winWidth) / 2;
		y = (screen.availHeight - 48 - winHeight) / 2;
		if (otherFeatures != "")
			{
				otherFeatures = "," + otherFeatures
			}
		var features = "screenX=" + x + ",screenY=" + y + ",width=" + winWidth + ",height=" + winHeight+",top="+y+",left="+x+"'" + otherFeatures
		var NewWindow = window.open(theURL,winName,features);
		NewWindow.focus();
	}

	function closewindow() 
	{
		self.opener = this;
		self.close()
	}
	
	function DisplayBanner()
	{ 
		var outRes = "<b><font face	='Verdana' size='2'  color='yellow'>Dataccion, Inc. **** Soluciones Informaticas... de Verdad! ****                                                                                                                                                                                                                        </b></font>";
//		document.all.item("banner").innerHTML = outRes;
	}

	function messagebox(pmensaje)
	{
	  if (confirm(pmensaje)==true)
	    return true;
	  else
	    return false;
	}

	function dowloadimagne(pmensaje)
	{
	  if (confirm(pmensaje)==true)
		{
//			document.getElementById("cmdsave").disabled = true;
			return true;
		}
	  else
		return false;
	}
	// Funcion para controlar el Scroll de los mensajes Principales de la Pagina Inicial

	function pausescroller(content, divId, divClass, delay)
	{
		this.content=content //message array content
		this.tickerid=divId //ID of ticker div to display information
		this.delay=delay //Delay between msg change, in miliseconds.
		this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
		this.hiddendivpointer=1 //index of message array for hidden div
		document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
		var scrollerinstance=this
		if (window.addEventListener) //run onload in DOM2 browsers
			window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
		else if (window.attachEvent) //run onload in IE5.5+
			window.attachEvent("onload", function(){scrollerinstance.initialize()})
		else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
		setTimeout(function(){scrollerinstance.initialize()}, 500)
	}
	
	// -------------------------------------------------------------------
	// initialize()- Initialize scroller method.
	// -Get div objects, set initial positions, start up down animation
	// -------------------------------------------------------------------
	
	pausescroller.prototype.initialize=function()
		{
			this.tickerdiv=document.getElementById(this.tickerid)
			this.visiblediv=document.getElementById(this.tickerid+"1")
			this.hiddendiv=document.getElementById(this.tickerid+"2")
			this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
			//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
			this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
			this.getinline(this.visiblediv, this.hiddendiv)
			this.hiddendiv.style.visibility="visible"
			var scrollerinstance=this
			document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
			document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
			if (window.attachEvent) //Clean up loose references in IE
				window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
				setTimeout(function(){scrollerinstance.animateup()}, this.delay)
		}
	
	
	// -------------------------------------------------------------------
	// animateup()- Move the two inner divs of the scroller up and in sync
	// -------------------------------------------------------------------
	
	pausescroller.prototype.animateup=function()
	{
		var scrollerinstance=this
		if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5))
			{
				this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
				this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
				setTimeout(function(){scrollerinstance.animateup()}, 50)
			}
		else
			{
				this.getinline(this.hiddendiv, this.visiblediv)
				this.swapdivs()
				setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
			}
	}
	
	// -------------------------------------------------------------------
	// swapdivs()- Swap between which is the visible and which is the hidden div
	// -------------------------------------------------------------------
	
	pausescroller.prototype.swapdivs=function()
	{
		var tempcontainer=this.visiblediv
		this.visiblediv=this.hiddendiv
		this.hiddendiv=tempcontainer
	}
	
	pausescroller.prototype.getinline=function(div1, div2)
	{
		div1.style.top=this.visibledivtop+"px"
		div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
	}
	
	// -------------------------------------------------------------------
	// setmessage()- Populate the hidden div with the next message before it's visible
	// -------------------------------------------------------------------
	
	pausescroller.prototype.setmessage=function()
	{
		var scrollerinstance=this
		if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
			setTimeout(function(){scrollerinstance.setmessage()}, 100)
		else
			{
				var i=this.hiddendivpointer
				var ceiling=this.content.length
				this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
				this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
				this.animateup()
			}
	}
	
	pausescroller.getCSSpadding=function(tickerobj)
	{ //get CSS padding value, if any
		if (tickerobj.currentStyle)
			return tickerobj.currentStyle["paddingTop"]
		else if (window.getComputedStyle) //if DOM2
			return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
		else
			return 0
	}
	
	function openCalendar()
	{
	  window.open('PopupCalendar.aspx?textbox=txtfech_aaf','cal','width=200,height=200,left=270,top=180')
	}

	function openNoticiero(Campo)
		{
		  window.open('EscucharNoticiario1070.aspx?ID='+ Campo,'Noti','location=0,status=0,scrollbars=0,width=450,height=500,left=270,top=80')
		}

	function openMusica(Campo)
		{
		  window.open('EscucharMusica.aspx?ID='+ Campo,'Musica','location=0,status=0,scrollbars=0,width=450,height=500,left=270,top=80')
		}


// End hiding -->
