var theForm;

function writeFormContent() {
	action = document.location.href
 document.write('<form name="frmMain" method="post" action="/gbgroup/miscellaneous/search-results" id="frmMain"><div>');
 document.write('</div>');
 theForm = document.forms['frmMain'];
 if (!theForm) {
  theForm = document.frmMain;
 }
}

function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
