ricordandoti che JS è case-sensitive...ecco il tuo problema risolto....
<html>
<head>
<title></title>
<script language="javascript">
function controllo(){
if((modulo.elements["Oggetto"].value == "")||(modulo.elements["Oggetto"].value.length < 2)){
if(confirm("Il messaggio non ha Oggetto.Inviarlo lo stesso?")){
return true;
}
else{
modulo.elements["Oggetto"].focus();
return false;
}
}
}
</script>
</head>
<body>
<form name="modulo" onSubmit="return controllo()">
<input type="text" name="Oggetto">
<input type="submit" value="Invia">
</form>
</body>
</html>