Probably the code should look like this,

Code: ASP
<script language="JavaScript">
function ChangeAll(f)
{
    alert(f);
}

</script>

<%



r="here"
response.write("<form method='post'>")
response.write("<input type='button' value='Submit' onClick='ChangeAll("""&r&""")' ")
response.write("</form>")

%>