<!-- HIDE
//  Copyright (c) 2004 WritersUA/WinWriters
//  You are free to use or modify this code only if you reference the
//  WritersUA/WinWriters web site http://www.winwriters.com

//Script to reset the name for email

function SetName() {
document.forms[0].realname.value = document.forms[0].FirstName.value + " " + document.forms[0].LastName.value;
}

//Script to check for missing contact info & credit card info

function ChkForm(confreg) {

var AlertText = "You are missing the following:\n";
var CCFlag = 0;
var ErrFlag = 0;

if (confreg.FirstName.value == "") {
    AlertText += "           Your given name\n";
    ErrFlag = 1;
    }

if (confreg.LastName.value == "") {
    AlertText += "           Your family name\n";
    ErrFlag = 1;
    }
    
if (confreg.email.value == "") {
    AlertText += "           Your email address\n";
    ErrFlag = 1;
    }
    
if (confreg.CardholderName.value == "" || confreg.AccountNumber.value == "" || confreg.ExpirationDate.value == "") {
        CCFlag = 1;
        ErrFlag = 1; }

if (CCFlag == 1) AlertText += "           Complete credit card billing information\n";

// If no missing info, return a true and pass form to server

if (ErrFlag == 0) return true;

// Otherwise, return a false with an alert box
    
AlertText += "\nPlease supply the missing information and click Send Form.";
    
alert(AlertText);
return false;

}
//STOP HIDING -->
