<!--
// ------------------------------------------------------------------------------
// -- Array to hold date values
function isnArray() {
	argnr=isnArray.arguments.length
	for (var i=0;i<argnr;i++) {
		this[i+1] = isnArray.arguments[i];
	}
}

// ------------------------------------------------------------------------------
// -- Y2K compliant year
function getFullYear(d) {
    var y = d.getYear();
    if (y < 1000) {y += 1900};
    return y;
}

// ------------------------------------------------------------------------------
// -- Function to display time
function nowStr() {
   var now=new Date()
   year = now.getYear();
   if (year < 2000) year = 1900 + year;
   var hours=now.getHours()
   var minutes=now.getMinutes()
   timeStr=""+((hours > 12) ? hours - 12 : hours)
   timeStr+=((minutes < 10) ? ":0" : ":") + minutes
   timeStr+=(hours >= 12) ? " PM" : " AM"
   return timeStr
}

// ------------------------------------------------------------------------------
// -- Function to display date
function todayStr() {
	var isnMonths = new isnArray("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre");
	var isnDays = new isnArray("doming","lunes","martes","miércoles","jueves","viernes","sábado");
	var currenttime=nowStr();
	today = new Date();
	//document.write (today.getDate()+" de "+isnMonths[today.getMonth()+1]+" de "+getFullYear(today))
	document.write (today.getDate()+" de " + isnMonths[today.getMonth()+1]+" de "+getFullYear(today))
}

// ------------------------------------------------------------------------------
// -- OnMouseOver Function
 function Top(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }
  function Ent(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
   }
  function Out(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }

// ------------------------------------------------------------------------------
// -- US CITIES
function getWeatherInfoUS(citycode) {
	//alert("City: " + citycode);
	form = document.frmWeaxUS;
	form.action="/weather.asp";
	form.citycode.value = citycode;
	form.submit();
}

// ------------------------------------------------------------------------------
// -- LAT CITIES
function getWeatherInfoLAT(citycode) {
	form = document.frmWeaxLAT;
	form.action="/weather.asp";
	form.citycode.value = citycode;
	form.submit();
}

// ------------------------------------------------------------------------------
// -- INT CITIES
function getWeatherInfoINT(citycode) {
	form = document.frmWeaxINT;
	form.action="/weather.asp";
	form.citycode.value = citycode;
	form.submit();
}

// ------------------------------------------------------------------------------
// -- 25 FEATURED CITIES
function getWeatherInfo(citycode) {
	//alert("City: " + citycode);
	form = document.frmWeaxFeaturedCities;
	form.action="/weather.asp";
	form.citycode.value = citycode;
	form.submit();
}

// ------------------------------------------------------------------------------
// -- SHOW DATA FOR CONTINENTS
function getMapsContinente(continentecode) {
	//alert("City: " + continentecode);
	form = document.frmWeaxContinentes;
	form.action="/continentes.asp";
	form.continentecode.value = continentecode;
	form.submit();
}

// CODIGO DE ROLLOVER DE COLOR DE CELDAS

function cOvr(src) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
}
}

function cOut(src) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
}
}

function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}

function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}

function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}

function dDisplayStatusMsg(msgStr) {
  status=msgStr;
  document.dDisplayreturnValue = true;
}
//-->