        
    if(navigator.appName.indexOf("Internet Explorer") > 0 && 
        parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE")+4, 4)) < 7) {
        document.write( "<link rel='stylesheet' type='text/css' href='/_system/repository/ie6-fix.inc.css' />" );    
    }
    
    function minwidth(minvalue, value){
        return document.body.offsetWidth <= minvalue ? minvalue - 5 + "px" : value + "%";
    }
    
    function win(src, w, h, scrollBars, resizable) { //location , menubar , toolbar , titlebar , fullscreen
        var top = Math.round(window.screen.height/2 - h/2);
        var left = Math.round(window.screen.width/2 - w/2);
        
        var wnd = window.open(src, "untitled-" + Math.ceil(Math.random()*100), "status=no,help=no,resizable="+resizable+",scrollbars="+scrollBars+",width=" + w + ",height=" + h + ",top=" + top + ",left=" + left);
        if (wnd){
            wnd.opener = window; //
            wnd.focus();
        }
        
        return false;
    }
    
    function textbox(id){
        var input = document.getElementById(id);
        var test = input.getAttribute('test');
        
        if (!test){
            input.setAttribute('test', input.value);
            test = input.value;
        }
        
        input.onfocus = function(){
            if (test == input.value)
                input.value = '';
        }
        
        input.onblur = function(){
            if (!input.value)
                input.value = test;
        };
    }
