function gotocert()
 {
   var obj;
   obj = document.getElementsByName("certlist").item(0);
   //alert(obj.value);

   if(obj != null)
   {
      switch (obj.value) 
      {
         case "canada":
            window.location.href="http://canada.nstl.com";
            break;
            
         case "ipmg":
            window.location.href="http://canada.nstl.com/ipmg.asp";
            break;

         case "sipss":
           window.location.href="http://canada.nstl.com/sipss.asp";
           break;
       
         case "quebec":
           window.location.href="http://canada.nstl.com/quebec.asp";
           break;
        
         case "hydro":
           window.location.href="http://canada.nstl.com/hydro.asp";
           break;
           
         case "msm2m":
           window.location.href="/mobile/mobile_certification.asp#msm2m";
           break;
         
         case "moto":
           window.location.href="/mobile/mobile_certification.asp#moto";
           break;
           
         
   
       
      } 
    }
    
  }
  
  
function checkEnter(e){
	var characterCode
	if(e && e.which){
		e = e
		characterCode = e.which
	}else{
		e = event
		characterCode = e.keyCode
	}	 
	if(
		(characterCode == 13) && 
		(document.getElementById("usernameInput").value.length > 0) && 
		(document.getElementById("passwordInput").value.length > 0)
	){
		document.forms[1].submit()
		return false
	}
	return true
}

