




/*FECHA ACTUAL  
//Autor: Iván Nieto Pérez  
//Este script y otros muchos pueden  
//descarse on-line de forma gratuita  
//en El Código: www.elcodigo.com  */
function obtiene_fecha() {  
      
    var fecha_actual = new Date()  
  
    var dia = fecha_actual.getDate()  
    var mes = fecha_actual.getMonth() + 1  
    var anio = fecha_actual.getFullYear()  
  
    if (mes < 10)  
        mes = '0' + mes  
  
    if (dia < 10)  
        dia = '0' + dia  
  
    return (dia + "/" + mes + "/" + anio)  
}  
  
function MostrarFecha2() {  
   document.write ( obtiene_fecha() )  
}  


function MostrarFecha()  
   {  
   var nombres_dias = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado")  
   var nombres_meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")  
  
   var fecha_actual = new Date()  
  
   dia_mes = fecha_actual.getDate()     //dia del mes  
   dia_semana = fecha_actual.getDay()       //dia de la semana  
   mes = fecha_actual.getMonth() + 1  
   anio = fecha_actual.getFullYear()    
  
   //escribe en pagina  
   document.write("Hoy es: " + nombres_dias[dia_semana] + ", " + dia_mes + " de " + nombres_meses[mes - 1] + " de " + anio)  
   } 

/*
function mensajes {
 
var dt = new Date();
var hr = dt.getHours();
var msg = ((hr<12) ? "Buenos dias" :"Buenas Noches");
msg = ((hr>11)&&(hr<19) ? "Buenas Tardes" : msg);
msg=" <h2> "+msg+" !</h2>";
document.write(msg); 

}*/

function CheckForm2() {
		//Chequea campos del formulario
		
	
		// Capturar datos
		var nombre 		= document.getElementById("dataNOM").value;
		var direccion 	= document.getElementById("dataDIR").value;
		var localidad 	= document.getElementById("dataLOC").value;
		var telefono 	= document.getElementById("dataTEL").value;
		var ramo 		= document.getElementById("dataRAMO").value;
		var curso 		= document.getElementById("dataCURSO").value;		
		var email 		= document.getElementById("dataMAIL").value;
		var comentarios	= document.getElementById("dataCOM").value;
		var captcha		= document.getElementById("dataCAP").value;
		//var verif = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3,4})+$/

		
		//Preparar mensaje de error
		var mensaje = "ATENCION!!!...\n\n";
		var error 	= false;
		
		mensaje = "INGRESE: \n\n";
		//Validar datos
		if (nombre==""){
			mensaje = mensaje + "*Nombre.\n";
			error 	= true;
		} //end if
		
		if (direccion==""){
			mensaje = mensaje + "*Direccion.\n";
			error 	= true;
		} //end if
		
		if (localidad==""){
			mensaje = mensaje + "*Localidad.\n";
			error 	= true;
		} //end if		
		
		if (telefono=="" || telefono=="+598"){
			mensaje = mensaje + "*Telefono.\n";
			error 	= true;
		} //end if
		
		if (ramo=="0"){
			mensaje = mensaje + "*Ramo.\n";
			error 	= true;
		} //end if	

		if (curso==""){
			mensaje = mensaje + "*Curso.\n";
			error 	= true;
		} //end if	

		if (email==""){
			mensaje = mensaje + "*E-mail.";
			error 	= true;
		} //end if	
		
		if (captcha==""){
			mensaje = mensaje + "*Codigo Seguridad";
			error 	= true;
		} //end if
	/*	else if (verif.exec(email) == null)
		{
			mensaje = mensaje + "Su email es incorrecto.\n";
			error 	= true;
		}*/
		if(isNaN/*Funcion para averiguar si lo ingresado es numerico o no*/(telefono)){
			mensaje = mensaje + "\n\n**En el Telefono ha ingresado caracteres.\n";
			error 	= true;		
		}//end if			

		
		//Chequear error
		if (error){
			window.alert(mensaje);
		} else {
			document.getElementById("dataFORM_C").submit();
		}// end if
		
	}//end function

