function checkAll(obj){
  if(confirm("If you have previously selected any items, selecting all will erase your selections. Do you wish to do this?")){
      for(var i=0; i<=obj.length-1; i++){
          obj[i].checked=true;
      }
    }
}

function uncheckAll(obj){
  if(confirm("If you have previously selected any items, unselecting all will erase your selections. Do you wish to do this?")){
      for(var i=0; i<=obj.length-1; i++){
          obj[i].checked=false;
      }
  }
}



// dp0vn3 2009-02-24
// dp0vn3 2009-03-04: modified the function for repeatable use
function checkEnterSearch(e, parentFormObj, actionString ){ 
	//e is event object passed from function invocation
	//parentFormObj refers to the parentFormObject in which the form you want to submit
	// action String can be defined or empty, the action that this form will execute
	var characterCode;
	
	if(e && e.which){ //if which property of event object is supported (NN4)
		e = e;
		characterCode = e.which; //character code is contained in NN4's which property
	}
	else{
		e = event;
		characterCode = e.keyCode; //character code is contained in IE's keyCode property
	}
	
	if(characterCode == 13 && parentFormObj)
	{ 
		// if generated character code is equal to ascii 13 (if enter key)
		// and parentFormObject exists
	//alert(actionString);	
	////alert( parentFormObj.name +" , " parentFormObj.id );

		if ( actionString != '') 
		{// if actionString is defined change the action in the parentFormObject
			parentFormObj.action = actionString; 
		}//else default to action defined in the <FORM> tag
		
		parentFormObj.submit(); //submit the form.
		return false; 
	}
	else{
		return true; 
	}

}
// ----
