function roll(o,s){
  var img = o.firstChild;
  var on = "_on";
  var off = "_off";
  if (s)
  {
	img.src = img.src.replace(off,on);
  } else{
	img.src = img.src.replace(on,off);
  }  
  
}

function isEmail(str) {
  if (!regExpSupported()) 
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}

function regExpSupported()
{
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr))
	  return true;
	else
	  return false;
  }
}

function goToPage(object) 
	{
    window.location.href = object.options[object.selectedIndex].value;
    object.selectedIndex = 0;
   	}	
