var tiempo1 = new Date();
var hora1, cad;
with (tiempo1){
hora1 = getHours();}

if (hora1 >= 1)
     cad = " buenas noches.";
if (hora1 > 6)
     cad = " buenos días.";
if (hora1 > 12)
     cad = " buenas tardes.";
if (hora1 > 20)
     cad = " buenas noches.";



function rightclick () {
if (event.button==2) {
 alert("INMOEUROPE" + "\n\nle desea" + cad)
                     }
}

//document.onmousedown=rightclick;


function event_false() {
        // window.event.returnValue = false
   }

document.onselectstart = event_false


// ------------ RELOJ ---------------

var hora_mundial = new Array()
hora_mundial[0]="Azores,-2"
hora_mundial[1]="Bagdad,3"
hora_mundial[2]="Beijing,8"
hora_mundial[3]="Berlin,2"
hora_mundial[4]="Buenos Aires,-3"
hora_mundial[5]="Chicago,-6"
hora_mundial[6]="Denver,-7"
hora_mundial[7]="Hong Kong,8"
hora_mundial[8]="Honolulu,-10"
hora_mundial[9]="Johannesburgo,2"
hora_mundial[10]="El Cairo,2"
hora_mundial[11]="Lima,-5"
hora_mundial[12]="London,0"
hora_mundial[13]="Mexico City,-6"
hora_mundial[14]="Moscow,3"
hora_mundial[15]="New York,-5"
hora_mundial[16]="Paris,1"
hora_mundial[17]="Perth,8"
hora_mundial[18]="Rio de Janeiro,-3"
hora_mundial[19]="San Francisco,-8"
hora_mundial[20]="Sydney,11"
hora_mundial[21]="Tokyo,9"
var velocidad=1000
var step=8
var hours
var shifthours
var minutes
var seconds
var localhours
var thisplace
var i_substring=0
var content
function reloj() {
content=" -------------------------------------"
for (i=0;i<=hora_mundial.length-1;i++) {
	thisplace=hora_mundial[i].split(",")
	thistime= new Date()
	hours=thistime.getUTCHours()
	hours=eval(hours)
	shifthours=eval(thisplace[1])
	localhours=eval(shifthours+hours)
	if (localhours <0) {localhours=24+localhours}
	if (localhours >=24) {localhours=localhours-24}
	
	minutes=thistime.getUTCMinutes()
	seconds=thistime.getUTCSeconds()
	
	if (thisplace[0]=='Delhi') {
		minutes=eval(minutes+30)
		if (minutes>=60) {
			minutes=eval(minutes-60)
			localhours=eval(localhours+1)
		}
	}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (eval(seconds) < 10) {seconds="0"+seconds}
	if (eval(localhours) < 10) {localhours="0"+localhours}
	thistime = localhours+":"+minutes
	content+=" ------ "+thisplace[0]+": "+thistime
	}
	content+=" -------------------------------------"
	scrolltime()
}

function scrolltime() {
	if (i_substring<=content.length-1) {
		window.status=content.substring(i_substring,content.length-1)
		i_substring=i_substring +step
		var timer=setTimeout("reloj()",velocidad)
		
	}
	else {
		i_substring=0
		clearTimeout(timer)
		reloj()
	}
}


// ------------ FIN RELOJ -----------


function Validar2() {
    var caracteres_permitidos = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-";
    var i;
    for (i=0;i<document.form2.ciudad.value.length;i++) {
        if (caracteres_permitidos.indexOf(document.form2.ciudad.value.charAt(i)) == -1) alert('NO DEBE PONER ACENTOS'); return false;
    }
    return true;
}


function ventana_comodin (pagina, ancho, largo) {
     ventana_c=window.open(pagina,'miVentana_c','location=no,directories=no,status=no,menubar=no,toolbar=no,scrollbars=yes,resizable=no,copyhistory=no,width=' + ancho + ' height=' + largo)
     ventana_c.focus();
}
