NodeList list = doc.getElementsByTagName("img");
int len = list.getLength();
for(int i = 0; i < len; i++)
{
HTMLImageElement img = (HTMLImageElement)list.item(i);
img.setSrc("http://www.google.com/" + img.getSrc());
}
Element form = (Element)doc.getElementsByTagName("form").item(0);
form.setAttribute("action","");
String onsubmit = "var elem = document.getElementById('q'); " +