/*
*
*
* Copyright 2009, Galactic Concepts, LLC <http://www.galacticconcepts.com>
*
* @version:      1.0
* @last_update:  2009.02.14
* @description:  Galactic Concepts Obituary Manager
*
*
*/

//check public search form
function checkForm() {
	var error = false;
	if(error)
		alert(errorMsg);
	else
		document.frmSearch.submit();
}

//clear the public search form
function cs() {
	document.frmSearch.txtLastName.value = "";
	document.frmSearch.txtFirstName.value = "";
	document.frmSearch.txtMiddleName.value = "";
	document.frmSearch.txtBirthDay.value = "";
	document.frmSearch.txtBirthMonth.value = "";
	document.frmSearch.txtBirthYear.value = "";
	document.frmSearch.txtDeathDay.value = "";
	document.frmSearch.txtDeathMonth.value = "";
	document.frmSearch.txtDeathYear.value = "";
	document.frmSearch.txtSourceDay.value = "";
	document.frmSearch.txtSourceMonth.value = "";
	document.frmSearch.txtSourceYear.value = "";
	document.frmSearch.isClear.value = "1";
	document.frmSearch.submit();
}



// ** DELETE OBITUARY PICTURE **
function deletePicture(url) {
	var del = confirm('Are you sure you want to delete this picture?');
	if(del) {
		window.location = url ;
	}
}



// ** DELETE OBITUARY ARTICLE **
function deleteArticle(url) {
	var del = confirm('Are you sure you want to delete this article?');
	if(del) {
		window.location = url ;
	}
}



// ** DELETE OBITUARY ** 
function deleteObituary(url) {
	var del = confirm('Are you sure you want to delete this obituary?');
	if(del) {
		window.location = url ;
	}
}