function CheckForm() {
		//Chequea campos del formulario
		
	
		// Capturar datos
		var nombre 		= document.getElementById("dataNOM").value;
		var direccion 	= document.getElementById("dataDIR").value;
		var localidad 	= document.getElementById("dataLOC").value;
		var telefono 	= document.getElementById("dataTEL").value;
		var ramo 		= document.getElementById("dataRAMO").value;	
		var email 		= document.getElementById("dataMAIL").value;
		var comentarios	= document.getElementById("dataCOM").value;
		var captcha		= document.getElementById("dataCAP").value;
		//var verif = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3,4})+$/

		
		//Preparar mensaje de error
		var mensaje = "ATENCION!!!...\n\n";
		var error 	= false;
		
		mensaje = "INGRESE: \n\n";
		//Validar datos



		if (nombre==""){
			mensaje = mensaje + "*Nombre.\n";
			error 	= true;
		} //end if
		
		if (direccion==""){
			mensaje = mensaje + "*Direccion.\n";
			error 	= true;
		} //end if
		
		if (localidad==""){
			mensaje = mensaje + "*Localidad.\n";
			error 	= true;
		} //end if		
		
		if (telefono=="" || telefono=="+598"){
			mensaje = mensaje + "*Telefono.\n";
			error 	= true;
		} //end if
		
		if (ramo=="0"){
			mensaje = mensaje + "*Ramo.\n";
			error 	= true;
		} //end if	


		if (email==""){
			mensaje = mensaje + "*E-mail.\n";
			error 	= true;
		} //end if	
		
		if (captcha==""){
			mensaje = mensaje + "*Codigo Seguridad.\n";
			error 	= true;
		} //end if
	/*	else if (verif.exec(email) == null)
		{
			mensaje = mensaje + "Su email es incorrecto.\n";
			error 	= true;
		}*/
		if(isNaN/*Funcion para averiguar si lo ingresado es numerico o no*/(telefono)){
			mensaje = mensaje + "\n\n**En el Telefono ha ingresado caracteres.\n";
			error 	= true;		
		}//end if			

		
		//Chequear error
		if (error){
			window.alert(mensaje);
		} else {
			document.getElementById("dataFORM").submit();
		}// end if
		
	}//end function


function alerta() {
alert("PROXIMAMENTE!!!");
}





	function ColorBox(box,bc) {
	// Cambia propiedades de estilo en las cajas
	
	//Referencias:
	//**********************************************
	//bc: color de fondo						   *
	//**********************************************
		document.getElementById(box).style.backgroundColor = bc;

	} //End function


//Fecha y hora---------------------------------------------------------------
/*function fecha_hora() {  
				/*
				var nombreDia = new Array ("Domingo",
										   "Lunes",
										   "Martes",
										   "Miércoles",
										   "Jueves",
										   "Viernes",
										   "Sábado")
				
				var nombreMes = new Array (
										   "Enero", 
										   "Febrero", 
										   "Marzo", 
										   "Abril", 
										   "Mayo", 
										   "Junio", 
										   "Julio", 
										   "Agosto", 
										   "Setiembre", 
										   "Octubre", 
										   "Noviembre", 
										   "Diciembre")
				var hoy = new Date();
				var fechaSinHora = " Montevideo, " + nombreDia[hoy.getDay()] + " " + hoy.getDate() + " de " + nombreMes[hoy.getMonth()]+ " del " + hoy.getFullYear() + " ";
				document.getElementById("timedate").innerHTML = fechaSinHora + '    - ' + (hoy.getHours() > 9 ? "" : "0") + hoy.getHours() +":"+ (hoy.getMinutes() > 9 ? "" : "0") + hoy.getMinutes() +":" + (hoy.getSeconds() > 9 ? "" : "0") + hoy.getSeconds() + ' }';
				window.setTimeout('fecha_hora()',900);      
			}*/

		
			//End function
//Termina Fecha y hora---------------------------------------------------------------


