function joinFields( ){
// are the checkboxes checked? 
if (document.fmBuy.custom1.checked == 0 ) {document.fmBuy.custom1.value="";}
else {document.fmBuy.custom1.value = document.fmBuy.custom1.value + ",";}

if (document.fmBuy.custom2.checked == 0 ) {document.fmBuy.custom2.value="";}
else {document.fmBuy.custom2.value = document.fmBuy.custom2.value + ",";}

if (document.fmBuy.custom3.checked == 0 ) {document.fmBuy.custom3.value="";}
else {document.fmBuy.custom3.value = document.fmBuy.custom3.value + ",";}

if (document.fmBuy.custom4.checked == 0 ) {document.fmBuy.custom4.value="";}
else {document.fmBuy.custom4.value = document.fmBuy.custom4.value + ",";}

// Combine the values
document.fmBuy.os0.value = document.fmBuy.custom1.value + document.fmBuy.custom2.value + document.fmBuy.custom3.value + document.fmBuy.custom4.value;
}


function joinFields1(){
// are the checkboxes checked? 
if (document.fmBuy1.custom1.checked == 0 ) {document.fmBuy1.custom1.value="";	}
else {document.fmBuy1.custom1.value = document.fmBuy1.custom1.value + ",";
}

if (document.fmBuy1.custom2.checked == 0 ) {document.fmBuy1.custom2.value="";}
else {document.fmBuy1.custom2.value = document.fmBuy1.custom2.value + ",";}

if (document.fmBuy1.custom3.checked == 0 ) {document.fmBuy1.custom3.value="";}
else {document.fmBuy1.custom3.value = document.fmBuy1.custom3.value + ",";}

if (document.fmBuy1.custom4.checked == 0 ) {document.fmBuy1.custom4.value="";}
else {document.fmBuy1.custom4.value = document.fmBuy1.custom4.value + ",";}

// Combine the values
document.fmBuy1.item_name.value = "Donation to " + document.fmBuy1.custom1.value + document.fmBuy1.custom2.value + document.fmBuy1.custom3.value + document.fmBuy1.custom4.value;

}
}

