	
    function orderProcessing()
    {
    	if($("#form_search").html()==null && $(".p_cluboffer").html()==null) {
        if($(".LV_invalid").size() > 0 || $(".avError").size() > 0 ) return false;
        else
        {

		    var height = $("body").height();
            var wHeight = $(window).height() +$(window).scrollTop();
            var over = '<div id="process_over"><div>YOUR ORDER IS PROCESSING<small>Please do not stop or refresh your browser.</small></div><span></span></div>';
            $("body").prepend(over);
            var oWidth = $(window).width()/2 - 150;
            var oHeight = wHeight/2 - 75;
            $("#process_over div").css({top:oHeight+'px',left:oWidth+'px'});
            $("#process_over").css({height:height+"px"}).show();
            $("#process_over span").css({height:height+"px"});

            if ($.browser.msie &&  parseInt($.browser.version) < 7) //IE MUST DIE!
					{
						var frameheight =  $("#process_over").height();
						var framewidth =  $("#process_over").width();
						$("#process_over").append('<iframe id="process_iframe" border="0" frameborder="0" allowtransparency="true" src="/bocajava/blank.html" style="position:absolute;top:0;left:0;z-index:1991;width:'+framewidth+';height:'+frameheight+'"></iframe>')
                        $("select").css({visibility:'hidden'});
                }

            return true;
        }
        }
    }


     function labelWriter()
	{

		$("input:text").each(function(){
			if($(this).attr('class')!='ff_email') labelWrite(this);
		});

		$(':text').keyup(function(){
			if($(this).attr('class')!='ff_email') labelWrite(this);
		});


		$(':text').blur(function(){
			if($(this).attr('class')!='ff_email') labelWrite(this);
		});



	}

	function labelWrite(w)
	{
			var id = $(w).attr('id');
			if(id!=undefined)
			{
				var pname = id.replace(/f_/,'p_');
				$("#"+pname).html($(w).val());
			}
	}


 /*
	  function R_add_address(anchorID)  //passed from anchor title of 'watch' anchors
	 {
	 	$("#modalContainer h2").html('Add a new address to your address book');
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_nickName'
	 		},
	 		{
	 			field:'f_name'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_stateProvince'
	 		},
	 		{
	 			field:'f_postalCode'
	 		},
	 		{
	 			field:'f_phone',
	 			required:'n'
	 		}),
	 		key:anchorID,
	 		remotePath:''
	 	});
	
	 	a.labelWriter();
	 }
	 
	 function R_edit_address(anchorID)  //passed from anchor title of 'watch' anchors
	 {
	 	$("#modalContainer h2").html('Edit '+ $("#passData_"+anchorID+" .c_name").html());
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_nickName'
	 		},
	 		{
	 			field:'f_name'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_stateProvince'
	 		},
	 		{
	 			field:'f_postalCode'
	 		},
	 		{
	 			field:'f_phone',
	 			required:'n'
	 		}),
	 		key:anchorID,
	 		remotePath:''
	 	});
	
	 	a.passData();
	 	a.labelWriter();
	 }
	 
	 //array:Array({field:'f_nickname',valid:'OR',validMatch:'f_whatever'});
	
	 function L_edit_address() //local (non ajax) form validation and functionality
	 {
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_nickName'
	 		},
	 		{
	 			field:'f_name'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_stateProvince'
	 		},
	 		{
	 			field:'f_postalCode'
	 		},
	 		{
	 			field:'f_phone',
	 			required:'n'
	 		})
	 	});
	 	a.labelWriter();
	 }
	 /*
	 function L_edit_profile() //local (non ajax) form validation and functionality
	 {
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_firstName'
	 		},
	 		{
	 			field:'f_lastName'
	 		},
	 		{
	 			field:'f_email'
	 		},
	 		{
	 			field:'f_phone',
	 			required:'n'
	 		},
	 		{
	 			field:'f_mobilePhone',
	 			required:'n'
	 		},
	 		{
	 			field:'f_workPhone',
	 			required:'n'
	 		},
	 		{
	 			field:'f_fax',
	 			required:'n'
	 		})
	 	});
	 }
	  
	  
	 function L_update_password() //local (non ajax) form validation and functionality
	 {
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_oldPassword'
	 		},
	 		{
	 			field:'f_newPassword'
	 		},
	 		{
	 			field:'f_matchPassword'
	 		})
	 	});
	 }
	 */
	 
	 function L_promo() //local (non ajax) form validation and functionality
	 {
             var c = null;
	 	
	 	 makeTooltip("input#f_state");
	 	 var addedShipping = false;
	 	 addShipping();
         var wh = 0;
         $('input').keyup(function(){handleBilling();})

          function handleBilling(button)
         {
              $c = 0;
              $("input[name='differentbilling']").each(function(){
                  if($c==0)
                  {
                  if($(this).attr('checked')&&button!='submit' && wh==0)
                      {
                        $("#f_billingAddress").val('');
                        $("#f_billingCity").val('');
                    	$("#f_billingState").val('');
                    	$("#f_billingZipcode").val('');
                        $c++;
                        wh++;
                        $("#billing_CC").removeClass('disabled');
                        runValidate('',false);
                      }
                  else if(!$(this).attr('checked'))
                      {
                        $("#f_billingAddress").val($("#f_address1").val());
                        $("#f_billingCity").val($("#f_city").val());
                        $("#f_billingState").val($("#f_state").val());
                        $("#f_billingZipcode").val($("#f_zipcode").val());
                        wh = 0;
                         $("#billing_CC").addClass('disabled');
                        runValidate('',false);
                        
                      }
                  }
              });

         }

        $("#btn_account_submit").click(function(){
           handleBilling('submit');
           return true;
        });

	 	$("input[name='differentbilling']").click(function(){


           if($(this).is(':checked'))
               {
                   $("#billing_CC").show();
               }
           else  $("#billing_CC").hide();

           handleBilling();

        });
	 	
	 	
	 	$("#f_state").blur(function(){
	 		addShipping();
	 	});
	 	
	 	
	 	function addShipping(){
            var tourMonths = 1;
            if($("#f_tourMonths").val()!=null) tourMonths = $("#f_tourMonths").val();
            var surchargeTotal = 4 * tourMonths;
	 		
                        var s = $("#f_state").val();
                        if(s==undefined) s = '';
	 		if((s.match(/ak/i) || s.match(/hi/i) || s.match(/pr/i) || s.match(/vi/i) || s.match(/as/i) || s.match(/fm/i) || s.match(/gu/i) || s.match(/mh/i) || s.match(/mp/i)) && addedShipping == false)
	 		{
                
	 			$("#totalSurcharge").text('$'+formatCurrency(surchargeTotal));
                if(tourMonths>1)$("#totalSurcharge").append('<div class="sub_msg">$'+formatCurrency(surchargeTotal)+'/shipment</div>');
                $("#surcharge").fadeIn();

	 			var total = formatCurrency(parseFloat($("#orderTotal").text()) + surchargeTotal);
	 			$("#orderTotal").text(total);
	 			$(".modifytotal").each(function(){
	 				$(this).html(formatCurrency(parseFloat($(this).html())+surchargeTotal));
	 			});
	 			$("#shippingTotal").val(formatCurrency(parseFloat($("#shippingTotal").val())+surchargeTotal));
	 			addedShipping = true;
	 		}
	 		else if (addedShipping == true && !(s.match(/ak/i) || s.match(/hi/i) || s.match(/pr/i) || s.match(/vi/i)))
	 		{
	 			$("#surcharge").fadeOut();
	 			var total = formatCurrency(parseFloat($("#orderTotal").text()) - surchargeTotal);
	 			$("#orderTotal").text(total);
	 			$(".modifytotal").each(function(){
	 				$(this).html(formatCurrency(parseFloat($(this).html())-surchargeTotal));
	 			});
	 			$("#shippingTotal").val(formatCurrency(parseFloat($("#shippingTotal").val())-surchargeTotal));
	 			addedShipping = false;	
	 		}
	 	}
	 	
	 	/*a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_firstName',
                                toggle:true
	 		},
	 		{
	 			field:'f_lastName',
                                toggle:true
	 		},
	 		{
	 			field:'f_address1',
                                toggle:true
	 		},
	 		{
	 			field:'f_city',
                                toggle:true
	 		},
	 		{
	 			field:'f_state',
                                toggle:true
	 		},
	 		{
	 			field:'f_zipcode',
                                toggle:true
	 		}),force:true
	 	});

                b = new easyForm({
                    array:Array(
	 		{
	 			field:'f_cardName',
                                toggle:true
	 		},
	 		{
	 			field:'f_cardNumber',
                                toggle:true
	 		},
	 		{
	 			field:'f_cvv',
                                toggle:true
	 		},
	 		{
	 			field:'f_month',
                                toggle:true
	 		},
	 		{
	 			field:'f_year',
                                toggle:true
	 		}),force:true})

                c = new easyForm({array:Array({
	 			field:'f_billingAddress',
                                toggle:true
	 		},
	 		{
	 			field:'f_billingCity',
                                toggle:true
	 		},
	 		{
	 			field:'f_billingState',
                                toggle:true
	 		},
	 		{
	 			field:'f_billingZipcode',
                                toggle:true}),force:true})


              login.set('a',a);
              login.set('b',b);
              login.set('c',c);
*/
	 }  


     function L_tour()
	 { 
         var c=null;
	 	 makeTooltip("input#f_state");
	 	 var addedShipping = false;
	 	 addShipping();


          function handleBilling(button)
         {
              $c = 0;
              $("input[name='differentbilling']").each(function(){
                  if($c==0)
                  {
                  if($(this).attr('checked')&&button!='submit')
                      {
                        $("#f_billingAddress").val('');
                        $("#f_billingCity").val('');
                    	$("#f_billingState").val('');
                    	$("#f_billingZipcode").val('');
                        $c++;
                         $("#billing_CC").removeClass('disabled');
                        runValidate('',false);
                      }
                  else if(!$(this).attr('checked'))
                      {
                        $("#f_billingAddress").val($("#f_address1").val());
                        $("#f_billingCity").val($("#f_city").val());
                        $("#f_billingState").val($("#f_state").val());
                        $("#f_billingZipcode").val($("#f_zipcode").val());
                         $("#billing_CC").addClass('disabled');
                        runValidate('',false);
                      }
                  }
              });

         }

        $("#btn_account_submit").click(function(){
           handleBilling('submit');
           var t = $("#orderTotal").html();
           $("#f_ordertotal").val(t);
           return true;
        });

	 	$("input[name='differentbilling']").click(function(){


           if($(this).is(':checked'))
               {
                   $("#billing_CC").show();
               }
           else  $("#billing_CC").hide();

           handleBilling();

        });


	 	$("#f_state").blur(function(){
	 		addShipping();
	 	});


	 	function addShipping(){
            var tourMonths = 1;
            if($("#f_tourMonths").val()!=null) tourMonths = $("#f_tourMonths").val();
            var surchargeTotal = 4 * tourMonths;
	 		var s = $("#f_state").val();
	 		if((s.match(/ak/i) || s.match(/hi/i) || s.match(/pr/i) || s.match(/vi/i) || s.match(/as/i) || s.match(/fm/i) || s.match(/gu/i) || s.match(/mh/i) || s.match(/mp/i)) && addedShipping == false)
	 		{

	 			$("#totalSurcharge").text('$'+formatCurrency(surchargeTotal));
                if(tourMonths>1)$("#totalSurcharge").append('<div class="sub_msg">$'+formatCurrency(surchargeTotal)+'/shipment</div>');
                $("#surcharge").fadeIn();

	 			var total = formatCurrency(parseFloat($("#orderTotal").text()) + surchargeTotal);
	 			$("#orderTotal").text(total);
	 			$(".modifytotal").each(function(){
	 				$(this).html(formatCurrency(parseFloat($(this).html())+surchargeTotal));
	 			});
	 			$("#shippingTotal").val(formatCurrency(parseFloat($("#shippingTotal").val())+surchargeTotal));
	 			addedShipping = true;
	 		}
	 		else if (addedShipping == true && !(s.match(/ak/i) || s.match(/hi/i) || s.match(/pr/i) || s.match(/vi/i)))
	 		{
	 			$("#surcharge").fadeOut();
	 			var total = formatCurrency(parseFloat($("#orderTotal").text()) - surchargeTotal);
	 			$("#orderTotal").text(total);
	 			$(".modifytotal").each(function(){
	 				$(this).html(formatCurrency(parseFloat($(this).html())-surchargeTotal));
	 			});
	 			$("#shippingTotal").val(formatCurrency(parseFloat($("#shippingTotal").val())-surchargeTotal));
	 			addedShipping = false;
	 		}
	 	}
/*
	 	a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_firstName',
                                toggle:true
	 		},
	 		{
	 			field:'f_lastName',
                                toggle:true
	 		},
	 		{
	 			field:'f_address1',
                                toggle:true
	 		},
	 		{
	 			field:'f_city',
                                toggle:true
	 		},
	 		{
	 			field:'f_state',
                                toggle:true
	 		},
	 		{
	 			field:'f_zipcode',
                                toggle:true
	 		}),force:true
	 	});

                b = new easyForm({
                    array:Array(
	 		{
	 			field:'f_cardName',
                                toggle:true
	 		},
	 		{
	 			field:'f_cardNumber',
                                toggle:true
	 		},
	 		{
	 			field:'f_cvv',
                                toggle:true
	 		},
	 		{
	 			field:'f_month',
                                toggle:true
	 		},
	 		{
	 			field:'f_year',
                                toggle:true
	 		}),force:true})

             c = new easyForm({array:Array({
	 			field:'f_billingAddress',
                                toggle:true
	 		},
	 		{
	 			field:'f_billingCity',
                                toggle:true
	 		},
	 		{
	 			field:'f_billingState',
                                toggle:true
	 		},
	 		{
	 			field:'f_billingZipcode',
                                toggle:true}),force:true})


              login.set('a',a);
              login.set('b',b);
              login.set('c',c)
*/
	 }

