The details – Circular Quay, November 11, 2008
Total: $
var compulsaryInputs={
'e_first_name':1,
'e_last_name':1
// 'e_email':1,
// 'e_street':1,
// 'e_suburb':1,
// 'e_state':1,
// 'e_postcode':1,
//'e_work_voice':1
};
function CalcTotal() {
var amt=0;
var order_items='';
for(i=1; i<50; i++) {
var regotype=document.the_form['regotype'+i];
var people=document.the_form['people'+i];
if(regotype==undefined || people==undefined || !regotype.checked) { continue; }
var v;
if(!people.value) { v=1; }
else { v=parseInt(people.value); }
var regovalues=regotype.value.split(",");
if(regovalues.length>1 && people.value>1) {
// couple
amt+=parseInt(regovalues[1])*(v/2);
} else {
amt+=parseInt(regovalues[0])*v;
}
order_items+=document.the_form['regoname'+i].value+"="+v+"("+regotype.value+"),";
}
var donation=0;
document.the_form.e_donation[document.the_form.e_donation.length-1].value=document.the_form.e_donation_other.value;
for(i=0; i0) {
alert('Please fill in the missing details');
return;
}
// if(CompulsaryCheckRadio('e_expertise')==0 && f.e_other_expertise.value.trim()=="") {
// alert('Must select an occupation');
// return;
// }
// if(f.e_first_name.value == "" || f.e_last_name.value == "") {
// alert("Must fill in your name");
// }else
//if(!f.terms[0].checked ) {
// alert("Must agree with terms and conditions");
//}else
if(r.amt==0) {
alert("Must register for an event");
}else {
document.the_form.submit();
}
}
function TickRegoBox(inp) {
if(inp.value>0) {
var num=inp.name.substring(6);
document.the_form['regotype'+num].checked=true;
}
CalcTotal();
}
function CheckPutOne(inp) {
if(inp.checked) {
var num=inp.name.substring(8);
var people=document.the_form['people'+num].value;
if(people==0) { document.the_form['people'+num].value="1"; }
}
}
Securely via Paymate.
|