function validateEmailAddress(emailAddress) {
 
	var at = emailAddress.indexOf('@');
        var dot = emailAddress.indexOf('.');
          
        if(at == -1 || dot == -1 || dot == 0 || dot == emailAddress.length - 1) {
         
	       	return false;
         	
        } else {
         
        	return true;
         	
        }
  
}

var browser = navigator.appName;

if(browser == "Microsoft Internet Explorer") {

  var scrollStep = 2;
	
} else {

  var scrollStep = 1;

}

var timerLeft = "";
var timerRight = "";

function toLeft(id) {

  document.getElementById(id).scrollLeft = 0;

}

function scrollDivLeft(id) {

  clearTimeout(timerRight);
  document.getElementById(id).scrollLeft += scrollStep;
  timerRight = setTimeout("scrollDivLeft('" + id + "')", 10);

}

function scrollDivRight(id) {

  clearTimeout(timerLeft);
  document.getElementById(id).scrollLeft -= scrollStep;
  timerLeft = setTimeout("scrollDivRight('" + id + "')", 10);

}

function toRight(id) {

  document.getElementById(id).scrollLeft = document.getElementById(id).scrollWidth;

}

function stopMe() {

  clearTimeout(timerRight);
  clearTimeout(timerLeft);

}

function isIE() {

  return msie.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
  
}
