function gotocert()
 {
   var obj;
   obj = document.getElementsByName("certlist").item(0);
   //alert(obj.value);

   if(obj != null)
   {
      switch (obj.value) 
      {
        case "29":
            window.location.href="ShowPrintersByCategory.asp?pcatid=29";
            break;
		case "30":
            window.location.href="ShowPrintersByCategory.asp?pcatid=30";
            break;
        case "31":
            window.location.href="ShowPrintersByCategory.asp?pcatid=31";
            break;
        case "33":
            window.location.href="ShowPrintersByCategory.asp?pcatid=33";
            break;
        case "34":
            window.location.href="ShowPrintersByCategory.asp?pcatid=34";
            break;
        case "35":
            window.location.href="ShowPrintersByCategory.asp?pcatid=35";
            break;                        
        case "36":
            window.location.href="ShowPrintersByCategory.asp?pcatid=36";
            break;
        case "37":
            window.location.href="ShowPrintersByCategory.asp?pcatid=37";
            break;
        case "38":
            window.location.href="ShowPrintersByCategory.asp?pcatid=38";
            break;
        case "39":
            window.location.href="ShowPrintersByCategory.asp?pcatid=39";
            break;
        case "41":
            window.location.href="ShowPrintersByCategory.asp?pcatid=41";
            break;
        case "42":
            window.location.href="ShowPrintersByCategory.asp?pcatid=42";
            break;
        case "44":
            window.location.href="ShowPrintersByCategory.asp?pcatid=44";
            break;
        case "45":
            window.location.href="ShowPrintersByCategory.asp?pcatid=45";
            break;
        case "67":
            window.location.href="ShowPrintersByCategory.asp?pcatid=67";
            break;                        
        case "46":
            window.location.href="ShowPrintersByCategory.asp?pcatid=46";
            break;
        case "47":
            window.location.href="ShowPrintersByCategory.asp?pcatid=47";
            break;                                                                                                
        case "48":
            window.location.href="ShowPrintersByCategory.asp?pcatid=48";
            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
}

