// JavaScript Document
var pollWindow = null;
var picWindow = null;

function popwindow(thewin2)
{	
	if (! picWindow || picWindow.closed)
	{
  picWindow = window.open(thewin2+".htm","tcgpic","menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=600,height=565");
	}else
	{
		picWindow.focus();
	}
}	

function zoomin(x)
{
document.getElementById(x).style.fontSize='17px';
}
function zoomout(x)
{
document.getElementById(x).style.fontSize='13px';
}
 var pww='';
function popww(thewind)
{	
	if (! pww || pww.closed)
	{
  pww = window.open(thewind,"jj","menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=300,height=260");
	}else
	{
		pww.focus();
	}
}
	function RegularPic(xxx)
	{
	var intwidth,intheight,intrate;
	
	//document.image1.style.display = 'inline';
	intwidth = document.images[xxx].width;
	intheight = document.images[xxx].height;
	if (document.images[xxx].width > 300 || document.images[xxx].height > 300){
	    if (intwidth> 300 )
	    {
	        intrate = intwidth/ 300;
	    }
	    else
	    {
	        intrate = 1;
	    }
	    document.images[xxx].width = intwidth / intrate; 
	    document.images[xxx].height = intheight / intrate;
	}
	}