/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function updateStaticText(o, property, texto) {
    
    if (texto != null && texto.length > 0) {
        o.innerHTML = "<font color='#009900'><b>" + property + ":</font></b> " +  texto;
    } else {
        o.innerHTML = '';
    }
    
}
function updateLink(o, texto) {
    
    if (texto != null && texto.length > 0) {
        o.innerHTML = "<a target='new' href=\"http://" + texto + "\">" + texto + "</a>";
    } else {
        o.innerHTML = '';
    }
    
}

function updateStaticTextNegrilla(o, texto) {    
    
    if (texto != null && texto.length > 0) {
        o.innerHTML = "<b><u>" + texto + ":</b></u> ";
    } else {
        o.innerHTML = '';
    }
    
}

function updateImage(o, src) {
    //alert('updateImage img=' + o + " src=" + src + " div=" + div);    
    if (src!= null && src.length > 0) {
        o.src = src;
        o.style.visibility = 'visible';
    } else {
        o.style.visibility = 'hidden';
    }
}

function showDiv(theElementStyle) {
    theElementStyle.style.display = "block";
}
function hideDiv(theElementStyle) {
    theElementStyle.style.display = "none";
}



