<script language="javascript" charset="gb2312"> function searchvalue() { var sql="select * from companyjob"; SetCookie("SendSql",sql); var url="child.aspx"; window.open(url,'_blank'); } function SetCookie(name, value) { document.cookie = name +"="+ value; } function search2() { var sql="select * from companyjob"; document.all.form2.query.value=sql; document.all.form2.action="child.aspx"; document.all.form2.submit(); } </script>