How's this?
<html>
<head>
<script>
function checkFile(f){
v=f.fileField.value;
if(v.substring(v.lastIndexOf('.')).toLowerCase()!='.jpg'){
alert('Files must be .jpg');
return false;
}
return true;
}
</script>
<body>
<form onsubmit="return checkFile(this)">
<input type="file" name="fileField">
<input type="submit">
</form>
</body>
</html>
Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};