/*
     function L_ecert() //local (non ajax) form validation and functionality
	 {

	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_fromName'
	 		},
	 		{
	 			field:'f_fromEmail'
	 		},
	 		{
	 			field:'f_password'
	 		},
	 		{
	 			field:'f_toFirstName'
	 		},
            {
	 			field:'f_toLastName'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_zipcode'
	 		},
	 		{
	 			field:'f_cardName'
	 		},
	 		{
	 			field:'f_cardNumber'
	 		},
	 		{
	 			field:'f_cvv'
	 		})
	 	});
	 }
*/

      function L_guestcheckout() //local (non ajax) form validation and functionality
	 {

	 	 makeBasicOmnitip("input#f_state");
	 	 var addedShipping = false;
	 	 addShipping();

         $('input').keyup(function(){handleBilling();})

          function handleBilling()
         {
              $c = 0;
              $("input[name='differentbilling']").each(function(){

                 
                  if($c==0)
                  {
                  if($(this).attr('checked'))
                      {
                        $("#f_billingAddress").val('');
                        $("#f_billingCity").val('');
                    	$("#f_billingState").val('');
                    	$("#f_billingZipcode").val('');
                        $c++;
                        
                         $("#billing_CC").removeClass('disabled');
                        runValidate('',false);

                         /** these functions are in bj.guestcheckout.js*/
                         $("#f_billingZipcode").keyup(function(){
                               var value = $(this).val();
                              
                               if(value.length==1) setZipTimer();
                                  clearZipTimer();
                              })


                      }
                  else
                      {
                        $("#f_billingAddress").val($("#f_address1").val());
                        $("#f_billingCity").val($("#f_city").val());
                        $("#f_billingState").val($("#f_state").val());
                        $("#f_billingZipcode").val($("#f_zipcode").val());
                         $("#billing_CC").addClass('disabled');
                        runValidate('',false);
                      }
                  }
              });
            
         }

        $("input[name='payment']").click(function(){
           handleBilling();
           var $this = $(this);

           $("input[name='payment']").each(function(){
               if($(this).attr('id')!=$this.attr('id') && $(this).is(':visible'))
                   {
                       var v = $(this).attr('value');
                       $("#pay_"+v).hide();
                   }
           });

           var val = $(this).val();
           $("#pay_"+val).show();
        });


        $("input[name='differentbilling']").click(function(){

            var html = '';
            var parent = $(this).parents('div.payment');
           if($(this).is(':checked'))
               {
                   $("div.billing").each(function(){  //get the billing fields wherever they currently are
                       var currHTML = $(this).html();
                       currHTML = currHTML.replace(/\s/gi,'');
                       if(currHTML.length > 10) html = $(this).html();
                       $(this).empty();
                   });
                 //  console.log(html)
                   
                   var child =  parent.children('div.billing');
                  child.html(html).show();
              //    validateBilling();
               $("#billing_CC :input").each(function(){
                   $(this).removeClass('disabled');
               });
              runValidate('#billing_CC',false);
               }
             else  {
                 parent.children('div.billing').hide();
                 $("#billing_CC :input").each(function(){
              var c = $(this).attr('class');
              if(c.match(/disabled/) == null) $(this).addClass('disabled');
              runValidate('#billing_CC', false);
          });
             }

               handleBilling();

        });


	 	$("#f_state").blur(function(){
	 		addShipping();
	 	});


	 	function addShipping(){
	 		var s = $("#f_state").val();
            var surcharge = 4;
            var weight = $("input[name='weight']").val();
            if (parseInt(weight)>160) surcharge = 8;
	 		if((s.match(/ak/i) || s.match(/hi/i) || s.match(/pr/i) || s.match(/vi/i) || s.match(/as/i) || s.match(/fm/i) || s.match(/gu/i) || s.match(/mh/i) || s.match(/mp/i)) && addedShipping == false)
	 		{

	 			$("#surcharge").fadeIn();
	 			var total = formatCurrency(parseFloat($("#orderTotal").text()) + surcharge);
	 			$("#orderTotal").text(total);
	 			$(".modifytotal").each(function(){
	 				$(this).html(formatCurrency(parseFloat($(this).html())+surcharge));
	 			});
	 			$("#shippingTotal").val(formatCurrency(parseFloat($("#shippingTotal").val())+surcharge));
	 			addedShipping = true;
	 		}
	 		else if (addedShipping == true && !(s.match(/ak/i) || s.match(/hi/i) || s.match(/pr/i) || s.match(/vi/i) || s.match(/as/i) || s.match(/fm/i) || s.match(/gu/i) || s.match(/mh/i) || s.match(/mp/i)))
	 		{
	 			$("#surcharge").fadeIn();
	 			var total = formatCurrency(parseFloat($("#orderTotal").text()) - surcharge);
	 			$("#orderTotal").text(total);
	 			$(".modifytotal").each(function(){
	 				$(this).html(formatCurrency(parseFloat($(this).html())-surcharge));
	 			});
	 			$("#shippingTotal").val(formatCurrency(parseFloat($("#shippingTotal").val())-surcharge));
	 			addedShipping = false;
	 		}
	 	}

        var removeArray = new Array('f_cardName', 'f_cardType', 'f_cardNumber', 'f_cvv', 'f_month','f_year','f_billingAddress','f_billingCity','f_billingState','f_billingZipcode');


        





        $("#ccpaypal").click(function(){
          $("#pay_CC ul.paycc :input,#billing_CC :input").each(function(){
              var c = $(this).attr('class');
              if(c.match(/disabled/) == null) $(this).addClass('disabled');
          })
             runValidate("#pay_CC ul.paycc :input,#billing_CC :input", false);
             return true;
        });

        $("#cccredit").click(function(){

             $("#pay_CC ul :input").removeClass('disabled');
             runValidate("#pay_CC ul.paycc :input", false);
             $("#ccredit").attr('checked','checked')
             return true;
        });

        

	 }

     function L_add_payment()
     {

         $("input[name='type']").click(function(){
           
           var $this = $(this);

           $("input[name='type']").each(function(){
               if($(this).attr('id')!=$this.attr('id') && $(this).is(':visible'))
                   {
                       var v = $(this).attr('value');
                       if(v='CC')
                           {
                                $(":input").addClass('disabled');

                                runValidate('',false);
                           }
                      
                       $("#pay_"+v).hide();
                       $(this).attr('checked','');
                   }
           });

           var val = $(this).val();
           $("#pay_"+val).show();
           if(val='CC')
                           {
                                $(":input").removeClass('disabled');

                                runValidate('',false);
                           }
        });


        function setBilling(el)
        {
             var html = '';
             var parent = $(el).parents('div.payment');
             if($(el).is(':checked'))
               {

                   $("div.billing").each(function(){  //get the billing fields wherever they currently are
                       var currHTML = $(this).html();
                       currHTML = currHTML.replace(/\s/gi,'');
                       if(currHTML.length > 10) html = $(this).html();

                       $(this).empty();
                   });

                  var child =  parent.find('div.billing');
                  child.html(html).show();
                  validateBilling();
               }
             else  parent.children('div.billing').hide();
        }

     }

	
	 /*
	 function R_delete_address(anchorID)
	 {
	 	$("#modalContainer h2").html('Delete '+ $("#passData_"+anchorID+" .c_nickName").html());
	 	
	 	var a = new easyForm({
	 		key:anchorID,
	 		ajax:true
	     });
	 
	 }
	 // WALLET
	 
	 
	 function R_delete_wallet(anchorID)
	 {
	 	$("#modalContainer h2").html('Delete '+ $("#passData_"+anchorID+" .c_creditCardName").html());
	 	
	 	var a = new easyForm({
	 		key:anchorID,
	 		ajax:true
	     });
	 
	 }
	 
	 function R_edit_wallet(anchorID)  //passed from anchor title of 'watch' anchors
	 {
	 	$("#modalContainer h2").html('Edit '+ $("#passData_"+anchorID+" .c_creditCardName").html());
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_creditCardName'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_postalCode'
	 		},
	 		{
	 			field:'f_expMonth'
	 		},
	 		{
	 			field:'f_expYear'
	 		}
	 		),
	 		key:anchorID,remotePath:'saveCreditCard.do'
	 	});
	
	 	a.passData();
	 	
	 }
	 
	  function L_edit_wallet(anchorID)  //passed from anchor title of 'watch' anchors
	 {
	 	
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_postalCode'
	 		},
	 		{
	 			field:'f_expMonth'
	 		},
	 		{
	 			field:'f_expYear'
	 		}
	 		)
	 	});
	 }

     function L_edit_check(anchorID)  //passed from anchor title of 'watch' anchors
	 {

	 	var a = new easyForm({
	 		array:Array(
            {
	 			field:'f_cardNumber'
	 		},
	 		{
	 			field:'f_accountType'
	 		},
	 		{
	 			field:'f_RDFIBankID'
	 		},
	 		{
	 			field:'f_name'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_postalCode'
	 		}
	 		)
	 	});
	 }
	 
	 
	 function L_add_cvv()
	 {
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_cvv'
	 		}
	 		)
	 	});	
	 }
	 
	   function L_add_wallet(options)  //passed from anchor title of 'watch' anchors
	 {
	 
	 	var validationArray = Array(
	 		{
	 			field:'f_creditCardName'
	 		},
	 		{
	 			field:'f_ccType'
	 		},
	 		{
	 			field:'f_cardNumber'
	 		},
	 		{
	 			field:'f_Name'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_postalCode'
	 		},
	 		{
	 			field:'f_expMonth'
	 		},
	 		{
	 			field:'f_expYear'
	 		}
	 		);
	 		
	 	
	 	if(options!=null && options.array!=null)
	 	{
	 			validationArray.push(
	 				{
	 					field:options.array.field
	 				});
	 		
	 	}
	 	
	 	var a = new easyForm({
	 		array:validationArray
	 	});
	 	
	 
	 	
	 }


      function L_add_check(options)  //passed from anchor title of 'watch' anchors
	 {

	 	var validationArray = Array(
	 		{
	 			field:'f_cardNumber'
	 		},
	 		{
	 			field:'f_accountType'
	 		},
	 		{
	 			field:'f_RDFIBankID'
	 		},
	 		{
	 			field:'f_name'
	 		},
	 		{
	 			field:'f_address1'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_postalCode'
	 		}
	 		);


	 	if(options!=null && options.array!=null)
	 	{
	 			validationArray.push(
	 				{
	 					field:options.array.field
	 				});

	 	}

	 	var a = new easyForm({
	 		array:validationArray
	 	});



	 }
	 
	 function L_contact_us(anchorID)  //passed from anchor title of 'watch' anchors
	 {
	 	
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_firstName'
	 		},
	 		{
	 			field:'f_lastName'
	 		},
	 		{
	 			field:'f_email'
	 		},
	 		{
	 			field:'f_phone'
	 		},
	 		{
	 			field:'f_contactType'
	 		},
	 		{
	 			field:'f_jcaptcha'
	 		}
	 		)
	 	});
	 }
	 
	 
	 // Club selections
	  function R_delete_selection(anchorID)
	 {
	 	$("#modalContainer h2").html('Delete '+ $("#passData_"+anchorID+" .c_productName").html());
	 	$("#f_recordId").val(anchorID);
	 	var a = new easyForm({
	 		key:anchorID,
	 		ajax:false
	     });
	     
	    
	     
	 
	 }
	 
	 
	 function R_open_cvv(anchorID)
	 {
	 	
	 }
	 
	 //Delivery schedule
	 
	 function L_change_frequency()
	 {
	 	var a = new easyForm({
	 		array:Array({
	 				field:'f_dateDelivery',
	 				required:'n'
	 			})
	 		});
	 }
	 
	 
	  /** support the troops **/
	 /*
	 function R_support_the_troops()
	 {
	 	return false;
	 }
	 
	 function R_learn_more_about_club()
	 {
	 	return false;
	 }
	 
	 function R_show_cvv()
	 {
	 	return false;
	 }
	 
	 
	 
	 function R_product_details(anchorID)
	 {
	 	var value = $("select.option_"+anchorID).val();
	 	var productID = $("select.option_"+anchorID).attr('rel');
	 	if(value==undefined)
	 	{
	 		$("input.radio_"+anchorID).each(function(){
	 			if($(this).attr('checked')) value = $(this).attr('value');
	 			productID = $(this).attr('rel');
	 		});	
	 	}
	 	
	 	var address = "showProductDetailClub.do?ShowSelectLink=false&catalogId=17&productId=" + productID+ "&lineItemId=" + anchorID + "&optionId=" + value;
		$.get(address, function(data){
 			$("#product_details_data").html(data);
		});
		
	 	
	 	return false;	
	 }
	 
	 
	 function L_testimonials(anchorID)  //passed from anchor title of 'watch' anchors
	 {
	 	
	 	var a = new easyForm({
	 		array:Array(
	 		{
	 			field:'f_firstName'
	 		},
	 		{
	 			field:'f_lastName'
	 		},
	 		{
	 			field:'f_city'
	 		},
	 		{
	 			field:'f_state'
	 		},
	 		{
	 			field:'f_comments'
	 		},
	 		{
	 			field:'f_occupation'
	 		}
	 		)
	 	});
	 }
	 
	 */
	



                          
