function doSearch(objName){
	Oinput = document.getElementById(objName);
	//alert(trim(Oinput.value))
	var text = trim(Oinput.value).replace(/\'/mig,"`");
	if(!isnull(text) && text.length>=2)
		window.location = modulesPath +"?pi=search&sText="+ text;
	else
		alert(searchDic.SEARCH_FEILD_EMPTY+ "\n" + searchDic.TWO_LETTERS);
	Oinput.focus();
}
/////////////////////////////////////////////////////////////////
function verifyString(str){

		if (isnull(str)) {
			alert(searchDic.SEARCH_FEILD_EMPTY+ "\n" + searchDic.TWO_LETTERS) // display the error message!
			return false
		}
		
		var re;
		re = /[(\*)(!)(@)(_)(\})(;)({)(#)($)(%)(^)(<)(>)(~)(`)(/()(/))(=)(+)(|)(\\))(&)]/g
		if (re.test(str)){
			alert( searchDic.ELEGAL_CHAR+ "\n(!@#$%^&*()|+`=\){} ") // display the error message!
			return false
		}
		if(str.length == 1){
			alert(searchDic.ONE_LETTER+"\n" +searchDic.TWO_LETTERS) // display the error message!
			return false
		}	
		
	return true
}
function keyPress(){
	if(event.keyCode == '13') doSearch('dosearchInput')
	return false
}