/* USEFUL SCRIPTS */
function fill(target, value) {if(document.getElementById(target).value == ''){document.getElementById(target).value = value; return;} else{return;}}
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
function checkAlias(alias) {
    var myUrl = "../common/ajax.php";
    var myPars = "consulta=user_exists&alias="+alias;
    var myAjax = new Ajax.Request(myUrl, { method: 'post',
                                           parameters: myPars,
                                           evalScripts: true,
                                           onFailure: function() { alert('Error') },
                                           onComplete: function(originalResponse) {
                                               var json = eval("("+originalResponse.responseText+")");
                                               $("content_auto_complete").innerHTML=json.html;
                                               $("content_auto_complete").style.display="block";
                                           }
                                           });
}

function toggleAlbum(toshowID, tohideID){
    if($(toshowID).style.display=='none'){ 
        $(toshowID).appear({duration:2.0});
        $(toshowID+'_radio').checked='checked';
        $(tohideID+'_radio').checked='';
        $(tohideID).fade({duration:1.0});
    }
}


