function navOver(i) {
	i.src = i.src.replace(".gif", "_o.gif");
}

function navOut(i) {
	i.src = i.src.replace("_o.gif",".gif");
}

function testSelected(rb) {
	if (rb.length==undefined)
		return rb.checked;	
	
	for (count=0;count<rb.length;count++) {
		if (rb[count].checked)
			return true;
	}
	return false;
}

// verifies that thee email address provided is correct.

var reEmail = /^.+\@.+\..+$/
var defaultEmptyOK = false


function isEmpty(s) { 
  return ((s == null) || (s.length == 0))
}


function isEmail (s){
  if (isEmpty(s)) 
    if (isEmail.arguments.length == 1) return defaultEmptyOK;
    else return (isEmail.arguments[1] == true);
    
  else {
    return reEmail.test(s)
  }
}





function equalHeight(group) {
 var tallest = 0;
 group.each(function() {
  var thisHeight = $(this).height();
  if(thisHeight > tallest) {
   tallest = thisHeight;
  }
 });
 group.height(tallest);
}


