// JavaScript Document

  
  // this function is needed to work around 
  // a bug in IE related to element attributes
  function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  } 

/*Used to alternate table background color*/
function stripe(id){ 
	var IdArray = new Array();
	var IdArrayCount = 0;
	
	for (i_id = 0; i_id < arguments.length; i_id++){
		IdArray[IdArrayCount] = arguments[i_id];
			IdArrayCount++;
		}
		
	for (a = 0; a < IdArray.length; a++) { 
		var table = document.getElementById(IdArray[a]);
		if (! table) { return; }	
		   
		var rows = table.getElementsByTagName("tr");   
		for(i = 0; i < rows.length; i++){           
		 //manipulate rows 
			if(i % 2 == 0){ 
			   rows[i].className = "even"; 
			 }
			 else{ 
			   rows[i].className = "odd"; 
			 }       
		   } 
		 } 
		}
		