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


function linksValCreate(frm) {
	if (trim(frm.new_category.value) == "") {
		alert("Please type a category before adding this link.");
		return false;
	}
	
	if (trim(frm.display_name.value) == "") {
		alert("Please type a link display name before adding this link.");
		return false;
	}
	
	return true;
}



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

