//**********************************************************
// TIME AND YEAR DISPLAY
//**********************************************************
function showYear() {
	var myYear = new Date;
	document.write(myYear.getFullYear());
}

function showDate() {
    var stampmonths = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Deciembre");
	var stampdays = new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");
    var thedate = new Date();
    document.write(stampdays[thedate.getDay()] + ", " + thedate.getDate() + " de " + stampmonths[ thedate.getMonth()] + " de "  + thedate.getFullYear() + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
}


//**********************************************************
// CENTERED POPUP WINDOW
//**********************************************************

function popup(mypage,myname,w,h,features) {
	if(screen.width){
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
	} else {
		winl = 0;wint =0;
	}
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}

//**********************************************************
// FULL SCREEN POPUP WINDOW
//**********************************************************

function fullScreen1() {
    window.open('serviciosVirtuales.html','website','width='+screen.width*0.99+',height='+screen.height*0.93+',top=0,left=0,resizable=yes');
}
function fullScreen2() {
    window.open('../../manual/index.html','website2','width='+screen.width*0.99+',height='+screen.height*0.93+',top=0,left=0,resizable=yes');
}


//**********************************************************
// FORM TEXT FIELD CLEANER
//**********************************************************

function borrar() {
	document.contacto.nombres.value = "";
	document.contacto.apellidos.value = "";
	document.contacto.empresa.value = "";
	document.contacto.telefono.value = "";
	document.contacto.email.value = "";
	document.contacto.mensaje.value = "";
}
