ok, you have three things here
the companyname field (or hard coded name)
the hidden form field
the script to transfer the name
<script>
document.applicant.subject.value = document.applicant.COMPANYNAME.value
// test it
alert(document.applicant.subject.value);
</script>
<input type="text" name="COMPANYNAME">
<input type="hidden" name="subject" value=test>
so to use this we could do something like this
<html>
<head>
<script>
function changeIt() {
document.applicant.subject.value = document.applicant.COMPANYNAME.value
// test it
alert(document.applicant.subject.value);
}
</script>
</head>
<body>
<form name="applicant">
<input type="text" name="COMPANYNAME">
<input type="hidden" name="subject" value=test>
<input type="button" value="do it" onClick="changeIt()">
</form>
</body>
</html> ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"

;alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924