var c_num = Math.round(Math.random()*1000000);
if (typeof(window['c_def']) == "number") c_num = c_def;
function check_field(f)
	{
	if(f.value == c_num) document.getElementById('c_error').value = 'ok'; else document.getElementById('c_error').value = '';
	}
function c_label()
	{
	document.write('Please enter security code ' + c_num);
	}
function c_field()
	{
	document.write('<input name="ahctpac_u" class="ahctpac" id="ahctpac" type="text" onchange="check_field(this);" onblur="check_field(this);">');
	document.write('<input type="hidden" name="ahctpac_d" value="' + c_num + '">');
	document.write('<input type="hidden" name="ahctpac_u_required" value="Please enter the code ' + c_num + ' for security reasons.">');
	document.write('<input type="hidden" id="c_error" name="c_error" value="no_error">');
	document.write('<input type="hidden" name="c_error_required" value="The security code doesn\'t match.">');
	}
