<!--
function validateInscription(form){
	if (trim(document.inscriptionForm.txtLine1.value) == ""){
		alert("Line 1 is required.");
		document.inscriptionForm.txtLine1.focus();
		return false;
		}else {
		encodeURL();
		return true;
		}
}
function encodeURL(){
	if (trim(document.inscriptionForm.elements[0].value)){
			document.inscriptionForm.action += "?text=";
	 		document.inscriptionForm.action+=
			(encodeURIComponent(trim(document.inscriptionForm.elements[0].value.toUpperCase())));
	 	}
	for (i=1; i < document.inscriptionForm.length -2; i++){
		if (trim(document.inscriptionForm.elements[i].value)){
			document.inscriptionForm.action += "%0D%0A";
	 		document.inscriptionForm.action+=
			(encodeURIComponent(trim(document.inscriptionForm.elements[i].value.toUpperCase())));
	 	}
	}
 	document.inscriptionForm.action += "&type=" + document.inscriptionForm.memorialType.value;	 				
}
function trim(inputString) {
	if (typeof inputString != "string") { return inputString; }
	var retValue = inputString;
	var ch = retValue.substring(0, 1);
	while (ch == " ") {
		retValue = retValue.substring(1, retValue.length);
		ch = retValue.substring(0, 1);
	}
	ch = retValue.substring(retValue.length-1, retValue.length);
	while (ch == " ") {
		retValue = retValue.substring(0, retValue.length-1);
		ch = retValue.substring(retValue.length-1, retValue.length);
	}
	while (retValue.indexOf("  ") != -1) {
	retValue = retValue.substring(0, retValue.indexOf("  ")) + 
		retValue.substring(retValue.indexOf("  ")+1, retValue.length);
	}
	return retValue;
}
function displayInscription(){
	var input = location.search.substr(1);
	if (input){
		var discardMemorialType = input.split("&");
		var getSearchText = discardMemorialType[0].split("=");
	}
	if (getSearchText){
		var inscriptionLines = getSearchText[1].split("%0D%0A");
	}
	for (var i=0; i <= inscriptionLines.length -1; i++){
		document.write(decodeURIComponent(inscriptionLines[i]));
		document.write("<br />");
	}
}
function submitInscription(){
	document.form1.action += "&" + location.search.substr(1);
}
-->