function checkolr()	{
missingdata = "";

	if (document.form.surname.value == "")
	  {missingdata += "\n       Missing - Family Name";}
	
	if (document.form.suburb.value == "")
      {missingdata += "\n       Missing - Suburb";}
	 
    if (document.form.telephone.value == "")
      {missingdata += "\n       Missing - Telephone";}
	  
	if ((document.form.email.value == "") ||
	 		(document.form.email.value.indexValue('@') == -1) ||
	 		(document.form.email.value.indexValue('.') == -1)) 
      {missingdata += "\n       Missing/incorrect - email address";}
	  
	if (missingdata != "" ) 
	         {missingdata = "-------------------------------------------------------------------------------\n\n" +
			"Errors occurred in completing the application form \n" +
			missingdata + "\n\n-------------------------------------------------------------------------------" +
			"\n\nPlease correct where necessary and resubmit";
			alert (missingdata); return false;}
	else return true;}

function calc_vel (form) {
// Check the input for good values
        if ( isNaN(form.first.value) || isNaN(form.subs.value)) {
                alert('The entered amount\''+ form.first.value + 
                       '\' is not valid. To complete the calculation, ' +
                       'the height must be a number greater than 0.');
                form.result.value = '';
        } else {
        
// Set prices first
                var aPrice = 175;
                var sPrice = 125;
                var giftPack = 30;
                var myUnits = 'meters';


// Calculate prices and put results in display field  
                var finalPrice = parseInt((aPrice) + (form.subs.value  * sPrice));
                form.result.value = '$' + finalPrice;
				}

// return FALSE value so form does not call CGI 
        return false;
}
