function show(file, width, height){
	var yesno = 'no';
	if (width > GetWidth() || height > GetHeight()){yesno='yes'};
	try{
		window.showModalDialog(file,"" , 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;help:no;center:yes;border:thin;status:no;scrollbars="+yesno+";toolbar=no;menubar=no;resizable=yes');
	} catch(err) {
		window.open(fil, "_blank", "width="+width+",height="+height+",titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars="+yesno+",resizable=yes");
	};
}

function GetWidth()
{
        var x = 0;
        if (self.innerHeight)
        {
                x = self.innerWidth;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                x = document.documentElement.clientWidth;
        }
        else if (document.body)
        {
                x = document.body.clientWidth;
        }
        return x;
}
 
function GetHeight()
{
        var y = 0;
        if (self.innerHeight)
        {
                y = self.innerHeight;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                y = document.documentElement.clientHeight;
        }
        else if (document.body)
        {
                y = document.body.clientHeight;
        }
        return y;
}

function showimg(vName, vComment, vNumber)
{
	parent.document.oImg.src = vName;
	parent.document.oImg.style.height=GetHeight() - 150;
	parent.document.oImg.style.display = "";
	vNumber = vNumber + 1;
	try{
		parent.oTdCount.innerHTML = "<center>" + vNumber + " θη " + txtCount.value + "</center>";
		parent.oTdComment.innerHTML = "<center>" + vComment + "</center>";
	} catch(err) {
	};
}
