ok, first of all yes you can do it with javascript.
depending on what type of input box you have, like text box, radio buttons,.... parts of your script change.
I assume you only have text boxes:
Remember this is a very simple example:
<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript">
function CheckForm()
{
if(document.form1.name.value=="")
{
alert("Enter your name");
return false;
}
if(document.form1.comment.value=="")
{
alert("Enter your comments");
return false;
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="" onSubmit="return CheckForm();">
<p>
<input type="text" name="name">
</p>
<p>
<textarea name="comment"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</body>
</html>
HTH
kamy