Paste the following into an HTML file and try it
<script language="Javascript">
function jstest(strvalue)
{
alert(vbtest(strvalue));
}
</script>
<script language="VBScript">
function vbtest(svalue)
vbtest = "
VB:" & sValue
end function
</script>
<input type="text" id="test" value="put text in">
<input type="button" onClick="jstest(test.value)" value="Try Me">
Regards,
Sean Anderson