// JavaScript Document
function check_code_pic(){
	var obj = document.getElementById('check_code_img');
	var obj_hidden = document.getElementById('check_code_hidden');
	AjaxRequest.get({
			'url':'/js/checking_code/Check_Code_Pic.asp',
			'action':'Check_Code',
			'onSuccess':function(req){
				
				obj.src = '/js/checking_code/img/' + req.responseText + '.jpg';
				obj_hidden.value = req.responseText;
					//alert()
		}});
}


	function check_code_same(){
	var obj = document.getElementById('check_code_str');
	var obj2 = document.getElementById('check_code_hidden');
	if(obj2.value.length <= 0){
		alert('System Error, please reload this page, \n If problem still exists, please contact our webmaster!');
	}else if ( obj.value.length <= 0){
		alert('please input Check Code, thank you!');
		obj.focus();
	}else if(obj.value != obj2.value){
		alert('the Check Code does not match the picture!');
		obj.focus();
	}else{
		return true;
	}
	return false;
}
	