I've downloaded some samples of AJAX and they are working fine.
Now I'm starting to modify these source codes to create some classes for my future WEB-Based Projects.

I'm having problem in passing parameters.
HTML file:
HTML Code:
...<form action="javascript:get(document.getElementById('myform'), 'post.php');" name="myform" id="myform">...
Javasript file:
Code:
function get(obj, targeturl) {
  var getstr = "?";
  alert(targeturl);...
I've put the alert(targeturl); to check what is the problem and the value of targeturl returns the value: undefined instead of 'post.php'.
What is the problem with my code?

Thanks for immediate responses.