//**********************************************************************
//                             StaticCart                              *
//  JavaScript Selectable Payment Methods Module     Copyright 2004-06 *
//                                                                     *
//**********************************************************************
//                                                                     *
// None of this script may be redistributed or sold without the        *
// authors express consent. Violations of this copyright will be       *
// prosecuted.  If you would like to use StaticCart, email us at       *
// carl@staticcart.com or visit http://www.staticcart.com              *
//                                                                     *
//**********************************************************************

function dispatch() {
if (document.form.selector[document.form.selector.selectedIndex].value == "none") {scCredit0()};
if (document.form.selector[document.form.selector.selectedIndex].value == "sc1") {scCredit1()}; // PayPal
if (document.form.selector[document.form.selector.selectedIndex].value == "sc2") {scCredit2()}; // CreditCard
if (document.form.selector[document.form.selector.selectedIndex].value == "sc3") {scCredit3()};
if (document.form.selector[document.form.selector.selectedIndex].value == "sc4") {scCredit4()};
}

function scCredit0(){
   if ( TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
		alert("You must select a payment option");
		return false;
   }
}
   if ( !TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
		alert("You must select a payment option");
		return false;
   		}
	}
}

function scCredit1(){

	if ( TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://honeypacifica.com/cart/pp-ck1.php";
        document.form.submit();
		}
	}


   if ( !TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://honeypacifica.com/cart/pp-ck1.php";
        document.form.submit();
		}
	}
}

function scCredit2(){
	
	if ( TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://honeypacifica.com/cart/ck1.php";
        document.form.submit();
		}
	}


   if ( !TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://honeypacifica.com/cart/ck1.php";
        document.form.submit();
		}
	}
}

function scCredit3(){

	if ( TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://www.dpl-surveillance-equipment.com/cart/sc-checkout3.html";
        document.form.submit();
		}
	}


   if ( !TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://www.dpl-surveillance-equipment.com/cart/sc-checkout3.html";
        document.form.submit();
		}
	}
}

function scCredit4(){
	
	if ( TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://www.dpl-surveillance-equipment.com/cart/sc-checkout4.html";
        document.form.submit();
		}
	}


   if ( !TaxByRegion ) {
	ValidateCart(form);
		if (Validation==true){
        document.form.method="Get";
        document.form.action="https://www.dpl-surveillance-equipment.com/cart/sc-checkout4.html";
        document.form.submit();
		}
	}
}


// -->
