//
// I campi che valgono '1' sono obbligatori:
// impostare a '0' i campi che si vogliono rendere facoltativi
// (Sul DB sono tutti facoltativi).
//

campiObbligatori = new Array();

campiObbligatori['comment_to_this_page']         = '1';
campiObbligatori['navigation']                   = '1';
campiObbligatori['information']                  = '1';
campiObbligatori['updates']                      = '1';
campiObbligatori['about_us']                     = '1';
campiObbligatori['products_e_brands']            = '1';
campiObbligatori['investor_relations']           = '1';
campiObbligatori['corporate_governance']         = '1';
campiObbligatori['corporate_press']              = '1';
campiObbligatori['comment_about_us']             = '1';
campiObbligatori['comment_products_e_brands']    = '1';
campiObbligatori['comment_investor_relations']   = '1';
campiObbligatori['comment_corporate_governance'] = '1';
campiObbligatori['comment_press']                = '1';
campiObbligatori['comment_further_topics']       = '1';



function checkFeedback(idForm) {


	if( campiObbligatori['comment_to_this_page'] == '1' ) {
		if( !testRE(idForm['comment_to_this_page'], reNotEmpty, 'Your comment to this page') ) return false;	
	}


	if( campiObbligatori['navigation'] == '1' ) {	
		if( !testRadio(idForm['navigation'], 'Navigation / Ease of use') ) return false;
	}
	if( campiObbligatori['information'] == '1' ) {	
		if( !testRadio(idForm['information'], 'Information') ) return false;
	}
	if( campiObbligatori['updates'] == '1' ) {	
		if( !testRadio(idForm['updates'], 'Updates / Topicality') ) return false;
	}
	if( campiObbligatori['about_us'] == '1' ) {	
		if( !testRadio(idForm['about_us'], 'About Us') ) return false;
	}
	if( campiObbligatori['products_e_brands'] == '1' ) {	
		if( !testRadio(idForm['products_e_brands'], 'Products & Brands') ) return false;
	}
	if( campiObbligatori['investor_relations'] == '1' ) {	
		if( !testRadio(idForm['investor_relations'], 'Investor Relations') ) return false;
	}
	if( campiObbligatori['corporate_governance'] == '1' ) {	
		if( !testRadio(idForm['corporate_governance'], 'Corporate Governance') ) return false;
	}
	if( campiObbligatori['corporate_press'] == '1' ) {	
		if( !testRadio(idForm['corporate_press'], 'Press') ) return false;
	}


	if( campiObbligatori['comment_about_us'] == '1' ) {
		if( !testRE(idForm['comment_about_us'], reNotEmpty, 'About Us') ) return false;	
	}
	if( campiObbligatori['comment_products_e_brands'] == '1' ) {
		if( !testRE(idForm['comment_products_e_brands'], reNotEmpty, 'Products & Brands') ) return false;	
	}
	if( campiObbligatori['comment_investor_relations'] == '1' ) {
		if( !testRE(idForm['comment_investor_relations'], reNotEmpty, 'Investor Relations') ) return false;	
	}
	if( campiObbligatori['comment_corporate_governance'] == '1' ) {
		if( !testRE(idForm['comment_corporate_governance'], reNotEmpty, 'Corporate Governance') ) return false;	
	}
	if( campiObbligatori['comment_press'] == '1' ) {
		if( !testRE(idForm['comment_press'], reNotEmpty, 'Press') ) return false;	
	}
	if( campiObbligatori['comment_further_topics'] == '1' ) {
		if( !testRE(idForm['comment_further_topics'], reNotEmpty, 'Are you interested in further topics?') ) return false;
	}


	return true;

}