
function submitIt_contact(theForm){

			if (theForm.from.value == "") {
				alert("What's your name?")
				theForm.from.focus()
				return false
			}

			if (theForm.from_email.value == "") {
				alert("What's your email address?")
				theForm.from_email.focus()
				return false
			}

			if (theForm.from.value == "") {
				alert("What's your name?")
				theForm.from.focus()
				return false
			}

			if (theForm.subject.value == "") {
				alert("What's the subject?")
				theForm.subject.focus()
				return false
			}

			if (theForm.validate.value == "") {
				alert("Please enter the validation key")
				theForm.validate.focus()
				return false
			}

			if (theForm.message.value == "") {
				alert("Please say something?")
				theForm.message.focus()
				return false
			}

		return true
		}

function submitIt_login(theForm){

			if (theForm.pu.value == "") {
				alert("Please enter your username")
				theForm.pu.focus()
				return false
			}

			if (theForm.pp.value == "") {
				alert("Please enter your password")
				theForm.pp.focus()
				return false
			}

		return true
		}
		
function submitIt_card_build(theForm){

			if (theForm.Card_Sender.value == "") {
				alert("What's your name?")
				theForm.Card_Sender.focus()
				return false
			}

			if (theForm.Senders_Email.value == "") {
				alert("What's your email address?")
				theForm.Senders_Email.focus()
				return false
			}

			if (theForm.Card_Recipient.value == "") {
				alert("What's their name?")
				theForm.Card_Recipient.focus()
				return false
			}

			if (theForm.Recipients_Email.value == "") {
				alert("What's their email address?")
				theForm.Recipients_Email.focus()
				return false
			}

			if (theForm.Card_Heading.value == "") {
				alert("Please enter a title for the ecard")
				theForm.Card_Heading.focus()
				return false
			}

			if (theForm.Card_Body.value == "") {
				alert("Please enter a message")
				theForm.Card_Body.focus()
				return false
			}

			if (document.all||document.getElementById){
			for (i=0;i<theForm.length;i++){
			var tempobj=theForm.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true
			}
			}

		return true
		}		
		
function OnButton1(){

			if (theForm.Card_Sender.value == "") {
				alert("What's your name?")
				theForm.Card_Sender.focus()
				return false
			}

			if (theForm.Senders_Email.value == "") {
				alert("What's your email address?")
				theForm.Senders_Email.focus()
				return false
			}

			if (theForm.Card_Recipient.value == "") {
				alert("What's their name?")
				theForm.Card_Recipient.focus()
				return false
			}

			if (theForm.Recipients_Email.value == "") {
				alert("What's their email address?")
				theForm.Recipients_Email.focus()
				return false
			}

			if (theForm.Card_Heading.value == "") {
				alert("Please enter a title for the ecard")
				theForm.Card_Heading.focus()
				return false
			}

			if (theForm.Card_Body.value == "") {
				alert("Please enter a message")
				theForm.Card_Body.focus()
				return false
			}

			if (document.all||document.getElementById){
			for (i=0;i<theForm.length;i++){
			var tempobj=theForm.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true
			}
			}
			
		document.theForm.action = "preview.asp"
		document.theForm.submit();
		return true;

		return true
		}			

function OnButton2(){

			if (theForm.Card_Sender.value == "") {
				alert("What's your name?")
				theForm.Card_Sender.focus()
				return false
			}

			if (theForm.Senders_Email.value == "") {
				alert("What's your email address?")
				theForm.Senders_Email.focus()
				return false
			}

			if (theForm.Card_Recipient.value == "") {
				alert("What's their name?")
				theForm.Card_Recipient.focus()
				return false
			}

			if (theForm.Recipients_Email.value == "") {
				alert("What's their email address?")
				theForm.Recipients_Email.focus()
				return false
			}

			if (theForm.Card_Heading.value == "") {
				alert("Please enter a title for the ecard")
				theForm.Card_Heading.focus()
				return false
			}

			if (theForm.Card_Body.value == "") {
				alert("Please enter a message")
				theForm.Card_Body.focus()
				return false
			}

			if (document.all||document.getElementById){
			for (i=0;i<theForm.length;i++){
			var tempobj=theForm.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true
			}
			}
			
		document.theForm.action = "process.asp"
		document.theForm.submit();
		return true;

		return true
		}	
		
function submitIt_pickup(theForm){

			if (theForm.id.value == "") {
				alert("Please enter the card ID as per your email")
				theForm.id.focus()
				return false
			}

		return true
		}

function submitIt_contactReg(theForm){

			if (theForm.pName.value == "") {
				alert("What's your name?")
				theForm.pName.focus()
				return false
			}

			if (theForm.pUserName.value == "") {
				alert("Please provide a username")
				theForm.pUserName.focus()
				return false
			}

			if (theForm.pPassword.value == "") {
				alert("Please provide a password")
				theForm.pPassword.focus()
				return false
			}

			if (theForm.pPassword1.value == "") {
				alert("Please confirm your password")
				theForm.pPassword1.focus()
				return false
			}

			if (theForm.pPassword.value !=  theForm.pPassword1.value) {
				alert("Passwords do not match")
				theForm.pPassword1.focus()
				return false
			}
			
			if (theForm.pEmail.value == "") {
				alert("Please provide an email address")
				theForm.pEmail.focus()
				return false
			}			

			if (theForm.validate.value == "") {
				alert("Please enter the validation key")
				theForm.validate.focus()
				return false
			}	

			if (document.all||document.getElementById){
			for (i=0;i<theForm.length;i++){
			var tempobj=theForm.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true
			}
			}

		return true
		}		
		
function submitIt_links(theForm){

			if (theForm.LinkTitle.value == "") {
				alert("What's the link title?")
				theForm.LinkTitle.focus()
				return false
			}

			if (theForm.linkHref.value == "") {
				alert("What's the link?")
				theForm.linkHref.focus()
				return false
			}

			if (theForm.linkInfo.value == "") {
				alert("What's the link description?")
				theForm.linkInfo.focus()
				return false
			}

		return true
		}		
		
function validateTop (){

			if (document.all||document.getElementById){
			for (i=0;i<theForm.length;i++){
			var tempobj=theForm.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true
			}
			}
return true
}		



function submitIt_subs(theForm){

			if (theForm.pFirstName.value == "") {
				alert("Please enter your first name")
				theForm.pFirstName.focus()
				return false
			}

			if (theForm.pLastName.value == "") {
				alert("Please enter your last name")
				theForm.pLastName.focus()
				return false
			}

			if (theForm.pUserName.value == "") {
				alert("Please enter your username")
				theForm.pUserName.focus()
				return false
			}

			if (theForm.pPassword.value == "") {
				alert("Please enter your password")
				theForm.pPassword.focus()
				return false
			}


			if (theForm.pPassword1.value == "") {
				alert("Please confirm your password")
				theForm.pPassword1.focus()
				return false
			}

			if (theForm.pEmail.value == "") {
				alert("Please enter your email address")
				theForm.pEmail.focus()
				return false
			}

			if (document.all||document.getElementById){
			for (i=0;i<theForm.length;i++){
			var tempobj=theForm.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
			tempobj.disabled=true
			}
			}

		return true
		}
