<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// Modificado, traducido y formateado al Espanol por Capeli
// ==============================================

// Se puede ajustar el tipo de Font, el color, tamano, estilo...

// Los valores aceptables para TheFontFace son aquellos que
// normalmente se usan en HTML, por ejemplo:
//     Arial
//     TimesRoman
//     Courier

// Los valores aceptables para TheFontColor son cualquier #RRGGBB
// usado en HTML. Hay que recordar usar el signo # y encerrar todo entre comillas.
// Ejemplos:
//     #FF0000 es rojo
//     #00FF00 es verde
//     #0000FF es azul

// Los valores aceptables para TheFontSize estan entre 2-7.

// Los valores aceptables para TheFontStyle son (unicamente!):
//     plain
//     bold
//     italic
//     bolditalic

var TheFontFace  = "Arial";
var TheFontColor = "#1E3F26";
var TheFontSize  = "1";
var TheFontStyle = "bold"; 

// Esto ajusta el separador entre los elementos de la fecha;

var TheSeparator = " de ";

// Se muestra o no el dia de la semana; utilizar
// yes para mostrarlo, no para ocultarlo.

var ShowDay ="yes";

// NO EDITAR A PARTIR DE ESTE PUNTO
// ==============================================

var Days = new Array("Dom","Lun","Mar","Mi&eacute;","Jue","Vie","S&aacute;b");
var TheDate = new Date();

var TheWeekDay = TheDate.getDay();
var Day ="";
if (ShowDay == "yes"){
    Day = Days[TheWeekDay];
    Day += " ";}

var TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;

var TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;

var TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;

var FontTagLeft  = "";
var FontTagRight = "";

if (TheFontStyle == "bold"){
    FontTagLeft = "<b>";
    FontTagRight ="</b>";}
    
if (TheFontStyle == "italic"){
    FontTagLeft = "<i>";
    FontTagRight ="</i>";}
    
if (TheFontStyle == "bolditalic"){
    FontTagLeft = "<b><i>"; 
    FontTagRight = "</i></b>";}

if(TheMonth == 1){
TheMonth = "Enero";
}else{
	if(TheMonth == 2){
	TheMonth = "Febrero";
	}else{
		if(TheMonth == 3){
		TheMonth = "Marzo";
		}else{
			if(TheMonth == 4){
			TheMonth = "Abril";
			}else{
				if(TheMonth == 5){
				TheMonth = "Mayo";
				}else{
					if(TheMonth == 6){
					TheMonth = "Junio";
					}else{
						if(TheMonth == 7){
						TheMonth = "Julio";
						}else{
							if(TheMonth == 8){
							TheMonth = "Agosto";
							}else{
								if(TheMonth == 9){
								TheMonth = "Setiembre";
								}else{
									if(TheMonth == 10){
									TheMonth = "Octubre";
									}else{
										if(TheMonth == 11){
										TheMonth = "Noviembre";
										}else{
											if(TheMonth == 12){
											TheMonth = "Diciembre";
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}    

var D = "";
//D += "<font color='"+TheFontColor+"' face='"+TheFontFace+"' size='"+TheFontSize+"'>";
D += FontTagLeft+TheMonthDay+TheSeparator+TheMonth+TheSeparator+TheYear+FontTagRight;
//D += "</font>";

document.write(D);


function RevisarCamposRequeridos(fields) {
	var elementos = fields.split(",");
	var elemento = null;
	for (var i=0; i<elementos.length; i++)
	{
		elemento = document.getElementById(elementos[i]);
		if (GetElementValue(elemento) == "") {
			alert('Por favor completar espacios indicados como:\n"Campos Requeridos"');
			elemento.focus();
			return false;
		}
	}
	alert("Su solicitud est\xe1 siendo tramitada, un ejecutivo estar\xe1 contact\xe1ndole a la mayor brevedad posible");
	return true;
 }


function GetElementValue(obj)
{
	if (obj.type=='hidden' || obj.type=='text' || obj.type=='password' || obj.type=='textarea' || obj.type=='button' || obj.type=='submit' || obj.type=='reset')
	{
		return obj.value;
	}
	else if (obj.type == 'radio' )
	{
		radiobt = document.getElementsByName(obj.name);
		retorno = ""
		for(var i = 0; i <=radiobt.length-1; i++ )
		{
			if(radiobt[i].checked )
			{
			  retorno = radiobt[i].value;
			  break;
			}
	    }
	return retorno;
	}
	else if ( obj.type == 'checkbox')
	{
		if (obj.checked)
			return obj.value;
	} else if ( obj.type == 'select-one' || obj.type == 'select-multiple') {
	    for ( var i = 0; i < obj.options.length; i++) {
		  if (obj.options[i].selected) {
		    return obj.options[i].value
		  }
		}
	}
	return null;
}

function ResetForm()
{
	if(confirm('Esta seguro que desea salir de est\xe1n p\xe1gina'))
	{
		window.location = "http://servivalores.com/"
	}
}



//-->
