function validateForm() {
	if (validateField('SB_Validator.notEmpty', 		'categoryWidth', 	'EMPTY-CATEGORY-THUMB-WIDTH')
		&& validateField('SB_Validator.isInt', 		'categoryWidth', 	'NOT-INT-CATEGORY-THUMB-WIDTH')
		&& extendedValidateField("SB_Validator.isGreaterThan(document.getElementById('categoryWidth').value, 0)", 'categoryWidth', 'NOT-INT-CATEGORY-THUMB-WIDTH')
		&& extendedValidateField("SB_Validator.isLessThan(document.getElementById('categoryWidth').value, 2048)", 'categoryWidth', 'CATEGORY-MAX-THUMB-WIDTH')
		&& validateField('SB_Validator.notEmpty',	'imageWidth', 		'EMPTY-IMAGE-THUMB-WIDTH')
		&& validateField('SB_Validator.isInt',		'imageWidth', 		'NOT-INT-IMAGE-THUMB-WIDTH')
		&& extendedValidateField("SB_Validator.isGreaterThan(document.getElementById('imageWidth').value, 0)", 	'imageWidth', 'NOT-INT-IMAGE-THUMB-WIDTH')
		&& extendedValidateField("SB_Validator.isLessThan(document.getElementById('imageWidth').value, 2048)", 'imageWidth', 'IMAGE-MAX-THUMB-WIDTH')
		&& validateField('SB_Validator.notEmpty',	'imageHeight',		'EMPTY-IMAGE-THUMB-HEIGHT')
		&& validateField('SB_Validator.isInt',		'imageHeight',		'NOT-INT-IMAGE-THUMB-HEIGHT')
		&& extendedValidateField("SB_Validator.isGreaterThan(document.getElementById('imageHeight').value, 0)", 'imageHeight', 'NOT-INT-IMAGE-THUMB-HEIGHT')
		&& extendedValidateField("SB_Validator.isLessThan(document.getElementById('imageHeight').value, 1536)", 'imageHeight', 'IMAGE-MAX-HEIGHT-WIDTH')
		&& validateField('SB_Validator.notEmpty',	'previewWidth',		'EMPTY-PREVIEW-THUMB-WIDTH')
		&& validateField('SB_Validator.isInt',		'previewWidth', 	'NOT-INT-PREVIEW-THUMB-WIDTH')
		&& extendedValidateField("SB_Validator.isGreaterThan(document.getElementById('previewWidth').value, 0)", 'previewWidth', 'NOT-INT-PREVIEW-THUMB-WIDTH')
		&& extendedValidateField("SB_Validator.isLessThan(document.getElementById('previewWidth').value, 2048)", 'previewWidth', 'PREVIEW-MAX-WIDTH-WIDTH')
		&& validateField('SB_Validator.notEmpty',	'imagePerPage',		'EMPTY-IMAGES-PER-PAGE')
		&& validateField('SB_Validator.isInt',		'imagePerPage', 	'NOT-INT-IMAGES-PER-PAGE')
		&& extendedValidateField("SB_Validator.isGreaterThan(document.getElementById('imagePerPage').value, 0)", 'imagePerPage', 'NOT-INT-IMAGES-PER-PAGE')
	) {
		return true;
	} else {
		return false;
	}
}

function setSaveSettings() {
	var input = document.getElementById('saveSettings');
	input.value = 1;
}
