<!--
function namosw_fade_background(r1, g1, b1, r2, g2, b2, maxstep)
{
    document._r1 = r1;
    document._r2 = r2;
    document._g1 = g1;
    document._g2 = g2;
    document._b1 = b1;
    document._b2 = b2;
    document._maxstep = maxstep;
    document._curstep = 1;
    document._interval = setInterval("namosw_fade_setbgcolor()", 1);
}
function namosw_fade_setbgcolor()
{
    var maxstep = document._maxstep;
    var curstep = document._curstep;
    if (curstep >= maxstep)
    {
        clearInterval(document._interval);
        return;
    }
    var cr = new Array();
    cr[0] = Math.floor((document._r1*(maxstep-curstep) + document._r2*curstep)/maxstep);
    cr[1] = Math.floor((document._g1*(maxstep-curstep) + document._g2*curstep)/maxstep);
    cr[2] = Math.floor((document._b1*(maxstep-curstep) + document._b2*curstep)/maxstep);

    var hexchars = '0123456789abcdef';
    var i;
    var color_str = '#';
    for (i = 0; i < 3; i++)
    {
        color_str += hexchars.charAt(Math.floor(cr[i]/16));
        color_str += hexchars.charAt(cr[i]%16);
    }
    document.bgColor = color_str;
    document._curstep += 1;
}
function na_preload_img()
{
    var img_list = na_preload_img.arguments;

    if (document.preloadlist == null)
        document.preloadlist = new Array();

    var top = document.preloadlist.length;
    for (var i=0; i < img_list.length-1; i++)
    {
        document.preloadlist[top+i] = new Image;
        document.preloadlist[top+i].src = img_list[i+1];
    }
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
    var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
    if (name == '')
        return;
    if (img)
    {
        img.altsrc = img.src;
        img.src = rpath;
    }
}
function na_restore_img_src(name, nsdoc)
{
    var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
    if (name == '')
        return;
    if (img && img.altsrc)
    {
        img.src = img.altsrc;
        img.altsrc = null;
    }
}
var message="Protected image can not be saved.";
function click(e)
{
    if (document.all)
    {
        if (event.button == 2)
        {
            alert(message);
            return false;
        }
    }
    if (document.layers)
    {
        if (e.which == 3)
        {
            alert(message);
            return false;
        }
    }
}
function chkLength(evt,len)
{         
    var str = document.getElementById(evt.id);         
    if(str.value.length < len)        
    {                
        return true;        
    }        
    else       
    {              
        return false;        
    }
}
if (document.layers)
{
    document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->