I have an input form that has a select dropdown field named Status with with two options (in process & resolved) with the default being in process. When the user changes the Status to resolved I want to populate another text field (Date_Resolved) on the form with today's date. I have tried everything and am getting no where.

function chgit() {
var d = Date.Now();
document.form1.Date_Resolved.value = d;

<select name="Status" id="Status" onChange="chgit();" >
<option value="In Process">In Process</option>
<option value="Resolved">Resolved</option>

<input name="Date_Resolved" type="text" id="Date_Resolved" value="" size="12" />

I get this error
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Media Center PC 6.0; InfoPath.3)
Timestamp: Wed, 17 Jul 2013 23:54:20 UTC

Message: Object doesn't support this property or method
Line: 5
Char: 3
Code: 0
URI: http://localhost/red/Triage_entry_formA.asp

Any help with how to do this correctly is greatly appreciated.