ajax html parse
function processData(responseText, responseStatus) {
if (responseStatus==200) {
alert(responseText);
var str = responseText.match(/<!--ajaxcontentbegin-->(.|"s|"r|"r"n)*?<!--ajaxcontentend-->/gim);
alert(str);
document.getElementById("container").innerHTML = str;
document.getElementById("localInput").value = document.getElementById("someInput").value
} else {
alert(responseStatus );
}
}
var myRequest = new ajaxObject('target.htm', processData);