var show_checkcode = false;
function get_checkcode() {
	var chkCodeFile = db_urls+"/Include/getcode.asp";
	if(!show_checkcode){
		if(document.getElementById("img_checkcode"))
			document.getElementById("img_checkcode").innerHTML = '<img  id="checkcodeimg" src="'+chkCodeFile+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;height:16px;" onclick="this.src=\''+chkCodeFile+'?t=\'+Math.random()" />'
			show_checkcode = true;
		if(document.getElementById("isok_checkcode"))
			document.getElementById("isok_checkcode").innerHTML = '<a href="javascript://" onclick="setTimeout(function(){ document.getElementById(\'checkcodeimg\').src=\''+chkCodeFile+'?t=\'+Math.random()},100);"> <img src='+db_urls+'/images/reloads.gif border=0><\/a>';
	}
}

var shcode = false;
function gcode() {
	var chcode = db_urls+"/Include/getcode.asp";
	if(!shcode){
		if(document.getElementById("imcode"))
			document.getElementById("imcode").innerHTML = '<img  id="chimg" src="'+chcode+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;height:16px;" onclick="this.src=\''+chcode+'?t=\'+Math.random()" />'
			shcode = true;
		if(document.getElementById("iscode"))
			document.getElementById("iscode").innerHTML = '<a href="javascript://" onclick="setTimeout(function(){ document.getElementById(\'chimg\').src=\''+chcode+'?t=\'+Math.random()},100);"> <img src='+db_urls+'/images/reloads.gif border=0><\/a>';
	}
}
