function popup(url,width,height)
{
	var win = window.open(url,'pop','height='+height+',width='+width);

	if(win.focus)
		win.focus();

	return false;
}

function getWindowSize()
{
	var width	= 0;
	var height	= 0;

	if(typeof(window.innerWidth) == 'number')
	{
		width	= window.innerWidth;
		height	= window.innerHeight;
	}
	else
	{
		if(document.documentElement && document.documentElement.clientWidth)
		{
			width	= document.documentElement.clientWidth;
			height	= document.documentElement.clientHeight;
		}
		else if(document.body && document.body.clientWidth)
		{
			width	= document.body.width;
			height	= document.body.height;
		}
	}

	return new Array(height,width);
	
}

function popup(url,width,height) 
{ 
var win = window.open(url,'pop','height='+height+',width='+width); 

if(win.focus) 
win.focus(); 

win.resizeTo(width,height); 

return false; 
}



