 						{
 							if (hour > 12)
 								break; //error
-							else
+							else if (hour >= 0 && hour < 12)
 								hour += 12;
 						}
 					}

                    break;  //error
                }
                
                marker = 0
            }
        }
		

                }
                marker = 0;
				
				// All known locales AM/PM 
				if (ampm.hasOwnProperty(word))
				{
					isPM = true;
					
					if (hour > 12)
						break; // error
					else if (hour >= 0 && hour < 12)
						hour += 12;
				}
            }
