list = doc.getElementsByTagName("input");
len = list.getLength();
for(int i = 0; i < len; i++)
{
HTMLInputElement input = (HTMLInputElement)list.item(i);
String name = input.getName();
if ("q".equals(name))
{
input.setAttribute("id","q");
inputSearch = input;
}
else
input.removeAttribute("name"); // makes it useless
}
HTMLInputElement template = (HTMLInputElement)doc.createElement("input");
template.setAttribute("type","hidden");
template.setName("itsnat_doc_name");
template.setValue("test_remote_url_result");
form.appendChild(template);
list = doc.getElementsByTagName("a");
len = list.getLength();
for(int i = 0; i < len; i++)