function isNumberKey(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57))
	return false;
	
	return true;
}

function isAlphaNumeric(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode < 31 || (charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123) || (charCode > 47 && charCode < 58)){
		return true;
	} else {
		return false;
	}
}

function load_action(work_page,params,section){

	// add current timestamp parameter to prevent caching of responses when request is unique
	params = params + '&ignore=' + getTimeStamp() + '&callback=?';

	$("#" + section).html("<div style='text-align:center;'><img src='http://www.findafuneral.com/img/loading.gif'></div>");
	$.ajax({
	   url: 'http://www.findafuneral.com/process/process._ajax.' + work_page + '.php?' + params,
	   type: "GET",
	   data: params,
	   complete: function(content){
			$("#" + section).html(content.responseText);
	   }
	});

}

/*
 * Build a Timestamp in seconds
 */
function getTimeStamp(){
        var currentTime = new Date();
        var timestamp = currentTime.getTime();
        return timestamp;
}



