<
function click_7baba92df873698be271283f6bef910c( aform_reference ) {
var aform = aform_reference;
aform[‘amount’].value = Math.round( aform[‘amount’].value*Math.pow( 10,2 ) )/Math.pow( 10,2 );
aform[‘custom_amount’].value = aform[‘custom_amount’].value.replace( /^\s+|\s+$/g,”” );
if( !aform[‘custom_amount’].value || 0 === aform[‘custom_amount’].value.length || /^\s*$/.test( aform[‘custom_amount’].value ) ) {
alert ( ‘An amount is required’ );
return false;
}
aform[‘amount’].value = Math.round( aform[‘custom_amount’].value*Math.pow( 10,2 ) )/Math.pow( 10,2 );
aform[‘custom_quantity’].value = aform[‘custom_quantity’].value.replace( /^\s+|\s+$/g,”” );
if( !aform[‘custom_quantity’].value || 0 === aform[‘custom_quantity’].value.length || /^\s*$/.test( aform[‘custom_quantity’].value ) ) {
alert ( ‘A quantity is required’ );
return false;
}
for( i=0; i
>