function go2Login(obj) {
  var userName = trim(obj.userName.value);
  if (userName.length != 9) {
    alert("Invalid user name");
  } 
  else {
    var winHeight = window.screen.height - 81;
    var winWidth = window.screen.width - 11;
  	openParms = "toolbar=1,location=0,status=1,menubar=0,scrollbars=1,resizable=0,top=0,left=0,width=";
  	openParms += winWidth + ",height="+winHeight;
  	window.open("http://41.204.195.76/csp/"+userName+"/wab/startup.csp",userName,openParms);
	//window.open("http://196.3.166.27/csp/"+userName+"/wab/startup.csp",userName,openParms);
  }
  return false;
}
function trim(strText) {
  while (strText.substring(0,1) == ' ')
    strText = strText.substring(1, strText.length);
  while (strText.substring(strText.length-1, strText.length) == ' ')
    strText = strText.substring(0,strText.length-1);
  return strText;
}
function validate(obj) {
  if (obj.First_Name.value == "") {
    alert("Oops! Please enter your First Name");
    obj.First_Name.focus();
    return false;
  }
  if (obj.Surname.value == "") {
    alert("Oops! Please enter your Surname");
    obj.Surname.focus();
    return false;
  }
  if (obj.Email_Address.value == "") {
    alert("Oops! Please enter your Email Address");
    obj.Email_Address.focus();
    return false;
  }
  return true;
}