﻿function onshow(empurl)
{
    var is=document.getElementById("img_show");
    if(empurl != ""){
        var path=encodeURI(empurl);
        is.innerHTML = '<img src='+ path +' />';
        is.style.display = "block";
        is.style.top  = document.body.scrollTop + event.clientY + 5 + "px";
        is.style.left = document.body.scrollLeft + event.clientX + 5 + "px";
    }
}

function outshow()
{
    var is=document.getElementById("img_show");
	is.innerHTML = "";
	is.style.display = "none";
}

function clickshow(empurl,type)
{  
    if(type=="c")
    {
        if(empurl != ""){
            var path=encodeURI(empurl);
            window.open(encodeURI(path),"","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=70,height=140");
        }
    }
    else if(type=="m")
    {
        if(empurl != ""){
            var mass=encodeURI(empurl);
            window.open(encodeURI(mass),"","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=70,height=140");
        }
    }
}
