function __checkIsCheckedTC() {
	if ( $('id_reg_agreetemrs').checked ) {
		$('id_reg_agreetemrs_error').className = NOT_DISPLAY;
		return true;
	}
	else {
		$('id_reg_agreetemrs_error').className = 'error ' + DISPLAY;
		return false;
	}
	__onresizeWindow();
}

function __checkRegisterForm() {
	var without_captcha = document.getElementById('id_without_captcha');
	
	var textControl = new Array(
									'user_name',
									'password',
									'retype_password',
									'first_name',
									'last_name',
									'city',
									'address',
									'zip_code'
									//'phone',
							   );
							   
	if ( without_captcha == null ) {
		textControl[8] = 'captcha';
	}
	
	
	var selectControl = new Array(
									'country',
									'eye_color',
									'hair_color',
									'height',
									'weight',
									'ethnicity',
									'faith',
									'education',
									'occupation',
									'children',
								//	'smoking',
								//	'drinking',
									'relation_type',
								//	'religion',
									'marial_status'
								);
	var checked 		 = true;
	var lenTextControl   = textControl.length;
	var lenSelectControl = selectControl.length;
	var i;
	var id;
	
	for ( i=0; i<lenSelectControl; i++ ) {
		id = 'id_reg_'+selectControl[i];
		if ( !__verify.prototype.isItemSelected(id) ) {
			$(id + '_error').className = 'error ' + DISPLAY;
			checked = false;
		}
		else {
			$(id + '_error').className = NOT_DISPLAY;
		}
	}
	
	for ( i=0; i<lenTextControl; i++ ) {
		id = 'id_reg_'+textControl[i];
		if ( __verify.prototype.isEmpty($V(id)) ) {
			$(id + '_error').className = 'error ' + DISPLAY;
			checked = false;
		}
		else {
			$(id + '_error').className = NOT_DISPLAY;
		}
	}
	
	if ( without_captcha == null ) {
		__onresizeWindow();
	}
	
	if ( !checked ) {
		alert(ERORR_REGISTRATION_TEXT);
	}
	return checked;
}

function __checkRegisterAgencyForm() {
	var textControl = new Array(
									'agency_name',
									'password',
									'retype_password',
									'email',
									'city',
									'address',
									'post_index',
									'phone',
									'captcha'
							   );
	
	var selectControl = new Array(
									'country'
								);
								
	var checked 		 = true;
	var lenTextControl   = textControl.length;
	var lenSelectControl = selectControl.length;
	var i;
	var id;
	
	for ( i=0; i<lenSelectControl; i++ ) {
		id = 'id_reg_'+selectControl[i];
		if ( !__verify.prototype.isItemSelected(id) ) {
			$(id + '_error').className = 'error ' + DISPLAY;
			checked = false;
		}
		else {
			$(id + '_error').className = NOT_DISPLAY;
		}
	}
	
	for ( i=0; i<lenTextControl; i++ ) {
		id = 'id_reg_'+textControl[i];
		if ( __verify.prototype.isEmpty($V(id)) ) {
			$(id + '_error').className = 'error ' + DISPLAY;
			checked = false;
		}
		else {
			$(id + '_error').className = NOT_DISPLAY;
		}
	}
	//__onresizeWindow();
	
	if ( !checked ) {
		alert(ERORR_REGISTRATION_TEXT);
	}
	return checked;
}
