/********** GENERAL VALUES *************/

if (self.innerWidth)
{
	var frameWidth = self.innerWidth;
	var frameHeight = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth)
{
	var frameWidth = document.documentElement.clientWidth;
	var frameHeight = document.documentElement.clientHeight;
}
else if (document.body)
{
	var frameWidth = document.body.clientWidth;
	var frameHeight = document.body.clientHeight;
}

/********* // GENERAL VALUES ************/

startTdWatch = function()
{
	if (document.all && document.getElementById)
	{
		var trNav = document.getElementById('trNav');

		for (i=0; i<trNav.childNodes.length; i++)
		{
			var node = trNav.childNodes[i];
			if (node.nodeName == "TD")
			{
				if(node.className != 'current') {
			        node.onmouseover = function(){
				        this.className = 'over';
			        };
			        
			        node.onmouseout = function(){
					this.className = '';
			        };
		        }
			}
		}
	}
}



var newWin = null;

function closeWin()
{
	if (newWin != null)
	{
		if(!newWin.closed) newWin.close();
	}
	
	if (window.opener)
	{
		window.opener.closeWin();
	}
}


function popup()
{
	closeWin();
	var strOptions = "status=no,height=320,width=350,top="+parseInt(frameHeight/2-160)+",left="+parseInt(frameWidth/2-175);
	newWin = window.open('index.php?page=pass_recover', 'newWin', strOptions);
	newWin.focus();
} 