var qgExploer=navigator.appName;var qgIE;if(qgExploer=="Microsoft Internet Explorer")
{qgIE="IE";if(navigator.appVersion.match(/7./i)!='7.')
{qgIE="IE6";}}
else
{qgIE="FF";document.write("<style type='text/css'>body{overflow-y:scroll;}</style>");}
var qgbody=(document.documentElement)?document.documentElement:document.body
function $(id)
{return document.getElementById(id);}
function tourl(url)
{window.location.href=url;}
function timeset(time,act)
{time=parseInt(time);if(time<1)
{return false;}
else
{if(time<10)
{time=time*1000;}
window.setTimeout(act,time);}}
function checkemail(email)
{if(email.search(/^\w+((-\w+)|(\.\w+))*\@\w+((-\w+)|(\.\w+))*\.\w+$/)!=-1)
{return true;}
else
{return false;}}
function flash(file,width,height,div_id)
{var fcode="";fcode+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';fcode+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" ';fcode+='width="'+width+'" height="'+height+'">';fcode+='<param name="movie" value="'+file+'" type="application/x-shockwave-flash">';fcode+='<param name="wmode" value="transparent"><param name="quality" value="high">';fcode+='<embed src="'+file+'" wmode="transparent" quality="high" ';fcode+='pluginspage="http://www.macromedia.com/go/getflashplayer" ';fcode+='type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">';fcode+='</embed></object>';if(div_id)
{$(div_id).innerHTML=fcode;}
else
{document.write(fcode);}}
function add_ajax()
{var xmlhttp=null;try
{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{xmlhttp=null;}}
if(!xmlhttp&&typeof XMLHttpRequest!="undefined")
{xmlhttp=new XMLHttpRequest();}
return xmlhttp;}
function get_ajax(url)
{var xmlhttp=add_ajax();var randname="rand"+Math.floor(Math.random()*10000);var randnum=Math.floor(Math.random()*10000);if(url.indexOf("?")!=-1)
{url+="&"+randname+"="+randnum;}
else
{url+="?"+randname+"="+randnum;}
xmlhttp.open("GET",url,false);xmlhttp.send(null);if(xmlhttp.readyState==3)
{alert("数据加载中...");}
else if(xmlhttp.readyState==4)
{var result=xmlhttp.responseText;if(result)
{return result;}
else
{alert("网络原因，请刷新后重新提交");}}}
