// added new window function
// Mark Arnold 2001-11-30

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
	if(pos=="random") {
		LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center") {
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null) {
		LeftPosition=0;
		TopPosition=20
	}

	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win=window.open(mypage,myname,settings);
	if(win.focus) {
		win.focus();
	}
}

function dij8input(size, maxLen, name, value) {
	if(navigator.appName != "Netscape") {
		document.write('<INPUT TYPE="TEXT" SIZE="' + size + '"  MAXLENGTH="' + maxLen + '" NAME="' + name + '" VALUE="' + value + '">');
	}
	else {
		document.write('<INPUT TYPE="TEXT" SIZE="' + Math.round(size*0.89) + '" MAXLENGTH="' + maxLen + '" NAME="' + name + '" VALUE="' + value + '">');
	}
}

function highlightRow(row,toggle) {
	if(document.all) {
		toggle == 1 ? row.className = "cPSTm2" : row.className = "cPSTm1";
	}
}


