function showFullPicture ( pageUrl, pageHeight, pageWidth ) 
{		
	myWin= open("", "displayWindow", "width="+pageHeight+",height="+pageWidth+",status=no,toolbar=no,menubar=no,resizable=no,left=50,top=50");  
	myWin.document.open();  
	myWin.document.write("<html><head><title>Full Picture</title>");
	myWin.document.write("</head><body bgcolor=black topmargin=0 leftmargin=0>");
	myWin.document.write("<a href='javascript:close()'><center><img src="+pageUrl+" border=0></center></a>");  	  
	myWin.document.write("</body></html>"); 
	myWin.document.close();  
}

function showbigpic ( page, name, widthpic, heightpic )
{
	myWin= open("", "displayWindow", "width="+widthpic+",height="+heightpic+",status=no,toolbar=no,menubar=no,resizable=no,left=20,top=20");
	myWin.document.open();
	myWin.document.write("<html><head><title>"+name+"</title>");
	myWin.document.write("</head><body bgcolor=black topmargin=0 leftmargin=0>");
	myWin.document.write("<a href='javascript:close()'><center><img src="+'inc/watermark/getimage.php?image_file='+page+" border=0></center></a>");
	myWin.document.write("</body></html>");
	myWin.document.close();
}

function redirect (url)
{	
	//ok = confirm ('Ar tikrai norite trinti?');
	//if (ok) 
	//{
		window.location.href = url;	
	//}	
}


function setPointer(theRow, thePointerColor)
{
	if ((thePointerColor == '' || typeof(theRow.style) == 'undefined')) {return false;}
	if (typeof(document.getElementsByTagName) != 'undefined') {var theCells = theRow.getElementsByTagName('td');}
	else if (typeof(theRow.cells) != 'undefined') {var theCells = theRow.cells;}
	else {return false;}
	if (theRow.style.backgroundColor != '') {return false;}
	var rowCellsCnt  = theCells.length;
	for (var c = 0; c < rowCellsCnt; c++) {theCells[c].style.backgroundColor = thePointerColor;}
	return true;
}


function openWindow(url) {
window.open(url, "", "left=200,top=100,height=500,width=420,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

