function showImageRealLocal(src)
{
    width = 540
    height = 640
    var str = 'scrollbars=yes,left=10,top=10,status=yes,'+'width='+width+',height='+height
    
    return showImageReal(src, str)
}

function searchTabHandler(pref, onload)
{
    if (pref == '') pref = 'jil'
    
    $('jilCont').hide(); 
    $('commCont').hide(); 
    $('garCont').hide(); 
    $('domCont').hide(); 
    
    $(pref+'Cont').show(); 
    
    if (typeof onload == 'undefined') {
        if (pref !== sg_defType)
        {
            $('variTable').hide()
            $('expiredDataNotice').show();
        }
        else
        {
            $('variTable').show()
            $('expiredDataNotice').hide();
        }
    }
    
    $('jilTab').className = 'MenuTab1'
    $('jilTab').previousSibling.className = 'MenuTabU'
    $('jilTab').nextSibling.className = 'MenuTabU'
    $('jilTab').nextSibling.firstChild.src = sg_URL_PROJECT + 'images/papka_01.gif';
    
    $('commTab').className = 'MenuTab1'
    $('commTab').nextSibling.className = 'MenuTabU'
    $('commTab').nextSibling.firstChild.src = sg_URL_PROJECT + 'images/papka_01.gif';
    
    $('garTab').className = 'MenuTab1'
    $('garTab').nextSibling.className = 'MenuTabU'
    $('garTab').nextSibling.firstChild.src = sg_URL_PROJECT + 'images/papka_01.gif';
    
    $('domTab').className = 'MenuTab1'
    $('domTab').nextSibling.className = 'MenuTabU'
    
    $(pref+'Tab').className = 'MenuTab0'
    
    $(pref+'Tab').nextSibling.className = 'MenuTab'
    $(pref+'Tab').previousSibling.className = 'MenuTab'
    
    if (pref !== 'jil') 
    { 
        $(pref+'Tab').previousSibling.firstChild.src = sg_URL_PROJECT + 'images/papka_02.gif' 
    }
    else
    {
        $(pref+'Tab').nextSibling.firstChild.src = sg_URL_PROJECT + 'images/papka_01.gif';
    };

    return false;
}

function regClear(type)
{
    list = {0:'jil',1:'comm',2:'gar',3:'dom'}
    
    arr = new Array()
    arr[0] = "input"
    
    for (i=0;i<=3;i++)
    {
        if (type != list[i])
        {
            Selector.findChildElements($(list[i]+"Cont"), arr).each(function (n){ if (n.name == 'regName[]') {n.checked = false}})
        }
    }

  return;
}

function matClear(type)
{
    list = {0:'jil',1:'gar',2:'dom'}

    arr = new Array()
    arr[0] = "select"
    
    for (i=0;i<=2;i++)
    {
        if (type != list[i])
        {
            Selector.findChildElements($(list[i]+"Cont"), arr).each(function (n){ if (n.name == 'walling_type') {n.selectedIndex = 0}})
        }
    }

  return;
}
