function resize_window(aWinWidth, aWinHeight)
{
	window.moveTo(0,0); 
	switch(navigator.appName) {
		case "Microsoft Internet Explorer":
			window.resizeBy(aWinWidth-document.body.clientWidth,aWinHeight-document.body.clientHeight);
			break;
		case "Netscape":
			window.innerWidth = aWinWidth;
			window.innerHeight = aWinHeight; 
			break;
		default:
			window.resizeTo(screen.availWidth, screen.availHeight);
	}
}
function new_window(aPageUrl, aWindowName, aFeatures)
{
	the_win = window.open(aPageUrl, aWindowName, aFeatures);
	if(arguments.length >= 5) {
		the_win.window.moveTo(arguments[3],arguments[4])
	}
	the_win.window.focus();
}
function centered_popup(aPageUrl, aWindowName, aWidth, aHeight)
{
	var tLeft=(screen.availWidth-aWidth)/2;
	var tTop=(screen.availHeight-aHeight)/2;
	var tFeatures="resizable=no,left="+tLeft+",top="+tTop+",width="+aWidth+",height="+aHeight;
	the_win = window.open(aPageUrl, aWindowName, tFeatures);
	the_win.window.focus();
}
function v3d_popup(aPageUrl)
{
  	var isSafari = /Safari/.test(navigator.userAgent);
	if (isSafari) centered_popup(aPageUrl,"_blank",968,680);
	else centered_popup(aPageUrl,"_blank",968,676);
}
function send_mail(aMailtoAddress)
{
	window.location = aMailtoAddress;
}