//Begin | Script que abre un vinculo en PopUp-------------------------------------
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=610,height=300,left = 190,top = 200');");
}
// End PopUp ------------------------------------------------------------------------>


// Begin | Script Scroll de Noticias------------------------------------------------------
/*****************************************************************************
Scroll de noticias. Script creado por Tunait! (21/8/2003)
Última modificación 27/3/04 se añade la opción de omitir las fechas
Si quieres usar este script en tu sitio eres libre de hacerlo con la condición de que permanezcan intactas estas líneas, osea, los créditos.
No autorizo a publicar y ofrecer el código en sitios de script sin previa autorización
Si quieres publicarlo, por favor, contacta conmigo.
http://javascript.tunait.com/
tunait@yahoo.com 
******************************************************************************/

var ancho      = 265 			//anchura del cuadro
var alto       = 150 			//altura del cuadro
var marco      = 0 				//0 para que no tenga marco (borde)
var fondo      = 'transparent' 	//color de fondo del cuadro
var pausilla   = 1500 			//tiempo de la pausa en milisegundos (2000 = 2 segundos)
var cursor     = "default;" 	//cursor que se quiera sobre el cuadro
var colTitular = '#000000' 		//color del texto del titular
var colTexto   = '#000000' 		// color del texto de la noticia
var colFecha   = '#FFD175' 		//color del texto de la fecha
var colEnlace  = '#CCCCCC' 		//color del texto del enlace
var fuente     = "verdana" 		//fuente para los textos 
var tamTitular = '10' 			//tamaño de la fuente del titular
var tamTexto   = '10' 			//tamaño de la fuente del texto de la noticia
var tamFecha   = '9' 			// tamaño de la fuente de la fecha
var tamEnlace  = '9' 			// tamaño de la fuente del enlace 
var masInfo    = true 			//Determina si se usa o no el enlace. true para usarlo. false para omitirlo
var poneFecha  = true 			//true para poner fecha. false para omitirla. Si no se quiere fecha, dejar las comillas vacías ""
 
function noticia(titular,texto,fecha,enlace,destino){
	this.titular = titular
	this.texto 	 = texto
	this.fecha	 = fecha
	this.enlace  = enlace
	this.destino = destino
}
var noticias = new Array()
 
noticias[1]= new noticia(
/* Titulo */
"Curso Clínico Ortopedia",
/* Texto */
"El curso de 1er nivel tiene como objetivo principal que el cursante conozca las diferentes disgnacias, que sea capaz de elaborar un diagnóstico integral, morfológico, funcional, estructural, y etiopatogénico. Formular un plan de...",
/* Fecha */
"Sábado 21 de Agosto 2010 (Confirmado)",
/* Enlace*/
"javascript:popUp('http://www.urudent.com.uy/cursos/c_ortopedia_cli.html')",
/* Destino */
"_blank")
noticias[3]= new noticia(
/* Titulo */
"Curso Técnico de Ortopedia",
/* Texto */
"El curso integral tiene como objetivo principal que el cursante conozca los diferentes elementos y procedimientos de laboratorio para la construcción de aparatos removibles y fijos y sea capaz de realizar distintas aparatologías...",
/* Fecha */
"A Confirmar",
/* Enlace -*/
"javascript:popUp('http://www.urudent.com.uy/cursos/c_ortopedia_tec.html')",
/* Destino */
"_blank")
noticias[4]= new noticia(
/* Titulo */
"Curso Integral de Cerámica",
/* Texto */
"Se realiza un puente de tres piezas anterior más una pieza individual (1 molar), desde el encerado hasta el glaceado. Además se realizará una carilla y una incrustación, desde la elaboración del muñón de revestimiento refractario hasta...",
/* Fecha -*/
"A confirmar 2011",
/* Enlace */
"javascript:popUp('http://www.urudent.com.uy/cursos/c_ceramica2.html')",
/* Destino */
"_blank")
noticias[0]= new noticia(
/* Titulo */
"Curso de Ortodoncia",
/* Texto */
"El objetivo del curso es formar íntegramente al profesional para reconocer, prevenir y corregir las anomalías dento-faciales, con la finalidad de restituir la estética y las funciones normales, estables a través del tiempo. Conocer, evaluar, elegir...",
/* Fecha -*/
"Jueves 12 de Agosto 2010 (Confirmado)",
/* Enlace */
"javascript:popUp('http://www.urudent.com.uy/cursos/c_ortodoncia2.html')",
/* Destino */
"_blank")
noticias[2]= new noticia(
/* Titulo */
"Curso Integral de Esqueléticos",
/* Texto */
"Se realiza un Aparato Superior (desde el diseño, levantamiento de ángulos, encerado, etc hasta el acabado final del metal). Ademas un Aparato Inferior (desde el diseño, levantamiento de ángulos, encerado...",
/* Fecha -*/
"Comienzos Mensuales",
/* Enlace */
"javascript:popUp('http://www.urudent.com.uy/cursos/c_esqueleticos2.html')",
/* Destino */
"_blank") 

