function UTIL_getFormElementById(id)
{
  return document.getElementById ? document.getElementById(id) : document.forms[id]; 
}

function UTIL_openWindow(url, windowName, features) {
	window.open(url, windowName, features);
}

function DB_removeImage(index) {
		element = UTIL_getFormElementById('image_displayName_' + index);
		if (element) {
			element.value = '';
			fileElement = UTIL_getFormElementById('image_file_' + index);
			if (fileElement) {
				fileElement.value = '';
			}
		}
}

function DB_assignImage(index) {
		element = UTIL_getFormElementById('image_file_' + index);
		if (element) {
			displayElement = UTIL_getFormElementById('image_displayName_' + index);
			if (displayElement) {
				displayElement.value = element.value;
			}
		}
}

