<!--Hide Script Code
function doesExist (inputValue) {

var aCharExists=0
if (inputValue){
    for (var i=0; i<inputValue.length; i++){
	     if (inputValue.charAt(i) != " "){
		     aCharExists = 1
		 }
	}
}
return aCharExists

}
function confmForm (ordForm) {

var name = document.ordForm.fName.value + ' ' + document.ordForm.lName.value
var deliver = document.ordForm.delFname.value + ' ' + document.ordForm.delLname.value
var deldate = document.ordForm.delMonth.options[ordForm.delMonth.selectedIndex].value + ' ' +
document.ordForm.delDay.options[ordForm.delDay.selectedIndex].value + ',  ' + document.ordForm.delYear.options[ordForm.delYear.selectedIndex].value
var message = document.ordForm.msg.value
var email = document.ordForm.email.value
var telephone = document.ordForm.telephone.value

if (!doesExist(name)){
	name = "(none)"
	}
if (!doesExist(deliver)){
	deliver = "(none)"
	}
if (!doesExist(deldate)){
	deldate = "(none)"
	}
if (!doesExist(message)){
	message = "(none)"
	}
if (!doesExist(telephone) && !doesExist(email)){
	document.ordForm.email.value = ""
	document.ordForm.telephone.value = ""
	document.ordForm.telephone.focus()
	alert("Please enter a valid \"billing email address\" or \"billing telephone number\" so that we may contact you.")
	}
else
	if (doesExist(email) && !emailOk(email)){
	alert("You have entered an invalid \"billing email address\", please re-enter.")
	}
//else	-----------------REMOVED TELEPHONE CHECK
//	if (!phoneOk(telephone)){
//	alert("Please enter \"billing telephone number\" in the format (123)456-7890.")
//	}
else{

var confMsg = 'Click \"OK\" if the following \n information is correct:  \n' +
'________________________________ \n \n' +
'Billing Name:   ' + name +  '\n ' + '\n' +
'Deliver To:   ' + deliver + '\n ' + '\n' +
'Delivery Date:   ' + deldate + '\n ' + '\n' +
'Card Message:  \n " ' + message + '" \n ' + '\n'
var resp=confirm(confMsg.toUpperCase())
if (resp == 1){document.ordForm.submit()}
	}
}
function emailOk (inputValue) {
var okAddress=0
if (inputValue){
    for (var i=0; i<inputValue.length; i++){
	     if (inputValue.charAt(i) == "@"){
		     okAddress = 1
		 }
	}
}
return okAddress
}
function isANumber (inputValue) {

if (!parseFloat(inputValue)) {
	alert("Please enter a numeric \"billing telephone number\" .")
}
else {
	return 1
}

}
function phoneOk (inputValue) {

var okPhone = 1
if (inputValue){
	var openParen = inputValue.substring(0,1)
	var areaCode = inputValue.substring(1,4)
	var closeParen = inputValue.substring(4,5)
	var exchange = inputValue.substring(5,8)
	var dash = inputValue.substring(8,9)
	var line = inputValue.substring(9,13)
	if(
		(openParen != "(")		||
		(!isANumber(areaCode))	||
		(closeParen != ")")		||
		(!isANumber(exchange))	||
		(dash != "-")			||
		(!isANumber(line))){
			okPhone = 0
			}
	}
	return okPhone


}
//-->

