<!-- hide script from old browsers

function displayqty() {


var b = " printed invitations with envelopes^"

if (document.store.elements[4].value != "") {
document.store.qtysold.value = (document.store.elements[4].value * 10)
}

if (document.store.quantity.value >=1 && document.store.quantity.value <=24) {
alert("25 Printed piece minimum is required for this item. Please adjust ordering quantity above.")
document.store.quantity.value = 25
return 0
}


if (document.store.elements[4].value == 1 || document.store.elements[4].value == 2 ) {
alert("3 Pack minimum is required for this item.")
document.store.elements[4].value = 3
return 0
}

if (document.store.cartitadd[1].checked ) {
document.store.elements[4].value = ""
document.store.qtysold.value = "50"

}

if (document.store.cartitadd[2].checked ) {
document.store.elements[4].value = ""
document.store.qtysold.value = "100"

}

if (document.store.cartitadd[3].checked ) {
document.store.elements[4].value = ""
document.store.qtysold.value = "150"

}

if (document.store.elements[8].checked ) {
document.store.elements[4].value = ""
document.store.qtysold.value = "200"

}



if (document.store.elements[3] && document.store.quantity.value != "") {
document.store.qtysold.value = document.store.quantity.value 
}


if((document.store.elements[4].value != "" || document.store.elements[5].checked || document.store.elements[6].checked || document.store.elements[7].checked || document.store.elements[8].checked ) && document.store.quantity.value == "" && document.store.elements[13].value != "" ) { 
document.store.quantity.focus()
document.store.quantity.select()
document.store.quantity.value= "25"
document.store.elements[4].value = ""
document.store.elements[5].checked = false
document.store.elements[6].checked = false
document.store.elements[7].checked = false 
document.store.elements[8].checked = false

alert("PLEASE NOTE:  You are attempting to enter text to be printed on the card but you either selected less than 25 personalized cards or selected these cards as BLANK. Please revise your selection above.")
return 0
}

if(document.store.elements[15].value != "") {
document.store.addit_RADDRESS.checked = "true"
} 



if (document.store.elements[13].value == "" && document.store.elements[15].value == "" ) {
document.store.addit_Proof[0].checked = "false"
document.store.addit_Proof[0].value = ""
}

if (document.store.elements[13].value != "" || document.store.elements[15].value != "" ) {
if (document.store.addit_Proof[0].checked == false && document.store.addit_Proof[1].checked == false && document.store.addit_Proof[2].checked == false) { 
alert("Please select how you would like to view your Proof.")
document.store.addit_Proof[0].checked = "true"    // for thefault Proofing
document.store.addit_Proof[0].focus()
document.store.addit_Proof[0].select()
return 0
}
}

if (document.store.elements[16].checked && (document.store.elements[18].value != "" || document.store.elements[20].value != "")) {

document.store.elements[18].value = ""
document.store.elements[20].value = ""

}

if (document.store.elements[17].checked && document.store.elements[18].value == "") {
alert("You have selected to have your Proof faxed to you. Please enter the fax number.")
document.store.elements[18].focus()
document.store.elements[18].select()
return 0
}

if (document.store.elements[17].checked && document.store.elements[18].value != "") {
document.store.elements[20].value = ""
}

if (document.store.elements[19].checked && document.store.elements[20].value == "") {
alert("You have selected to have your Proof mailed to you. Please enter the mailing address.")
document.store.elements[20].focus()
document.store.elements[20].select()
return 0
}

if (document.store.elements[19].checked && document.store.elements[20].value != "") {
document.store.elements[18].value = ""
}


if (document.store.quantity.value != "" && (document.store.elements[4].value != "" || document.store.elements[5].checked || document.store.elements[6].checked || document.store.elements[7].checked || document.store.elements[8].checked )) {

     var response = confirm("PLEASE NOTE: You are attempting to enter both personalized and blank cards.  If you meant to order this item blank, please clear the text on card that you entered and the personalized quantity.  If you meant to order this item personalized, please clear the Blank quantity and only select the order quantity in the personalization section.  If you want additional Blank cards, please proceed with your personalization order, and after adding these to the shopping cart, please return to this page and order the items blank.  Thank you.");

}



if ( response) {

if (document.store.elements[13].value != "") { 
document.store.elements[4].value = ""
document.store.elements[5].checked = "false"
document.store.elements[5].value = ""
document.store.elements[6].checked = "false"
document.store.elements[6].value = ""
document.store.elements[7].checked = "false"
document.store.elements[7].value = ""
document.store.elements[8].checked = "false"
document.store.elements[8].value = ""

} else {
if (document.store.elements[13].value == "") { 
document.store.quantity.value = ""
document.store.elements[3].value = ""
}}}



if (document.store.quantity.value >=25 && document.store.quantity.value <=49 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.85

}

if (document.store.quantity.value >=50 && document.store.quantity.value <=74 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.70

}

if (document.store.quantity.value >=75 && document.store.quantity.value <=99 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.55

}

if (document.store.quantity.value >=100 && document.store.quantity.value <=124) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.40

}

