var q0 = 'm=1&fc=000000&bc=FFFFFF'; function abcTools_btnMobileSearch_Click() { var word = document.getElementById('abcTools_txtMobileSearch').value; word = word.replace(/^\s+|\s+$/g, ''); if (word.length<2) { alert('عبارت جستجو باید بیشتر از یک حرف باشد'); return; } try { document.getElementById('abcTools_btnMobileSearch').disabled = true; var R = Math.random(); var q = '?q=' + escape(word) + '&' + q0 + '&R=' + R; var dataSource = encodeURI('http://g.Sefr.ir/Mobile/Search.aspx' + q); var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.onreadystatechange= function () { if ((this.readyState == 'complete') || (this.readyState == 'loaded')) {abcTools_MobileSearch_GetIt();} } script.onload = abcTools_MobileSearch_GetIt; script.src = dataSource; head.appendChild(script); } catch(e) { document.getElementById('abcTools_btnMobileSearch').disabled = false; } } function abcTools_MobileSearch_GetIt() { document.getElementById('abcTools_MobileSearchHeader').style.display='block'; document.getElementById('tr_Mobile_LatestRandom').style.display='none'; abcTools_MobileSearch_ShowIt(); document.getElementById('abcTools_btnMobileSearch').disabled = false; } function abcTools_txtMobileSearch_KeyPressed(e) { if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; if (code == 13) { abcTools_btnMobileSearch_Click(); } return false; } var x ="
|
|