// JavaScript Document
function insert_link(what_form) {
	var prompt_url = prompt("where would you like to link to?", "");
	if (prompt_url != null) {
		if (prompt_url == "") {
			alert("you left a field blank - please try again");
		} else {
			var prompt_link = prompt("how would you like to name the link?", "");
			if (prompt_link != null) {
				if (prompt_link == "") {
					alert("you left a field blank - please try again");
				} else {
					alert("the link will be added at the end of the text in HTML coding");
					var prompt_total = "<a href=\"" + prompt_url + "\" target=\"blank\">" + prompt_link + "</a>";
					what_form.text.value = what_form.text.value + prompt_total;
				}
			}
		}
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function clearField() {
	document.form.imagename.value="";
	document.form.image.value="";
}
function updatefield(n,m) {
	window.opener.document.form.imagename.value=n;
	window.opener.document.form.image.value=m;
	window.close();
}
function areyousure(delUrl) {
  if (confirm("Are you sure you want to delete this file/folder")) {
    document.location = delUrl;
  }
}