function adapt_user_preview (editee_user_status) {
	
	var editor_user_status = user_status; // user_status is defined in javascript by page_top.php
	
		//alert ('Adapting User Record Preview to Editor (' + editor_user_status + ') / Editee (' + editee_user_status + ')');
	
//	NOTES: 	editor_user_status 	SHOULD BE the User Status of the logged-in User who's EDITING the record (i.e.: an Admin working on a non-member's record needs to see fields the NM doesn't get shown
//			editee_user_status 	is the User Status of the record being EDITED
	
//	SECONDARY COLUMN /////////////////////////////////////////////
	
	if (getCorrectId('secondary_column')) {
		
		if (
			
			getCorrectId('tbl_special_features')
			
				&&
			
			(
				editor_user_status == 'SU' ||
				editor_user_status == 'PT'
			)
		) {
			
			getCorrectId('tbl_special_features').className = 'table secondary';
		}
	}
	
//	END SECONDARY COLUMN
	
	
	
		
//	PHOTO UPLOAD
	
//	This appears in the primary_column for the member upload photo tool, so we have to take it out of that check
	
	if (getCorrectId('tbl_photo')) {
	
		if (
			
			//(
				editor_user_status == 'SU' ||
				editor_user_status == 'PT'
			//)
			
		/*	For Petra / MCPI, we're temporarily lifting this restriction to allow her to upload photos for non-members. ~Muxlow 2007-10-02
				
				&&
				
			(
				editee_user_status == 'RM' ||
				editee_user_status == 'AM' ||
				editee_user_status == 'SM' ||
				editee_user_status == 'HM' ||
				editee_user_status == 'FM'
			)
		*/
		) {
			
			getCorrectId('tbl_photo').className = "table secondary";
		}
	}
	
//	END PHOTO UPLOAD
	
	
	
	
//	MAIN TABLE	
	
	if (getCorrectId('tbl_user_record_preview_main')) {
		
		if (editee_user_status != '') {
			
			getCorrectId('tbl_user_record_preview_main').className 	= 'table';
			getCorrectId('tbl_location_1').className				= 'table';
		}
	}

//	MAIN TABLE
	
	
	
	
//	MAIN LOCATION EMAIL PERMISSIONS
	
	if (
		
		getCorrectId('tbl_location_0_email_1_permissions') &&
		getCorrectId('tbl_location_0_email_2_permissions')
		
	) {
		
		if (
			//editor_user_status == 'SU' ||
			//editor_user_status == 'PT' ||
			
			editee_user_status == 'RM' ||
			editee_user_status == 'AM' ||
			editee_user_status == 'SM' ||
			editee_user_status == 'HM'
		) {
			
			getCorrectId('tbl_location_0_email_1_permissions').className		= 'no_width';
			getCorrectId('row_location_0_email_1_in_search_member').className	= '';
			
			getCorrectId('tbl_location_0_email_2_permissions').className 		= 'no_width';
			getCorrectId('row_location_0_email_2_in_search_member').className	= '';
			
			if (			
				//editor_user_status == 'SU' || 
				//editor_user_status == 'PT' || 
				
				editee_user_status == 'RM'
			) {
				getCorrectId('row_location_0_email_1_in_search_public').className 	= '';
				getCorrectId('row_location_0_email_2_in_search_public').className 	= '';
			}
		}
	}
	
//	END MAIN LOCATION EMAIL PERMISSIONS
	
	
	
	
//	ADDITIONAL LOCATIONS 

	for (var y=0; y<10; y++) {
		
		if (getCorrectId('tbl_additional_location_' + y)) {
				
			if (
					//editor_user_status == 'SU' ||
					//editor_user_status == 'PT' ||
					
					editee_user_status == 'RM' ||
					editee_user_status == 'AM' ||
					editee_user_status == 'SM' ||
					editee_user_status == 'HM'
				)
			{
			
				getCorrectId('tbl_additional_location_' + y).className							= 'table';
				getCorrectId('row_additional_location_' + y + '_in_search_member').className	= 'divider';
				
				if (
					//editor_user_status == 'SU' || 
					
					editee_user_status == 'RM'
				) {
					getCorrectId('row_additional_location_' + y + '_in_search_public').className = '';
				}
			}
		}
	}
	
//	END ADDITIONAL LOCATIONS 
	
//	CORPORATE SUPPORTER REPRESENTATIVE STUFF /////////////////////////////////////////////
	
	if (getCorrectId('tbl_corporate_supporter_sponsor')) {
		
		if (editee_user_status == 'CR') {
			
			getCorrectId('tbl_corporate_supporter_sponsor').className = 'table';
			
		} else {
			
			getCorrectId('tbl_corporate_supporter_sponsor').className = 'hidden';
		}
	}
	
//	END CORPORATE SUPPORTER REPRESENTATIVE STUFF ////////////////////////////////////////
	
//	MEETING STUFF
		
	if (getCorrectId('tbl_meeting')) {
		
			/* FOR TESTING ONLY */ //alert ("Got the Meeting table");
		
		if
			(
				editee_user_status == 'AS' || 
				editee_user_status == 'NN' || 
				editee_user_status == 'NM' ||
				editee_user_status == 'RN' || 
				editee_user_status == 'FN'
			)
		{
				/* FOR TESTING ONLY */ //alert ("is the right user");
				
			getCorrectId('tbl_meeting').className = 'table';
			
/*
			if (
					editee_user_status == 'AS' || 
					editee_user_status == 'NN' || 
					editee_user_status == 'NM'
				)
			{
*/
				getCorrectId('row_sponsor').className = '';
/*
			
			} else {
				
				getCorrectId('row_sponsor').className = 'hidden';
			}
*/
			
			if (
					editee_user_status == 'RN' || 
					editee_user_status == 'FN'
				)
			{
				getCorrectId('row_training_name').className	= '';
				getCorrectId('row_training_year').className	= '';
				
			} else {
				
				getCorrectId('row_training_name').className	= 'hidden';
				getCorrectId('row_training_year').className	= 'hidden';
			}
			
		} else {
		
			getCorrectId('tbl_meeting').className			= 'hidden';
			getCorrectId('row_sponsor').className			= 'hidden';
			getCorrectId('row_training_name').className		= 'hidden';
			getCorrectId('row_training_year').className		= 'hidden';
		}
	}
		
//	END MEETING
	
	
	
	
//	LOGIN /////////////////////////////////////////////
	
	if (getCorrectId('tbl_login')) {

		if (
			editor_user_status == 'SU'
			
				||
			
			(
				editee_user_status != 'NM' &&
				editee_user_status != 'NN' &&
				editee_user_status != 'RN' &&
				editee_user_status != 'FN' &&
				editee_user_status != ''
			)
		) {
			
			getCorrectId('tbl_login').className	= 'table';
			
		} else {
			
			getCorrectId('tbl_login').className	= 'table hidden';
		}
	}
		
//	END LOGIN /////////////////////////////////////////////
	
	
	
		/* FOR TESTING ONLY */ //alert('editee_user_status='+editee_user_status+' / editor_user_status='+editor_user_status);
		
		
//	ADMIN ONLY
	if (getCorrectId('tbl_admin_only')) {
		
		if (
		
		//	NOTE:	editor_user_status is the status of the LOGGED IN user, NOT the status of the User we're editing
		//			status is the status of the record being exampined
		//			We should go through this and assure that they're being used correctly, as this case was just corrected now ~Muxlow
			
			editor_user_status == 'SU' || 
			editor_user_status == 'PT'
			
		) {
			
			getCorrectId('tbl_admin_only').className = 'table';
			
			if (
				editee_user_status == 'RM' ||
				editee_user_status == 'AM' ||
				editee_user_status == 'SM' ||
				editee_user_status == 'HM'
			) {
				
				getCorrectId('row_in_search_public').className = '';
				
			} else {
				
				getCorrectId('row_in_search_public').className = 'hidden';
			}
			
		} else {
			
			getCorrectId('tbl_admin_only').className = 'table hidden';
		}
	}
	
//	END ADMIN
	
	
	
	
		/* FOR TESTING ONLY */ //alert ('Form adapted for ' + editee_user_status + ' record.');
}