function validateCaptcha() {
	cookie = readCookie('captcha');
	input = document.inputForm.captcha.value;
	if (MD5(input) == cookie) {
		return true;
	} else {
		return false;
	}
}
function readCookie(cookie) {
	start = document.cookie.indexOf(cookie + '=');
	if (start != -1) {
		start = start + cookie.length + 1;
		end = document.cookie.indexOf(";", start);
		if (end == -1) {
			end = document.cookie.length;
		}
		return unescape(document.cookie.substring(start, end));
	}
	return '';
}