function setRateUsRecord() { var res1 = DWRUtil.getValue("one"); var res2 = DWRUtil.getValue("two"); RateUsHandler.setRateUs(objectEval($("instance").value), objectEval($("sLink").value), objectEval($("rIPAndHost").value), objectEval($("rBrowser").value), res1, objectEval($("comments_one").value), res2, objectEval($("comments_two").value), objectEval($("comments_three").value),getResponse); } var getResponse = function(data) { if (data != null) { //alert("Record saved"); document.getElementById("surveyForm").innerHTML='Thank you for providing feedback.


'+ 'Close this screen.

'; } else DWRUtil.setValue('d1', DWRUtil.toDescriptiveString(data, 1)); } function objectEval(text) { //alert(text); text = text.replace(/\n/g, ' '); text = text.replace(/\r/g, ' '); if (text.match(/^\s*\{.*\}\s*$/)) { text = '[' + text + '][0]'; } return text; }