i want to change background color in panel if checkbox checked is true

i am used vb script;

but i wrote given code

but the expected end of statement error happend

please help me

how define use vbscript...

<script>

Sub Changed()
Try
Dim lcnt As Integer
If Me.c1.Checked = True Then
Me.Panel1.BackColor = Color.Yellow
lcnt = viewstate.Count
viewstate.Add(viewstate.Count, Me.Label1.Text.ToString)
End If
If Me.c1.Checked = False Then
Me.Panel1.BackColor = Color.YellowGreen
End If
Catch ex As Exception
Response.Write(ex.ToString)
End Sub
</script>

maybe you should set the backstyle prop. to 'vbBackStyleOpaque' (=1) instead of 0.