document.write('<div style="display:none " id="PostSerachDiv"></div>');
document.write('<form style="display:none " id="PostSerachForm" action="" method="get" target="_blank"></form>');

function PostSearch(str)
{
	//alert('nin');
	var tk = document.getElementById('keyWordSearch').value;
	if(tk==''){
		tk='yeskey.net';}
	if(tk != '')
	{
		var submitString = str.replace(/\$\$keyword\$\$/ig,tk);
		document.getElementById('PostSerachDiv').innerHTML = submitString ;
		//alert(str+"\n"+document.getElementById('PostSerachDiv').innerHTML);
		window.open(submitString);
		return;
		if(PostSerachDiv.getElementsByTagName('form').length==0)
		{
			document.getElementById('PostSerachForm').action = submitString ;
			//alert('action='+document.getElementById('PostSerachForm').action)
			document.getElementById('PostSerachForm').submit();
		}
	}
	else
	{
		alert('请输入关键字!');
		document.getElementById('keyWordSearch').focus();
	}
}
