/*
    $(document).ready(function(){

        //Hide div w/id extra
       $("#extra").css("display","none");
        // Add onclick handler to checkbox w/id checkme

       $("#agree").click(function(){

        // If checked
        if ($("#agree").is(":checked")){
            $("#extra").show("fast");
        }
        else{
            $("#extra").hide("fast");
        }
      });

    });
    */



$(function () {
   $('#send_to_company').click(function () {
   	   company();
   });

   $('#delivery_address').click(function () {
   	   delivery();
   });
});


   function company() {
   	  if ($('#send_to_company:checked').length) {
   	    $('#company_data').show();
   	   }
      else {
   	    $('#company_data').hide();
   	   }
   }

   function delivery() {
   	   if ($('#delivery_address:checked').length) {
   	       	$('#delivery_data').show();
   	   } else {
   	       	$('#delivery_data').hide();
   	   }
   }


   $(function () {
       company();
       delivery();
   })
