var url = document.getElementById('action').value;
url = url +"/" +searchType;
var myform=document.createElement('form');
myform.method='POST';
myform.action=url;
var searchKeyInput=document.createElement('input');
searchKeyInput.type='hidden';
searchKeyInput.name='searchKey';
searchKeyInput.value=searchKey;
myform.appendChild(searchKeyInput);
var searchTypeInput=document.createElement('input');
searchTypeInput.type='hidden';
searchTypeInput.name='searchType';
searchTypeInput.value=searchType;
myform.appendChild(searchTypeInput);
var myFormDiv = document.getElementById('myFormDiv');
myFormDiv.appendChild(myform);
myform.submit();