
var fotoWin = null;

function hello () {
alert ("asasa" + "document.width= " + document.width + "  document.height= " + document.height);

}


function ShowFotoTest (fotoUrl, fotoWidth, fotoHeight) 
{

fotoHeight = fotoHeight + 30; 
//fotoWidth = fotoWidth + 10; 
 
var txtCode = " <HTML>\
<HEAD>\
<TITLE>" + fotoUrl + "</TITLE>\
<META http-equiv='Content-Type' content='text/html; charset=iso-8859-2'>\
<META http-equiv='Content-Style-Type' content='text/css'>\
<META http-equiv='Content-Script-Type' content='text/javascript'>\
<LINK rel='stylesheet' href='style.css' type='text/css'>  \
<STYLE>\
BODY  {\
	BACKGROUND-COLOR: #F1D79C;\
  BORDER:  0px 0px 0px 0px;\
	MARGIN:  0px 0px 0px 0px; \
	PADDING: 0px 0px 0px 0px;  \
}                             \
                               \
</STYLE>                        \
</HEAD>                          \
<BODY >                           \
<CENTER>                          \
<TABLE border = '0' width='100%' height='100%'>                    \
<TR>                                              \
<TD align='CENTER' valign='TOP'><img border='0' src=" + fotoUrl + ">  </TD> \
</TR>                               \
<TR>                                              \
<TD align='CENTER' ><A class='textmenu' href='#' onClick='window.close()'>Close/A><BR></TD> \
</TR>                               \
</TABLE>                            \
</CENTER>                          \
</BODY>                                 \
</HTML>";
//alert (txtCode); 
 if (fotoWin != null) {
        fotoWin.close();
        fotoWin = null;
    }

 
fotoWin = window.open("","",'height=' + fotoHeight + ',width=' + fotoWidth + ',screenX=100, screenY=100');
fotoWin.document.write(txtCode); 
fotoWin.opener = window;
fotoWin.focus(); 

}


function ShowFoto (fotoUrl, fotoWidth, fotoHeight ) 
{

fotoHeight = fotoHeight + 30; 
fotoWidth = fotoWidth - 4; 
 
var txtCode = " <HTML>\
<HEAD>\
<TITLE>" + fotoUrl + "</TITLE>\
<META http-equiv='Content-Type' content='text/html; charset=iso-8859-2'>\
<META http-equiv='Content-Style-Type' content='text/css'>\
<META http-equiv='Content-Script-Type' content='text/javascript'>\
<LINK rel='stylesheet' href='../common.css' type='text/css'>  \
<STYLE>\
BODY  {\
	BACKGROUND-COLOR: #F0E0D0;\
  BORDER:  0px 0px 0px 0px;\
	MARGIN:  0px 0px 0px 0px; \
	PADDING: 0px 0px 0px 0px;  \
}                             \
                               \
</STYLE>                        \
</HEAD>                          \
<BODY >                           \
<DIV align='center' >               \
<img   src=" + fotoUrl + "> \
<A class='textmenusmall' href='#' onClick='window.close()'>" + g_CloseLabel + "</A><BR> \
</DIV>                                 \
</BODY>                                 \
</HTML>";
//alert (txtCode); 

if (fotoWin != null) {
        fotoWin.close();
        fotoWin = null;
    }

fotoWin = window.open("","",'width=' + fotoWidth  + ',height=' + fotoHeight + ',screenX=100, screenY=100');
fotoWin.document.write(txtCode); 
fotoWin.opener = window;
fotoWin.focus(); 
}
     

function ShowFotoBKG (fotoUrl, fotoHeight, fotoWidth) 
{

fotoHeight = fotoHeight - 3; 
fotoWidth = fotoWidth - 3; 
 
var txtCode = " <HTML>\
<HEAD>\
<TITLE>" + fotoUrl + "</TITLE>\
<META http-equiv='Content-Type' content='text/html; charset=iso-8859-2'>\
<META http-equiv='Content-Style-Type' content='text/css'>\
<META http-equiv='Content-Script-Type' content='text/javascript'>\
<STYLE>\
BODY  {\
	DISPLAY: block;\
	BACKGROUND: #F0E0D0 url('" + fotoUrl + "');\
  BACKGROUND-REPEAT: no-repeat; \
	BACKGROUND-POSITION: center;   \
  BORDER:  0px 0px 0px 0px;\
	MARGIN:  0px 0px 0px 0px; \
	PADDING: 0px 0px 0px 0px;  \
}                             \
                               \
</STYLE>                        \
</HEAD>                          \
<BODY >                           \
&nbsp;\
</BODY>                                 \
</HTML>";
//alert (txtCode);  
fotoWin = window.open("","",'width=' + fotoHeight + ',height=' + fotoWidth + ',screenX=100, screenY=100');
fotoWin.document.write(txtCode); 

}
                                                                              
