function newHelpWindow(helpID) {
	helpURL = "/servlet/DisplayHelp/"+helpID;
	var helpWinOptions = "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,width=475,height=350,left=50,top=50";
	catwindow = window.open(helpURL, "VRVwebHelp", helpWinOptions);
}

function newWindow(strURL, strTitle, strOptions) {
	var winOptions = strOptions;
	catwindow = window.open(strURL, strTitle, winOptions);
}

// Returns true if the last character is c
function endswith(str,chr){
	return (chr == str.charAt(str.length-1));		
}

function trim(str) {
	var i = 0,j = str.length - 1;
	while(str.charAt(i) == ' ') {
		i++;
		if(i == j) {
			return "";
			}
	}
	while(str.charAt(j) == ' ') j--;
	j++;
	return str.substring(i,j);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	// Copyright 2007 - VPSit , Tiggee LLC
	// alert(selObj.options[selObj.selectedIndex].value);
	// alert(selObj.options[selObj.selectedIndex].value.length);
	if(selObj.options[selObj.selectedIndex].value.length > 2) {
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
  }
}
