<script language="JavaScript" type="text/javascript"> function click_b41bf57911c9c17b791e194f0fd1ad1e( aform_reference ) { var aform = aform_reference; aform['amount'].value = Math.round( aform['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<aform.elements.length; i++ ) if( aform.elements[i].className == 'shipping' ) aform.elements[i].value = aform.elements[i].value.replace( /^\s+|\s+$/g,"" ); var cont = true; for( i=0; i<aform.elements.length; i++ ) { if( aform.elements[i].className != 'shipping' ) continue; if( aform.elements[i].name == 'line2' ) continue; if( ! cont ) continue; if( aform.elements[i].name == 'country' ) { if( aform.elements[i].selectedIndex == 0 ) { cont = false; alert ( 'Select a country' ); } } else { if( 0 === aform.elements[i].value.length || /^\s*$/.test( aform.elements[i].value ) ) { cont = false; alert ( 'Complete all the mandatory address fields' ); } } } if( ! cont ) return cont;aform['amount'].value *= parseInt( aform['custom_quantity'].value ); var shipping_info = ''; for( i=0; i<aform.elements.length; i++ ) if( aform.elements[i].className == 'shipping' ) shipping_info+=' '+aform.elements[i].name+' ['+aform.elements[i].value+']'; aform['item_description'].value+= ' Shipping Information '+shipping_info } </script>
* Quantity | |
Shipping Address | |
* Line 1 | |
Line 2 | |
* City | |
* Province | |
* Country | – Select – South Africa ———————— Botswana Lesotho Mauritius Mozambique Swaziland Zimbabwe |
* Postal Code | |