function ReturnToSelect (){
parent.frames['Select'].location.href = "St21Select.htm"
parent.frames['Flowers'].location.href = "St21Flowers.htm"
parent.frames['Order'].location.href = "StDirections.htm"
}
function WriteFlowerChoice (num){
choice = ""
it = ""
it = eval(num - 1);
Location = eval ("parent.frames['Stick'].document.stk"+ it +".src")
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower1.GIF") {choice = "Feverfew";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower2.GIF") {choice = "Flax";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower3.GIF") {choice = "Larkspur - Lt. Pink";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower4.GIF") {choice = "Larkspur - Tr. Blue";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower5.GIF") {choice = "Sweet Annie - Natural";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower6.GIF") {choice = "Sweet Annie - Burgundy";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower7.GIF") {choice = "Strawflower - lt. pink";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower8.GIF") {choice = "Ageratum";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower9.GIF") {choice = "Lamb's Ear";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower10.GIF") {choice = "Wheat - awnless";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower11.GIF") {choice = "Yarrow";}
if (Location == "http://www.driedflowersdirect.com/art-and-craft/flower12.GIF") {choice = "Lona";}
document.write('')
}
function testall () {
if (document.form1.Name.value == "") {
alert ("Please enter a Name");
document.form1.Name.focus ( );
return false;
}
if (document.form1.Address.value == "") {
alert ("Please enter an address");
document.form1.Address.focus ( );
return false;
}
if (document.form1.City.value == "") {
alert ("Please enter a city");
document.form1.City.focus ( );
return false;
}
if (document.form1.custState.value == "") {
alert ("Please enter a State");
document.form1.custState.focus ( );
return false;
}
if (document.form1.ZipCode.value == "") {
alert ("Please enter a Zip code");
document.form1.ZipCode.focus ( );
return false;
}
if (document.form1.HomePhone.value == "" && document.form1.WorkPhone.value == ""){
alert ("Please enter a phone number");
document.form1.WorkPhone.focus ( );
return false;
}
if (document.form1.email.value == ""){
alert ("Please enter a E-mail address");
document.form1.email.focus ( );
return false;
}
if (document.form1.Payment.selectedIndex == 0) {
alert ("Please make a payment selection");
document.form1.Payment.focus ( );
return false;
}
return true;
}
var encrypt_it = true;
function isCreditCard(st) {
if (st.length = "")
return (false);
sum = 0; mul = 1; l = st.length;
for (i = 0; i < l; i++) {
digit = st.substring(l-i-1,l-i); tproduct = parseInt(digit ,10)*mul;
if (tproduct >= 10) sum += (tproduct % 10) + 1;
else sum += tproduct; if (mul == 1) mul++;
else mul--; }
if ((sum % 10) == 0)
return (true);
else return (false);}
function getCCNum(default_val) {
msg = 'Please enter your credit card number here. ' + 'It will be '
+ ((encrypt_it) ? "encrypted and then " : "")
+ 'placed into the credit card field of this form. ' ;
return prompt(msg,default_val);}
function encrypt(val) {
val = "" + val; var result = "";
for (i=0;i