function alignDivs(classname) {
    var maxColumnHeight=300;
    jQuery('div.'+classname).each(function () {
        h=jQuery(this).height();
        if (maxColumnHeight < h)
            maxColumnHeight = h;
    })
    jQuery('div.'+classname).each(function () {
        jQuery(this).height(maxColumnHeight);
    })
}

var scrollableApi = null;
jQuery(document).ready(function() {
    jQuery('a.lightbox_link').lightBox();
    //alignDivs('column');
});

function pwdFocus(obj) {
    if (obj.value=='PASSWORD') {
        var newO=document.createElement('input');
        newO.setAttribute('type','password');
        newO.setAttribute('name',obj.getAttribute('name'));
        newO.setAttribute('onfocus','pwdFocus(this)');
        newO.setAttribute('onblur','pwdBlur(this)');
        obj.parentNode.replaceChild(newO,obj);
        newO.focus();
    }
}
function pwdBlur(obj) {
    if (obj.value=='') {
        var newO=document.createElement('input');
        newO.setAttribute('type','text');
        newO.setAttribute('name',obj.getAttribute('name'));
        newO.setAttribute('value','PASSWORD');
        newO.setAttribute('onfocus','pwdFocus(this)');
        newO.setAttribute('onblur','pwdBlur(this)');
        obj.parentNode.replaceChild(newO,obj);
    }
}

function solSubmit() {
    var sbutton = null;
    inputs = document.getElementsByTagName('INPUT');
    for(var i=0; i<inputs.length; i++)
        if(inputs[i].type == 'submit')
            sbutton = inputs[i];
    if(sbutton)
       sbutton.click();
}
