function gid(id){ return document.getElementById(id);}
function empty(string){ if(string=='undefined' || string=='' || string==null) return true; return false;}
function html(htmlid,string){ gid('s'+htmlid).innerHTML=string; return false;}
function g(id){ return gid(id).value;};
function f(id){ gid(id).focus();};
function msg(string,url){ alert(string); empty(url)?loction.reload():location.href=url;}



//验证码的js
function checkcode(path){
	document.write("<img src='"+path+"font/code.php' onclick='recheckcode(this,\""+path+"\")' style='cursor:pointer' title='看不清，点击图片换一张。'/>");
}
function recheckcode(obj,path){
	obj.src=path+'/font/code.php?id='+Math.random();
}

