
function validateConditions(obj, lang) {
	var objTexts = new jsVal_Language();
	var obj;

	if(!xGetElementById('frm_terms_conditions').checked) {
		if(lang == 'PT') { alert('Tem de aceitar os termos e condições descritos no contrato'); }
		else { alert('You must accept the terms and conditions described in the contract'); }
		return(false);
	}

	obj = xGetElementById('frm_country');
	if(!obj.options[obj.selectedIndex].value) { obj.focus(); alert(objTexts.err_select.replace('%FIELDNAME%',obj.realname||obj.getAttribute('realname'))); return(false); }

	obj = xGetElementById('frm_nationality');
	if(!obj.options[obj.selectedIndex].value) { obj.focus(); alert(objTexts.err_select.replace('%FIELDNAME%',obj.realname||obj.getAttribute('realname'))); return(false); }

	obj = xGetElementById('frm_apartment');
	if(!obj.options[obj.selectedIndex].value) { obj.focus(); alert(objTexts.err_select.replace('%FIELDNAME%',obj.realname||obj.getAttribute('realname'))); return(false); }

	obj = xGetElementById('frm_country');
	if(!obj.options[obj.selectedIndex].value) { obj.focus(); alert(objTexts.err_select.replace('%FIELDNAME%',obj.realname||obj.getAttribute('realname'))); return(false); }

	return(true);
}
