function findAmta()
{
	with (document.forms[0]) {
		if (quantitya.value ==  2  && packagea.value == "5x7") {
		pricea.value = 60 + 15;
		} else if 
		 (quantitya.value >= 3 && packagea.value == "5x7") {
		pricea.value = (quantitya.value - 2)*10 +75;
		} else if 
		 (quantitya.value == 1  && packagea.value == "5x7") {
		pricea.value = 60;
		} else if 
		 (quantitya.value ==  2  && packagea.value == "8x10") {
		pricea.value = 60 + 15;
		} 
		else if (quantitya.value >= 3  && packagea.value == "8x10") {
		pricea.value = (quantitya.value - 2)*10 +75;
		} 
		else if (quantitya.value == 1 && packagea.value == "8x10") {
		pricea.value = 60;
		} 
		else if (quantitya.value > 1  && packagea.value == "11x14") {
		pricea.value = (quantitya.value - 1)*35 +95;
		} 
		else if (quantitya.value == 1 && packagea.value == "11x14") {
		pricea.value = 95;
		}
		else if (quantitya.value > 1  && packagea.value == "16x20") {
		pricea.value = (quantitya.value - 1)*45 +165;
		} 
		else if (quantitya.value == 1 && packagea.value == "16x20") {
		pricea.value = 165;
		}
		else if (quantitya.value > 1  && packagea.value == "20x24") {
		pricea.value = (quantitya.value - 1)*45 +215;
		} 
		else if (quantitya.value == 1 && packagea.value == "20x24") {
		pricea.value = 215;
		}
		else if (quantitya.value > 1  && packagea.value == "24x30") {
		pricea.value = (quantitya.value - 1)*55 +255;
		} 
		else if (quantitya.value == 1 && packagea.value == "24x30") {
		pricea.value = 255;
		}
		else if (quantitya.value > 1  && packagea.value == "packagea") {
		pricea.value = (quantitya.value - 1)*145 +145;
		} 
		else if (quantitya.value == 1 && packagea.value == "packagea") {
		pricea.value = 145;
		}
		else if (quantitya.value > 1  && packagea.value == "packageb") {
		pricea.value = (quantitya.value - 1)*145 +145;
		} 
		else if (quantitya.value == 1 && packagea.value == "packageb") {
		pricea.value = 145;
		}
		else if (quantitya.value > 1  && packagea.value == "packagec") {
		pricea.value = (quantitya.value - 1)*210 +210;
		} 
		else if (quantitya.value == 1 && packagea.value == "packagec") {
		pricea.value = 210;
		}
		else if (quantitya.value > 1  && packagea.value == "packaged") {
		pricea.value = (quantitya.value - 1)*265 +265;
		} 
		else if (quantitya.value == 1 && packagea.value == "packaged") {
		pricea.value = 265;
		}
		else if (quantitya.value > 1  && packagea.value == "packagee") {
		pricea.value = (quantitya.value - 1)*310 +310;
		} 
		else if (quantitya.value == 1 && packagea.value == "packagee") {
		pricea.value = 310;
		}
		else if (quantitya.value > 1  && packagea.value == "webcombo8x10highres") {
		pricea.value = (quantitya.value - 1)*80 +80;
		} 
		else if (quantitya.value == 1 && packagea.value == "webcombo8x10highres") {
		pricea.value = 80;
		}
		else if (quantitya.value > 1  && packagea.value == "webcombo8x10lowres") {
		pricea.value = (quantitya.value - 1)*80 +80;
		} 
		else if (quantitya.value == 1 && packagea.value == "webcombo8x10lowres") {
		pricea.value = 80;
		}
		else if (quantitya.value > 1  && packagea.value == "webcombohighlow") {
		pricea.value = (quantitya.value - 1)*80 +80;
		} 
		else if (quantitya.value == 1 && packagea.value == "webcombohighlow") {
		pricea.value = 80;
		} else {
		pricea.value = 0;
		}
	}
}
function findAmtb()
{
	with (document.forms[0]) {
		if (quantityb.value ==  2  && packageb.value == "5x7") {
		priceb.value = 60 + 15;
		} else if 
		 (quantityb.value >= 3 && packageb.value == "5x7") {
		priceb.value = (quantityb.value - 2)*10 +75;
		} else if 
		 (quantityb.value == 1  && packageb.value == "5x7") {
		priceb.value = 60;
		} else if 
		 (quantityb.value ==  2  && packageb.value == "8x10") {
		priceb.value = 60 + 15;
		} 
		else if (quantityb.value >= 3  && packageb.value == "8x10") {
		priceb.value = (quantityb.value - 2)*10 +75;
		} 
		else if (quantityb.value == 1 && packageb.value == "8x10") {
		priceb.value = 60;
		} 
		else if (quantityb.value > 1  && packageb.value == "11x14") {
		priceb.value = (quantityb.value - 1)*35 +95;
		} 
		else if (quantityb.value == 1 && packageb.value == "11x14") {
		priceb.value = 95;
		}
		else if (quantityb.value > 1  && packageb.value == "16x20") {
		priceb.value = (quantityb.value - 1)*45 +165;
		} 
		else if (quantityb.value == 1 && packageb.value == "16x20") {
		priceb.value = 165;
		}
		else if (quantityb.value > 1  && packageb.value == "20x24") {
		priceb.value = (quantityb.value - 1)*45 +215;
		} 
		else if (quantityb.value == 1 && packageb.value == "20x24") {
		priceb.value = 215;
		}
		else if (quantityb.value > 1  && packageb.value == "24x30") {
		priceb.value = (quantityb.value - 1)*55 +255;
		} 
		else if (quantityb.value == 1 && packageb.value == "24x30") {
		priceb.value = 255;
		}
		else if (quantityb.value > 1  && packageb.value == "packagea") {
		priceb.value = (quantityb.value - 1)*145 +145;
		} 
		else if (quantityb.value == 1 && packageb.value == "packagea") {
		priceb.value = 145;
		}
		else if (quantityb.value > 1  && packageb.value == "packageb") {
		priceb.value = (quantityb.value - 1)*145 +145;
		} 
		else if (quantityb.value == 1 && packageb.value == "packageb") {
		priceb.value = 145;
		}
		else if (quantityb.value > 1  && packageb.value == "packagec") {
		priceb.value = (quantityb.value - 1)*210 +210;
		} 
		else if (quantityb.value == 1 && packageb.value == "packagec") {
		priceb.value = 210;
		}
		else if (quantityb.value > 1  && packageb.value == "packaged") {
		priceb.value = (quantityb.value - 1)*265 +265;
		} 
		else if (quantityb.value == 1 && packageb.value == "packaged") {
		priceb.value = 265;
		}
		else if (quantityb.value > 1  && packageb.value == "packagee") {
		priceb.value = (quantityb.value - 1)*310 +310;
		} 
		else if (quantityb.value == 1 && packageb.value == "packagee") {
		priceb.value = 310;
		}
		else if (quantityb.value > 1  && packageb.value == "webcombo8x10highres") {
		priceb.value = (quantityb.value - 1)*80 +80;
		} 
		else if (quantityb.value == 1 && packageb.value == "webcombo8x10highres") {
		priceb.value = 80;
		}
		else if (quantityb.value > 1  && packageb.value == "webcombo8x10lowres") {
		priceb.value = (quantityb.value - 1)*80 +80;
		} 
		else if (quantityb.value == 1 && packageb.value == "webcombo8x10lowres") {
		priceb.value = 80;
		}
		else if (quantityb.value > 1  && packageb.value == "webcombohighlow") {
		priceb.value = (quantityb.value - 1)*80 +80;
		} 
		else if (quantityb.value == 1 && packageb.value == "webcombohighlow") {
		priceb.value = 80;
		} else {
		priceb.value = 0;
		}
	}
}

