function nahled(filename,x,y,title,alt){
    windowops=eval("'toolbar=no,left=80,top=60,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=" + x + ",height=" + y + "'")
    var htmlcode
    htmlcode="<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>\n"
    htmlcode+="<html><head><title>" + title + "<\/title><\/head>\n"
    htmlcode+="<body bgcolor='White' marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>\n"
    htmlcode+="<a href=\"javascript:window.close('nahled1')\"><img src='" + filename + "' width='" + x + "' height='" + y + "' alt='" + alt + "' border='0' title='" + alt + "'><\/a>\n"
    htmlcode+="<\/body><\/html>\n"
    var newWindow =  window.open("", 'New2',
        windowops);
    newWindow.document.write(htmlcode);
    return;
}

function confirmAction(actionName, actionUrl){
    if (confirm(actionName)) {
        location  = actionUrl;
    }
}

function showPicture(whichLayer, path) {

    var elem, vis;
    if( document.getElementById ) // this is the way the standards work
        elem = document.getElementById( whichLayer );
    else if( document.all ) // this is the way old msie versions work
        elem = document.all[whichLayer];
    else if( document.layers ) // this is the way nn4 works
        elem = document.layers[whichLayer];
    
    elem.src = path;
    //elem.style.display = 'none';
}

function showhide(whichLayer) {

    var elem, vis;
    if( document.getElementById ) // this is the way the standards work
        elem = document.getElementById( whichLayer );
    else if( document.all ) // this is the way old msie versions work
        elem = document.all[whichLayer];
    else if( document.layers ) // this is the way nn4 works
        elem = document.layers[whichLayer];
    vis = elem.style;

    vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function show(whichLayer) {

    var elem, vis;
    if( document.getElementById ) // this is the way the standards work
        elem = document.getElementById( whichLayer );
    else if( document.all ) // this is the way old msie versions work
        elem = document.all[whichLayer];
    else if( document.layers ) // this is the way nn4 works
        elem = document.layers[whichLayer];
    vis = elem.style;

    vis.display = 'block';
}

function hide(whichLayer) {

    var elem, vis;
    if( document.getElementById ) // this is the way the standards work
        elem = document.getElementById( whichLayer );
    else if( document.all ) // this is the way old msie versions work
        elem = document.all[whichLayer];
    else if( document.layers ) // this is the way nn4 works
        elem = document.layers[whichLayer];
    vis = elem.style;

    vis.display = 'none';
}


