/**
 * Gallery javascript functions...
 *
 * Requires the use of trim(s) function in main.js
 *
 */
 
 

function galleryValDel() {
	v_AreYouSure = window.confirm("Are you sure you want to delete this photo?"
		+ "\n"
		+ "\n" + "Click 'OK' to delete."
		+ "\n" + "Click 'Cancel' to return without deleting.");
	if (v_AreYouSure == true) {
		return true;
	} else {
		return false;
	}
}

function galleryValUpload(frm) {
	if (trim(frm.new_gallery.value) == "") {
		alert("Please type a gallery before uploading.");
		return false;
	}
	
	if (trim(frm.pic_for_upload.value) == "") {
		alert("Please click \"Browse...\" to select a photo before uploading.");
		return false;
	}
	
	return true;
}