function findAmtc()
{
	with (document.forms[0]) {
		if (quantityc.value ==  2  && packagec.value == "5x7") {
		pricec.value = 60 + 15;
		} else if 
		 (quantityc.value >= 3 && packagec.value == "5x7") {
		pricec.value = (quantityc.value - 2)*10 +75;
		} else if 
		 (quantityc.value == 1  && packagec.value == "5x7") {
		pricec.value = 60;
		} else if 
		 (quantityc.value ==  2  && packagec.value == "8x10") {
		pricec.value = 60 + 15;
		} 
		else if (quantityc.value >= 3  && packagec.value == "8x10") {
		pricec.value = (quantityc.value - 2)*10 +75;
		} 
		else if (quantityc.value == 1 && packagec.value == "8x10") {
		pricec.value = 60;
		} 
		else if (quantityc.value > 1  && packagec.value == "11x14") {
		pricec.value = (quantityc.value - 1)*35 +95;
		} 
		else if (quantityc.value == 1 && packagec.value == "11x14") {
		pricec.value = 95;
		}
		else if (quantityc.value > 1  && packagec.value == "16x20") {
		pricec.value = (quantityc.value - 1)*45 +165;
		} 
		else if (quantityc.value == 1 && packagec.value == "16x20") {
		pricec.value = 165;
		}
		else if (quantityc.value > 1  && packagec.value == "20x24") {
		pricec.value = (quantityc.value - 1)*45 +215;
		} 
		else if (quantityc.value == 1 && packagec.value == "20x24") {
		pricec.value = 215;
		}
		else if (quantityc.value > 1  && packagec.value == "24x30") {
		pricec.value = (quantityc.value - 1)*55 +255;
		} 
		else if (quantityc.value == 1 && packagec.value == "24x30") {
		pricec.value = 255;
		}
		else if (quantityc.value > 1  && packagec.value == "packagea") {
		pricec.value = (quantityc.value - 1)*145 +145;
		} 
		else if (quantityc.value == 1 && packagec.value == "packagea") {
		pricec.value = 145;
		}
		else if (quantityc.value > 1  && packagec.value == "packageb") {
		pricec.value = (quantityc.value - 1)*145 +145;
		} 
		else if (quantityc.value == 1 && packagec.value == "packageb") {
		pricec.value = 145;
		}
		else if (quantityc.value > 1  && packagec.value == "packagec") {
		pricec.value = (quantityc.value - 1)*210 +210;
		} 
		else if (quantityc.value == 1 && packagec.value == "packagec") {
		pricec.value = 210;
		}
		else if (quantityc.value > 1  && packagec.value == "packaged") {
		pricec.value = (quantityc.value - 1)*265 +265;
		} 
		else if (quantityc.value == 1 && packagec.value == "packaged") {
		pricec.value = 265;
		}
		else if (quantityc.value > 1  && packagec.value == "packagee") {
		pricec.value = (quantityc.value - 1)*310 +310;
		} 
		else if (quantityc.value == 1 && packagec.value == "packagee") {
		pricec.value = 310;
		}
		else if (quantityc.value > 1  && packagec.value == "webcombo8x10highres") {
		pricec.value = (quantityc.value - 1)*80 +80;
		} 
		else if (quantityc.value == 1 && packagec.value == "webcombo8x10highres") {
		pricec.value = 80;
		}
		else if (quantityc.value > 1  && packagec.value == "webcombo8x10lowres") {
		pricec.value = (quantityc.value - 1)*80 +80;
		} 
		else if (quantityc.value == 1 && packagec.value == "webcombo8x10lowres") {
		pricec.value = 80;
		}
		else if (quantityc.value > 1  && packagec.value == "webcombohighlow") {
		pricec.value = (quantityc.value - 1)*80 +80;
		} 
		else if (quantityc.value == 1 && packagec.value == "webcombohighlow") {
		pricec.value = 80;
		} else {
		pricec.value = 0;
		}
	}
}

