// JavaScript Document
function clickOnTextUser(form){
if(form.value == "usuario@dominio.com"){
form.value = "";
form.style.fontStyle = "normal";
form.style.color = "#000000";
}
}
function lostFocusTextUser(form){
if(form.value == ""){
form.value = "usuario@dominio.com";
form.style.fontStyle = "italic";
form.style.color = "#999999";
}
}
function unloadCheck(layer){
var punto;
punto = document.getElementById(layer);
punto.innerHTML = " - Verificar si estoy registrado";
}
function confirmSubmit(url){
var agree;
agree = confirm("Esta seguro que desea realizar esta accion?");
if(agree)
window.location=url;
}
function openWindow(url, name, width, height){
window.open(url,name,"width=" + width + ",height=" + height + ",resizable=no,scrollbars=yes");
}
function loadIMG(layer, img){
document.getElementById(layer).innerHTML = '
';
self.setTimeout("document.getElementById('"+layer+"').innerHTML='';", 1000);
}
function flashnewsOver(layer){
document.getElementById(layer).setAttribute("class", "flashnewsThumbOver");
}
function flashnewsOut(layer){
document.getElementById(layer).setAttribute("class", "flashnewsThumb");
}
//--------------------------------------------------------------------------
function minimizarSuperBulletin(layer, layerLink, maximo, minimo, imagenLayer){
self.setTimeout("document.getElementById('" + imagenLayer + "').style.height='" + minimo + "px';", 0);
cont = maximo;
tiempo = 1;
while(cont > minimo){
self.setTimeout("contador('" + layer + "', "+cont+");", 25 * tiempo);
cont = cont - (5 * tiempo);
tiempo = tiempo + 1;
}
self.setTimeout("contador('" + layer + "', " + minimo + ");", 25 * tiempo);
document.getElementById(layerLink).innerHTML = "maximizar";
document.getElementById(layerLink).href = "#maximizar";
document.getElementById(layerLink).attributes["onclick"].value = "maximizarSuperBulletin('"+layer+"', '"+layerLink+"', "+minimo+", "+maximo+", '"+imagenLayer+"')";
}
//--------------------------------------------------------------------------
function maximizarSuperBulletin(layer, layerLink, minimo, maximo, imagenLayer){
cont = minimo;
tiempo = 1;
while(cont < maximo){
self.setTimeout("contador('" + layer + "', "+cont+");", 25 * tiempo);
cont = cont + (5 * tiempo);
tiempo = tiempo + 1;
}
self.setTimeout("contador('" + layer + "', " + maximo + ");", 25 * tiempo);
self.setTimeout("document.getElementById('" + imagenLayer + "').style.height='" + maximo + "px';", 25 * tiempo);
document.getElementById(layerLink).innerHTML = "minimizar";
document.getElementById(layerLink).href = "#minimizar";
document.getElementById(layerLink).attributes["onclick"].value = "minimizarSuperBulletin('"+layer+"', '"+layerLink+"', "+maximo+", "+minimo+", '"+imagenLayer+"')";
}
//--------------------------------------------------------------------------
function maximizarSuperBulletinOver(layer, layerLink, minimo, maximo, imagenLayer){
cont = minimo;
tiempo = 1;
while(cont < maximo){
self.setTimeout("contador('" + layer + "', "+cont+");", 25 * tiempo);
cont = cont + (5 * tiempo);
tiempo = tiempo + 1;
}
self.setTimeout("contador('" + layer + "', " + maximo + ");", 25 * tiempo);
self.setTimeout("document.getElementById('" + imagenLayer + "').style.height='" + maximo + "px';", 25 * tiempo);
document.getElementById(layerLink).innerHTML = "minimizar";
document.getElementById(layerLink).href = "#minimizar";
document.getElementById(layerLink).attributes["onclick"].value = "minimizarSuperBulletin('"+layer+"', '"+layerLink+"', "+maximo+", "+minimo+", '"+imagenLayer+"')";
document.getElementById(layer).attributes["onmouseover"].value = "";
}
//--------------------------------------------------------------------------
function maximizarLayer(layer, minimo, maximo){
cont = minimo;
tiempo = 1;
while(cont < maximo){
self.setTimeout("contador('" + layer + "', "+cont+");", 25 * tiempo);
cont = cont + (5 * tiempo);
tiempo = tiempo + 1;
}
self.setTimeout("contador('" + layer + "', " + maximo + ");", 25 * tiempo);
//FUNCION QUE SE DESEE
}
//--------------------------------------------------------------------------
function minimizarLayer(layer, maximo, minimo){
cont = maximo;
tiempo = 1;
while(cont > minimo){
self.setTimeout("contador('" + layer + "', "+cont+");", 25 * tiempo);
cont = cont - (5 * tiempo);
tiempo = tiempo + 1;
}
self.setTimeout("contador('" + layer + "', " + minimo + ");", 25 * tiempo);
//FUNCION QUE SE DESEE
}
//--------------------------------------------------------------------------
function contador(layer, num){
var lay1;
lay1 = document.getElementById(layer);
lay1.style.height = num+"px";
}
//--------------------------------------------------------------------------
function clickCommentText(layer){
if(document.getElementById(layer).value == 'Tu comentario, haz click...'){
document.getElementById(layer).value='';
document.getElementById(layer).style.color='#FAFAFA';
}
}
//--------------------------------------------------------------------------
function GthumbsOver(layer){
document.getElementById(layer).bgColor = "#A1E629";
}
function GthumbsOut(layer){
document.getElementById(layer).bgColor = "#383838";
}
function selectAll(selectBox,selectAll) {
if (typeof selectBox == "string") {
selectBox = document.getElementById(selectBox);
}
if (selectBox.type == "select-multiple") {
for (var i = 0; i < selectBox.options.length; i++) {
selectBox.options[i].selected = selectAll;
}
}
}
function delayFunction_checkSelectCity(layer, idCheck){
setTimeout("checkSelectCity('"+layer+"', '"+idCheck+"')",1000);
}
function checkSelectCity(layer, idCheck){
if(document.getElementById(idCheck).value != ""){
document.getElementById(layer).innerHTML='Verificado';
}else{
document.getElementById(layer).innerHTML='Selecciona un resultado';
}
}