<!--
function Proper(o) {
var s = o.value;
var out = "";
if (s.length > 0) {
  var c = true;
  // process each character one at a time
  for (var i=0; i < s.length; i++) {
   var t = s.substring(i,i+1).toUpperCase();
   // if not alpha cap next character
   cmp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ'";
   if ( cmp.indexOf(t) < 0) {
    c = true;
   }
   else {
    if (c) {
     c = false;
    }
    else {
     t = t.toLowerCase();
    }
   }
   // take special cases like Mc and Mac and Roman numerals
   if ( i > 1 ) {
    temp = s.substring(i-2,i).toUpperCase();
    if ( temp == "MC" ) {
     t = t.toUpperCase();
    }
    cmp = " II V X";
    roman = "IVX";
    roman2 = "IVX ";
    if ( cmp.indexOf(temp) >= 0 && roman.indexOf(t.toUpperCase()) >= 0 && roman2.indexOf(s.substring(i+1,i+2).toUpperCase() ) >= 0 )
    {
     t = t.toUpperCase();
    }
   }
   if ( i > 2 ) {
    temp = s.substring(i-3,i).toUpperCase();
    if ( temp == "MAC") {
     t = t.toUpperCase();
    }
    if ( ( temp == " XI" || temp == " VI" || temp == " XX" || temp == " XV" ) && ( t.toUpperCase() == "I" || t.toUpperCase() == "V" ||
t.toUpperCase() == "X" ) ) {
     t = t.toUpperCase();
    }
   }
   out += t;
  }

  o.value = out;
}
   return true;
}


function checkout() {
	missinginfo = "";

	if (document.form1.Name.value == "") {
   		missinginfo += "\n     -  Name";
	}

	if ((document.form1.Email.value == "") ||
   	(document.form1.Email.value.indexOf('@') == -1) ||
   	(document.form1.Email.value.indexOf('.') == -1)) {
   		missinginfo += "\n     -  E-mail address";
	}

	if (document.form1.Address.value == "") {
   		missinginfo += "\n     -  Address";
	}

	if (document.form1.City.value == "") {
   		missinginfo += "\n     -  City";
	}

	if (document.form1.State.value == "") {
   		missinginfo += "\n     -  State";
	}

	if (document.form1.Postcode.value == "") {
   		missinginfo += "\n     -  Postcode";
	}

	if (document.form1.Country.options[document.form1.Country.selectedIndex].value == "") {
   		missinginfo += "\n     -  Country";
	}

	if (document.form1.Recipient.value == "") {
   		missinginfo += "\n\n     -  Recipient Name";
	}

	if (document.form1.RAddress.value == "") {
   		missinginfo += "\n     -  Recipient Address";
	}

	if (document.form1.RCity.value == "") {
   		missinginfo += "\n     -  Recipient City";
	}

	if (document.form1.RState.value == "") {
   		missinginfo += "\n     -  Recipient State";
	}

	if (document.form1.RPostcode.value == "") {
   		missinginfo += "\n     -  Recipient Postcode";
	}

	if (document.form1.RCountry.options[document.form1.RCountry.selectedIndex].value == "") {
   		missinginfo += "\n     -  Recipient Country";
	}

	if (document.form1.RMessage.value == "") {
   		missinginfo += "\n     -  Your Message";
	}

	if (missinginfo != "") {
   		missinginfo ="You failed to correctly fill in your:\n" +
   		missinginfo + "\n\nPlease fill in the required fields and submit again!";
   		alert(missinginfo);
   		return false;
	}

	var q = eval("document.form1.RMessage.value.length");
	var r = q - 255;
	var msg = "Sorry, you are limited to " + 255 + " characters in your message. Please abbreviate your message by at least " + r + " character(s).";
	if (q > 255) {
		alert(msg);
		return false;
	}
   	else return true;
}


function checkfeedback() {
	missinginfo = "";

	if (document.form1.contact.value == "") {
   		missinginfo += "\n - Contact Person is required";
	}

	if ((document.form1.email.value == "") ||
   	(document.form1.email.value.indexOf('@') == -1) ||
   	(document.form1.email.value.indexOf('.') == -1)) {
   		missinginfo += "\n - Email is required";
	}

	if (document.form1.message.value == "") {
   		missinginfo += "\n - Message is required";
	}

	if (missinginfo != "") {
   		missinginfo ="You failed to fill in the required fields.\n" +
   		missinginfo + "\n\nPlease re-enter and submit again.";
   		alert(missinginfo);
   		return false;
	}

	else if (confirm("The form has been filled out correctly.\nAre you ready to submit the form?")) {
		return true;
	} else {
		return false;
	}
}
// End -->