function findAmtd()
{
	with (document.forms[0]) {
		if (quantityd.value ==  2  && packaged.value == "5x7") {
		priced.value = 60 + 15;
		} else if 
		 (quantityd.value >= 3 && packaged.value == "5x7") {
		priced.value = (quantityd.value - 2)*10 +75;
		} else if 
		 (quantityd.value == 1  && packaged.value == "5x7") {
		priced.value = 60;
		} else if 
		 (quantityd.value ==  2  && packaged.value == "8x10") {
		priced.value = 60 + 15;
		} 
		else if (quantityd.value >= 3  && packaged.value == "8x10") {
		priced.value = (quantityd.value - 2)*10 +75;
		} 
		else if (quantityd.value == 1 && packaged.value == "8x10") {
		priced.value = 60;
		} 
		else if (quantityd.value > 1  && packaged.value == "11x14") {
		priced.value = (quantityd.value - 1)*35 +95;
		} 
		else if (quantityd.value == 1 && packaged.value == "11x14") {
		priced.value = 95;
		}
		else if (quantityd.value > 1  && packaged.value == "16x20") {
		priced.value = (quantityd.value - 1)*45 +165;
		} 
		else if (quantityd.value == 1 && packaged.value == "16x20") {
		priced.value = 165;
		}
		else if (quantityd.value > 1  && packaged.value == "20x24") {
		priced.value = (quantityd.value - 1)*45 +215;
		} 
		else if (quantityd.value == 1 && packaged.value == "20x24") {
		priced.value = 215;
		}
		else if (quantityd.value > 1  && packaged.value == "24x30") {
		priced.value = (quantityd.value - 1)*55 +255;
		} 
		else if (quantityd.value == 1 && packaged.value == "24x30") {
		priced.value = 255;
		}
		else if (quantityd.value > 1  && packaged.value == "packagea") {
		priced.value = (quantityd.value - 1)*145 +145;
		} 
		else if (quantityd.value == 1 && packaged.value == "packagea") {
		priced.value = 145;
		}
		else if (quantityd.value > 1  && packaged.value == "packageb") {
		priced.value = (quantityd.value - 1)*145 +145;
		} 
		else if (quantityd.value == 1 && packaged.value == "packageb") {
		priced.value = 145;
		}
		else if (quantityd.value > 1  && packaged.value == "packagec") {
		priced.value = (quantityd.value - 1)*210 +210;
		} 
		else if (quantityd.value == 1 && packaged.value == "packagec") {
		priced.value = 210;
		}
		else if (quantityd.value > 1  && packaged.value == "packaged") {
		priced.value = (quantityd.value - 1)*265 +265;
		} 
		else if (quantityd.value == 1 && packaged.value == "packaged") {
		priced.value = 265;
		}
		else if (quantityd.value > 1  && packaged.value == "packagee") {
		priced.value = (quantityd.value - 1)*310 +310;
		} 
		else if (quantityd.value == 1 && packaged.value == "packagee") {
		priced.value = 310;
		}
		else if (quantityd.value > 1  && packaged.value == "webcombo8x10highres") {
		priced.value = (quantityd.value - 1)*80 +80;
		} 
		else if (quantityd.value == 1 && packaged.value == "webcombo8x10highres") {
		priced.value = 80;
		}
		else if (quantityd.value > 1  && packaged.value == "webcombo8x10lowres") {
		priced.value = (quantityd.value - 1)*80 +80;
		} 
		else if (quantityd.value == 1 && packaged.value == "webcombo8x10lowres") {
		priced.value = 80;
		}
		else if (quantityd.value > 1  && packaged.value == "webcombohighlow") {
		priced.value = (quantityd.value - 1)*80 +80;
		} 
		else if (quantityd.value == 1 && packaged.value == "webcombohighlow") {
		priced.value = 80;
		} else {
		priced.value = 0;
		}
	}
}

