﻿var iebody = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
textSearch="请输入搜索的内容";
function googleSearch(){
var q = $('#search_q').val();
if (q.length < 1) return false;

tb_show('搜索结果','http://www.google.com/custom?q='+q+' site:ml.playcool.com&TB_iframe=true&height='+(iebody.clientHeight*0.9)+'&amp;width=800&amp;','thickbox');

return false;
}
function checkClear(ts){
//ts.style.color="#FFFFFF";
//ts.style.backgroundPosition="right -18px";
//if(ts.value==textSearch)ts.value = "";
}
function checkBlur(ts){
//ts.style.color="#8F8B6E";
//ts.style.backgroundPosition="right top";
//if(ts.value=="")ts.value=textSearch;
}
