// JavaScript Document
// Functions for TactileView.com
// ***************************************************************** 

function openCenterWin(url,theWidth,theHeight){
	var theTop=(screen.height/2)-(theHeight/2);
	var theLeft=(screen.width/2)-(theWidth/2);
	var intScreenHeight = theHeight
	var intScreenWidth = theWidth
	if (screen.height < 801) {
		intScreenHeight = screen.height - 150;
	}
	if (screen.width - 40 < theWidth) {
		intScreenWidth = screen.width - 40;
	}
	var features='height='+intScreenHeight+',width='+intScreenWidth+',top='+theTop+',left='+theLeft+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,hotkeys=no";
	url = url + "&ScreenHeight="+screen.height + "&ScreenWidth="+screen.width
	theWin=window.open(url,'',features);
}