

loadImg = new Image; loadImg.src='/images/loadsm.gif';
function RegUser(dataInfo) {
    document.getElementById('authBlock').innerHTML = 'Идет проверка данных...';
    qv_RegUser(dataInfo);

}
function mail(rcode)
{window.open('mail.php?id='+rcode,'sendMail','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=550,height=480,left=100,top=100');}
function selectAddForm(type, id) {
    if (type == 1) {
        obj_sCat = document.addForm.sCat;
        obj_sCat.disabled = true;
        removeOpt(obj_sCat);
        obj_sCat.options[0] = new Option('Загрузка данных...','');
        obj_sSCat = document.addForm.sSCat;
        obj_sSCat.disabled = true;
        removeOpt(obj_sSCat);
        qv_loadSelect('1',id,'');
    } else if (type == 2) {
        obj_sSCat = document.addForm.sSCat;
        obj_sSCat.disabled = true;
        removeOpt(obj_sSCat);
        obj_sSCat.options[0] = new Option('Загрузка данных...','');
        obj_cat = document.addForm.cat;
        qv_loadSelect('2',id, obj_cat.options[obj_cat.selectedIndex].value);
    }
}

function removeOpt(objSel)
{
    for(var i=0;i<objSel.options.length;i++) {
        objSel.options[i] = null;
    }
    objSel.options.length = 0;
}

function regsFormShow(type, emailObj)
{
    if (type == '0') {
        if(emailObj.value=='Ваш e-mail')emailObj.value='';
    } else if (type == '1') {
        if(emailObj.value=='')emailObj.value='Ваш e-mail';
    }
}

function loadImages(form) {
    document.getElementById('listImages').style.display = 'none';
    document.getElementById('messImage').style.display = 'block';
    document.getElementById(form).submit();
    }
function showAuthHelp(type)
{
    if (type == '0') {
        document.getElementById('helpAuth').style.display = 'block';
    } else if (type == '1') {
        document.getElementById('helpAuth').style.display = 'none';
    }
}


