// JavaScript Document
Home = "HOME";
blank = " ";
leftPos = 0;
	winWidth = 0;
	heightPos = 0;
	winHeight = 0;
	
function OverTXT(newTXT) {
		var td = document.getElementById("portName");
		td.firstChild.nodeValue = newTXT;
		}

function newWindow(pic,win) {
	
	if (screen) {
		winWidth = screen.width*0.8;
		leftPos = (screen.width/2) - (winWidth/2);
		winHeight = screen.height*0.8;
		heightPos = (screen.height/2) - (winHeight/2) - 20;
		}
		picWindow = window.open(pic, win, 'width='+winWidth+', height='+winHeight+', left='+leftPos+', top='+heightPos+', scrollbars=yes, resizable=yes')
		}

	
function infoWindow(pic,win) {
	if (screen) {
		winWidth = screen.width*0.6;
		leftPos = (screen.width/2) - (winWidth/2);
		winHeight = screen.height*0.25;
		heightPos = (screen.height/2) - (winHeight/2) - 20;
		}
		InfoWindow = window.open(pic, win, 'width='+winWidth+', height='+winHeight+', left='+leftPos+', top='+heightPos+', scrollbars=yes, resizable=yes')
		}
		
function rideWindow(pic,win) {
	if (screen) {
		winWidth = screen.width*0.98;
		leftPos = (screen.width/2) - (winWidth/2)-2;
		winHeight = screen.height*0.7;
		heightPos = (screen.height/2) - (winHeight/2) - 60;
		}
		Ridewindow = window.open(pic, win, 'scrollbars=yes, resizable=yes, toolbar=yes, status=yes, location=yes, menubar=yes, width='+winWidth+', height='+winHeight+', left='+leftPos+', top='+heightPos+'')
	
		}
		
