<html>
<head>
<script type="text/javascript" src="/webapp/scripts/file.js"></script>

<script>
function test(field)
{
	alert("hello");
}
</script>

</head>
<body>
<form>
<p>
numeric field 1: 
<INPUT type="text" name="test1" size="20" onblur="test(this)">
</p>

<p>
numeric field 2: 
<INPUT type="text" name="test2" size="20">
</p>
</form>
</body>
</html>

<html>
<head>
<script>
function onl()
{
    alert('hello');
}
</script>
</head>
<body onload="onl()">
<p>Hello
</body>
</html>

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script>
function onl()
{
    alert('hello');
    getx();
}
function getx()
{
    alert($("#my_div_id > #ape").html());
}
</script>
</head>
<body onload="onl()">
<p>Hello

<div id="my_div_id">
<span id="ape" style="visibility:hidden">
answer="yes"
</span>
</div>
</body>
</html>

var nfname = document.RenameForm.foldername_field.value;
if (nfname == "")
{
   alert("you need a folder name");
   return;
}

<html>
<head>
<script>
function test(field)
{
   alert("hello");
}
</script>
</head>

<body>
<form action="javascript:test()">
<p>Click the following button to run a post
<p>
<input type="submit" name="ClickMe" value="ClickMeValue"/>
</p>
</form>
</body>
</html>