
function validate_resizer_form() {

	try {
		//--------specified_height-------//

if ( document.resizer_form.specified_height != null ) {
if ( ((document.resizer_form.specified_height.value == '')) ) {
			//--------specified_width-------//

if ( document.resizer_form.specified_width != null ) {
if ( ((document.resizer_form.specified_width.value == '')) ) {

				alert('Please enter either a width or a height.');
				document.resizer_form.specified_width.focus();
				if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

				return false;
}
}
}
}
//--------end specified_width-------//

		//--------specified_width-------//

if ( document.resizer_form.specified_width != null ) {
if ( ((document.resizer_form.specified_width.value == '')) ) {
			//--------specified_height-------//

if ( document.resizer_form.specified_height != null ) {
if ( ((document.resizer_form.specified_height.value == '')) ) {

				alert('Please enter either a width or a height.');
				document.resizer_form.specified_height.focus();
				if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

				return false;
}
}
}
}
//--------end specified_height-------//

if ( document.resizer_form.specified_width != null ) {
	if ( document.resizer_form.specified_width.value != null ) {
	if ( isNaN(document.resizer_form.specified_width.value) ) {
			alert( 'The field \'either a width or a height.\' must be a number.' );
			if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

			return false;
		}
	 }
} 
if ( document.resizer_form.specified_height != null ) {
	if ( document.resizer_form.specified_height.value != null ) {
	if ( isNaN(document.resizer_form.specified_height.value) ) {
			alert( 'The field \'either a width or a height.\' must be a number.' );
			if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

			return false;
		}
	 }
} 
if ( document.resizer_form.user_width != null ) {
	if ( document.resizer_form.user_width.value != null ) {
	if ( isNaN(document.resizer_form.user_width.value) ) {
			alert( 'The field \'either a width or a height.\' must be a number.' );
			if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

			return false;
		}
	 }
} 
if ( document.resizer_form.user_height != null ) {
	if ( document.resizer_form.user_height.value != null ) {
	if ( isNaN(document.resizer_form.user_height.value) ) {
			alert( 'The field \'either a width or a height.\' must be a number.' );
			if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

			return false;
		}
	 }
} 

if ( typeof(validation_hook_true) == 'function' ) { if ( validation_hook_true() ) { return true; } else { if ( typeof(validation_hook_false) == 'function' ) { validation_hook_false(); }

 return false; } }

		document.resizer_form.submit_resize.disabled=true;
	}
	catch(e) {
		return true;
	}
	return true;
}