/*
noticias[6]= new noticia(
"El perro de Perico se come la flauta del Bartolo y éste le reclama un palote.",
"blablá bla blablablá blas blábla blablá bla blablablá blas blábla blablá bla blablablá blas bláblablablá bla blablablá blas blábla",
"7/6/03",
"#",
"_blank")
noticias[7]= new noticia(
"Ahora se cree que los Reyes Magos en realidad eran tres.",
"blablá bla blablablá blas blábla blablá bla blablablá blas blábla blablá bla blablablá blas bláblablablá bla blablablá blas blábla",
"2/8/03",
"#",
"_blank")*/
 

var det = false
function escribe(){
document.write ('<div id="mami" style="width:' + ancho + 'px; height:' + alto + 'px; position:relative;  overflow:hidden ">')
document.write('<table bgcolor="' + fondo + '" border = "' + marco + '" width="' + ancho + 'px" height="100%"><tr><td valign="top">')
document.write ('<div id="uno" style="top:' + alto +'px; width:' + ancho + 'px; height:' + alto + 'px;  ">')
document.write ('<div class="titular">')
document.write (noticias[0].titular)
document.write ('</div>')
document.write ('<div class="fecha">')
document.write (noticias[0].fecha)
document.write ('</div>')
document.write ('<div class="texto">')
document.write (noticias[0].texto)
document.write ('</div>')
if(masInfo == true){
	document.write ('<a class="enlace" href="')
	document.write (noticias[0].enlace)
	document.write ('" target="' + noticias[0].destino + '">Más información</a>')
	}
document.write ('</div>')
document.write ('<div id="dos" style="top:' + (alto*2) +'px; width:' + ancho + 'px; height:' + alto + 'px; ">')
document.write ('<div class="titular">')
document.write (noticias[1].titular)
document.write ('</div>')
document.write ('<div class="fecha">')
document.write (noticias[1].fecha)
document.write ('</div>')
document.write ('<div class="texto">')
document.write (noticias[1].texto)
document.write ('</div>')
if(masInfo == true){
	document.write ('<a class="enlace" href="')
	document.write (noticias[1].enlace)
	document.write ('" target = "' + noticias[1].destino + '">Más información</a>')
	}
document.write ('</div>')
document.write('</td></tr></table>')
document.write ('</div>')
if(navigator.appName == "Netscape")
{altoUno = document.getElementById('uno').offsetHeight}
else
{altoUno = document.getElementById('uno').clientHeight}
document.getElementById('uno').onmouseover =function(){
	det = true
	clearTimeout(tiempo)
	}
document.getElementById('uno').onmouseout =function(){
	det = false;
	clearTimeout(tiempo)
	escrolea()
	}
 
document.getElementById('dos').onmouseover =function(){
	det = true
	clearTimeout(tiempo)
	}
document.getElementById('dos').onmouseout =function(){
	det = false;
	clearTimeout(tiempo)
	 escrolea()
	 
	}
}
desp = 1
var cont = 1
var pos,pos2
function escrolea(){
pos = document.getElementById('uno').style.top
pos = pos.replace(/px/,"");
pos = pos.replace(/pt/,"");
pos = new Number(pos);
pos2 = document.getElementById('dos').style.top
pos2 = pos2.replace(/px/,"");
pos2 = pos2.replace(/pt/,"");
pos2 = new Number(pos2);
pos -= desp
pos2 -= desp

if (pos == desp){
	var contenidos = ""
	document.getElementById('dos').style.top = alto + "px"
	document.getElementById('dos').childNodes[0].firstChild.nodeValue  = noticias[cont].titular
	if(poneFecha == true){
	document.getElementById('dos').childNodes[1].firstChild.nodeValue  = noticias[cont].fecha
	}
	document.getElementById('dos').childNodes[2].firstChild.nodeValue  = noticias[cont].texto
	if(masInfo == true){
		document.getElementById('dos').childNodes[3].href = noticias[cont].enlace 
		document.getElementById('dos').childNodes[3].target = noticias[cont].destino
	}
	document.getElementById('uno').style.top = 0
	if(cont == noticias.length-1)
		{cont=0}
	else{
		cont++
		}
	pausa()
	return false
	}
else{
	if (pos2 == desp){
		var contenidos = ""
		document.getElementById('uno').style.top = alto + "px"
		document.getElementById('uno').childNodes[0].firstChild.nodeValue  = noticias[cont].titular
		if(poneFecha == true){
		document.getElementById('uno').childNodes[1].firstChild.nodeValue  = noticias[cont].fecha
		}
		document.getElementById('uno').childNodes[2].firstChild.nodeValue  = noticias[cont].texto
		if(masInfo == true){
		document.getElementById('uno').childNodes[3].href  = noticias[cont].enlace
		document.getElementById('uno').childNodes[3].target  = noticias[cont].destino
		}
		document.getElementById('dos').style.top = 0
		if(cont == noticias.length-1)
		{cont=0}
	else{
		cont++
		}
		pausa()
		return false
		}
	else{
		document.getElementById('uno').style.top = pos + "px"
		document.getElementById('dos').style.top = pos2 + "px"
		}
	}
tiempo = window.setTimeout('escrolea()',50)
}
var tiempo
function pausa()
{
clearTimeout(tiempo)
if (det == false){
	tiempo = setTimeout ('continuar()',2000)
	}
}
function continuar()
{
if(det == false)
	{escrolea()}
}
 