if (document.store.quantity.value >=125 && document.store.quantity.value <=149 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.35

}

if (document.store.quantity.value >=150 && document.store.quantity.value <=174 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.30

}

if (document.store.quantity.value >=175 && document.store.quantity.value <=199 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.25

}

if (document.store.quantity.value >=200 && document.store.quantity.value <=999 ) {
var mycartiadd_array=document.store.elements[3].value.split("-")
document.store.elements[3].value = mycartiadd_array[0]
document.store.elements[3].value = document.store.elements[3].value + "- " + document.store.quantity.value + b + 2.20

}





if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=25 && document.store.elements[3] && document.store.quantity.value <=49) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=50 && document.store.elements[3] && document.store.quantity.value <=74) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=75 && document.store.elements[3] && document.store.quantity.value <=99) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=100 && document.store.elements[3] && document.store.quantity.value <=124) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=125 && document.store.elements[3] && document.store.quantity.value <=149) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=150 && document.store.elements[3] && document.store.quantity.value <=174) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=175 && document.store.elements[3] && document.store.quantity.value <=199) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}

if (document.store.addit_RADDRESS.checked && document.store.elements[3] && document.store.quantity.value >=200 && document.store.elements[3] && document.store.quantity.value <=999) {
document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + document.store.quantity.value + " pieces^" + ((document.store.quantity.value * .35) + 10)
}





if (document.store.addit_RADDRESS.checked && document.store.elements[4].value >=3) {
 document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - " + (document.store.elements[4].value * 10) + " pieces^" + (((document.store.elements[4].value * 10) * .35) + 10)

}

if (document.store.elements[5].checked && document.store.addit_RADDRESS.checked) {
 document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - 50 pieces^" + ((50 * .35) + 10)

}

if (document.store.addit_RADDRESS.checked && document.store.elements[6].checked) {
 document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - 100 pieces^" + ((100 * .35) + 10)

}

if (document.store.addit_RADDRESS.checked && document.store.elements[7].checked) {
 document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - 150 pieces^" + ((150 * .35) + 10)

}

if (document.store.addit_RADDRESS.checked && document.store.elements[8].checked) {
 document.store.addit_RADDRESS.value = " ADDRESS " +  document.store.itemID.value +  "  " + " Return address printing - 200 pieces^" + ((200 * .35) + 10)

}



	document.store.submit()
}





function uncheckothers() {

document.store.elements[4].value = ""

if (document.store.quantity.value >= "25") {
     var response = confirm("PLEASE NOTE: You are attempting to enter both personalized and blank cards.  If you meant to order this item blank, please clear the text on card section and the personalized quantity.  If you meant to order this item personalized, please clear the Blank quantity and enter the quantity in the personalization section.  If you want additional Blank cards, please process with your personalization order, and after adding these to the shopping cart, please return to this page and order the items blank.  Thank you.");

}

if ( response) {

document.store.quantity.focus()
document.store.quantity.select()

}

}



function printedonlyAddress() {

document.store.addit_RADDRESS.checked = "true"


}



function printedonly() {

if(document.store.quantity.value < 25 ) {
document.store.elements[4].focus()
document.store.elements[4].select()

alert("PLEASE NOTE: You are attempting to enter text to be printed on the card but you either selected less than 25 cards to be personalized or ordered the cards to be BLANK. Please revise your selection above.")


}
}



function printed() {

if (document.store.quantity.value != "" && document.store.elements[13].value == "") { 
document.store.quantity.value = ""

} 

if (document.store.quantity.value != "" && document.store.elements[13].value != "" ) {

document.store.quantity.focus()
document.store.quantity.select()


alert("PLEASE NOTE: You are attempting to order both personalized and blank cards.  If you meant to order this item blank, please clear the text on card section that you entered and the personalized quantity.  If you meant to order this item personalized, please clear the Blank quantity and only select the order quantity in the personalization section.  To also order Blank cards, please process with your personalization order, and after adding these to the shopping cart, please return to this page and order the items blank.  Thank you.");


}



}


function notprinted() {

document.store.elements[4].value = ""
document.store.elements[5].checked = false
document.store.elements[6].checked = false
document.store.elements[7].checked = false 
document.store.elements[8].checked = false


}

function Proofweb() {

document.store.elements[18].value=""

}


function Prooffax() {
if (document.store.elements[13].value != "" || document.store.elements[15].value != "") {
document.store.addit_Proof[1].checked = true
} else {
document.store.elements[21].focus()
document.store.elements[21].select()
alert ("PLEASE NOTE: You have selected a Proofing method but this item has not been ordered with printing.")
}

}

function Proofmail() {
if (document.store.elemets[13].value != "" || document.store.elemetns[15].value != "") {
document.store.elements[19].checked = true
} else {
document.store.elements[21].focus ()
document.store.elements[21].select ()
alert ("PLEASE NOTE: You have selected a Proofing method but this item has not been ordered with printing.")
}
}

//end hiding script from old browser-->