function findAmte()
{
	with (document.forms[0]) {
		if (quantitye.value ==  2  && packagee.value == "5x7") {
		pricee.value = 60 + 15;
		} else if 
		 (quantitye.value >= 3 && packagee.value == "5x7") {
		pricee.value = (quantitye.value - 2)*10 +75;
		} else if 
		 (quantitye.value == 1  && packagee.value == "5x7") {
		pricee.value = 60;
		} else if 
		 (quantitye.value ==  2  && packagee.value == "8x10") {
		pricee.value = 60 + 15;
		} 
		else if (quantitye.value >= 3  && packagee.value == "8x10") {
		pricee.value = (quantitye.value - 2)*10 +75;
		} 
		else if (quantitye.value == 1 && packagee.value == "8x10") {
		pricee.value = 60;
		} 
		else if (quantitye.value > 1  && packagee.value == "11x14") {
		pricee.value = (quantitye.value - 1)*35 +95;
		} 
		else if (quantitye.value == 1 && packagee.value == "11x14") {
		pricee.value = 95;
		}
		else if (quantitye.value > 1  && packagee.value == "16x20") {
		pricee.value = (quantitye.value - 1)*45 +165;
		} 
		else if (quantitye.value == 1 && packagee.value == "16x20") {
		pricee.value = 165;
		}
		else if (quantitye.value > 1  && packagee.value == "20x24") {
		pricee.value = (quantitye.value - 1)*45 +215;
		} 
		else if (quantitye.value == 1 && packagee.value == "20x24") {
		pricee.value = 215;
		}
		else if (quantitye.value > 1  && packagee.value == "24x30") {
		pricee.value = (quantitye.value - 1)*55 +255;
		} 
		else if (quantitye.value == 1 && packagee.value == "24x30") {
		pricee.value = 255;
		}
		else if (quantitye.value > 1  && packagee.value == "packagea") {
		pricee.value = (quantitye.value - 1)*145 +145;
		} 
		else if (quantitye.value == 1 && packagee.value == "packagea") {
		pricee.value = 145;
		}
		else if (quantitye.value > 1  && packagee.value == "packageb") {
		pricee.value = (quantitye.value - 1)*145 +145;
		} 
		else if (quantitye.value == 1 && packagee.value == "packageb") {
		pricee.value = 145;
		}
		else if (quantitye.value > 1  && packagee.value == "packagec") {
		pricee.value = (quantitye.value - 1)*210 +210;
		} 
		else if (quantitye.value == 1 && packagee.value == "packagec") {
		pricee.value = 210;
		}
		else if (quantitye.value > 1  && packagee.value == "packaged") {
		pricee.value = (quantitye.value - 1)*265 +265;
		} 
		else if (quantitye.value == 1 && packagee.value == "packaged") {
		pricee.value = 265;
		}
		else if (quantitye.value > 1  && packagee.value == "packagee") {
		pricee.value = (quantitye.value - 1)*310 +310;
		} 
		else if (quantitye.value == 1 && packagee.value == "packagee") {
		pricee.value = 310;
		}
		else if (quantitye.value > 1  && packagee.value == "webcombo8x10highres") {
		pricee.value = (quantitye.value - 1)*80 +80;
		} 
		else if (quantitye.value == 1 && packagee.value == "webcombo8x10highres") {
		pricee.value = 80;
		}
		else if (quantitye.value > 1  && packagee.value == "webcombo8x10lowres") {
		pricee.value = (quantitye.value - 1)*80 +80;
		} 
		else if (quantitye.value == 1 && packagee.value == "webcombo8x10lowres") {
		pricee.value = 80;
		}
		else if (quantitye.value > 1  && packagee.value == "webcombohighlow") {
		pricee.value = (quantitye.value - 1)*80 +80;
		} 
		else if (quantitye.value == 1 && packagee.value == "webcombohighlow") {
		pricee.value = 80;
		} else {
		pricee.value = 0;
		}
	}
}