document.write('<style type="text/css">')
document.write ('#uno {')
document.write ('color: #006699;')
if(cursor == "pointer" || cursor == "hand"){
cursor = (navigator.appName == "Netscape")?'pointer;':'hand;';
}
document.write ('cursor:' + cursor + ";")
document.write ('position:absolute;}')
document.write ('#dos {')
document.write ('color: #006699;')
document.write ('cursor:' + cursor + ";")
document.write ('position:absolute;}')
document.write ('.titular{')
document.write ('color:' + colTitular +';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size :' + tamTitular + 'px;font-weight:bold}')
document.write ('.texto{')
document.write ('color:' + colTexto + ';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size:' + tamTexto + 'px;}')
if(poneFecha == true){
document.write ('.fecha{')
document.write ('color:' + colFecha +';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size :' + tamFecha + 'px;font-weight:bold}')
}
else{
document.write ('.fecha{display: none;}')
}
document.write ('.enlace{')
document.write ('color:' + colEnlace + ';')
document.write ('font-family:' + fuente + ';')
document.write ('font-size:' + tamEnlace + 'px;}')
document.write ('</style>')
//End function------------------------------------------------------------------------------



//Funcion tiempo de carga de pagina------------------------------------------------------->

function carga(){
	
endTime=new Date(); 
var responseTime=(endTime.getTime()-startTime.getTime())/1000; 
var responseeTime=(responseTime*100)/10; 
var responseeTime=Math.round(responseeTime); 
document.write("Este sitio fue cargado en: " + responseTime + " segundos.");

}
//Termina Funcion tiempo de carga de pagina---------------------------------------------->
