function submitForm(formName) {
	//alert('document.'+formName+'.submit()');
	eval('document.'+formName+'.submit()');
}

/*
function modifyFormField(formName, fieldName, val) {
	//alert('document.'+formName+'.submit()');
	eval('document.'+formName+'.'+fieldName+'.value='+val);
}

function modifyFormAndSubmit(formName, fieldName, val) {
	alert("here, yo");
	if (formName=='deleteImageForm') {
		if(!confirm("Are you sure you want to delete this image?")) return;
	}
	//modifyFormField(formName, fieldName, val);
	//submitForm(formName);
}

function deleteImage(image_id) {
	if(!confirm("Are you sure you want to delete this image?")) {
		return;
	}
	
	var delform = document.createElement("form");	
	delform.id = "delete_Element_Form";
	delform.method = "post";
	delform.action = "http://www.cyberfridge.com?view=edit_images&refresh=1";

	var imageElement = document.createElement("input");
	imageElement.type = "hidden";
	imageElement.name = "image_To_Delete";
	imageElement.id = "image_To_Delete";
	imageElement.value = image_id;

	var deleteCommand = document.createElement("input");
	deleteCommand.type = "hidden";
	deleteCommand.name = "delete_Image_Command";
	deleteCommand.id = "delete_Image_Command";
	deleteCommand.value = 1;

	delform.appendChild(imageElement);
	delform.appendChild(deleteCommand);

	var playground = document.getElementById("javascript_Playground");

	playground.appendChild(delform);
	delform.submit();

}
*/
