
function alternate(id) { 
  if (document.getElementsByTagName) {  
    var table = document.getElementById(id);   
	var rows = table.getElementsByTagName("tr");   
 	//manipulate rows 
	for (i = 0; i < rows.length; i++) {           
	  if (i % 2 == 0) { 
	    rows[i].className = "even"; 
	  } else { 
	    rows[i].className = "odd"; 
	  }
	}
  }
}


// Trim leading and trailing spaces
function TrimSpaces(objToTrim) {
  with (objToTrim) {
    while('' + value.charAt(0) == ' ')
      value = value.substring(1, value.length);
    while('' + value.charAt(value.length - 1) == ' ')
      value = value.substring(0, value.length - 1);
  }
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}