function subTotal()
{
	with (document.forms[0]) {
		subtotal.value = pricea.value *1 + priceb.value *1 + pricec.value *1 + priced.value *1 + pricee.value *1;
	}
}

function rushFee()
{
	with (document.forms[0]) {
		if (rushfee.value == "100%") {
			total.value = (subtotal.value*2) + 10; }
			else if 
				(rushfee.value == "50%") {
					total.value = (subtotal.value*1.5) + 10; 
			} else if
				(rushfee.value == "none") {
			total.value = (subtotal.value*1) + 10;
			} else {
				total.value = subtotal.value + 10;
			}
}
	}

function checkform ( order ){
        if (order.name.value == "" || order.name.value.length < 5) {
        alert( "Please enter your full name" );
        order.name.focus();
        return false ;
  }
  		 if (order.address.value == "" || order.address.value.length < 5) {
        alert( "Please enter your address" );
        order.address.focus();
        return false ;
  }
  		 if (order.city.value == "" || order.city.value.length < 3) {
        alert( "Please enter your city" );
        order.city.focus();
        return false ;
  }
  		 if (order.state.value == "" || order.state.value.length < 1) {
        alert( "Please enter your state initials" );
        order.state.focus();
        return false ;
  }
  		 if (order.zip.value == "" || order.zip.value.length < 5) {
        alert( "Please enter your zip code" );
        order.zip.focus();
        return false ;
  }
  		 if (order.email.value == "" || order.email.value.length < 5) {
        alert( "Please enter your email address" );
        order.email.focus();
        return false ;
  }
  		 if (order.phone.value == "" || order.phone.value.length < 10) {
        alert( "Please enter your phone number with area code" );
        order.phone.focus();
        return false ;
  }
  		 if (order.proofa.value == "") {
        alert( "Please enter your first proof number" );
        order.proofa.focus();
        return false ;
  }
  		 if (order.packageb.value != "select" && order.proofb.value == "") {
        alert( "Please enter your second proof number" );
        order.proofb.focus();
        return false ;
  }
  		 if (order.packagec.value != "select" && order.proofc.value == "") {
        alert( "Please enter your third proof number" );
        order.proofc.focus();
        return false ;
  }
  		 if (order.packaged.value != "select" && order.proofd.value == "") {
        alert( "Please enter your fourth proof number" );
        order.proofd.focus();
        return false ;
  }
  		 if (order.packagee.value != "select" && order.proofe.value == "") {
        alert( "Please enter your fifth proof number" );
        order.proofe.focus();
        return false ;
  }
  return true;
}
