function validateform2 ( )
{
       if ( document.bcomemberform.Terms.checked == false )
        {
                alert ( "Please read and accept the above terms and conditions by checking the box" );
								bcomemberform.Terms.focus(); 
								bcomemberform.Terms.select();	
                return false;
        }

        return true;
} 


function validateform ( )
{
        if ( document.bcomemberform.FirstName.value.length == 0 )
        {
                alert ( "Please fill in your First Name" );
                bcomemberform.FirstName.focus(); 
								bcomemberform.FirstName.select();	
                return false;
        }

        if ( document.bcomemberform.Surname.value.length == 0 )
        {
                alert ( "Please fill in your Surname" );
								bcomemberform.Surname.focus(); 
								bcomemberform.Surname.select();	
                return false;
        }

        if ( document.bcomemberform.CompanyName.value.length == 0 )
        {
                alert ( "Please fill in your Company" );
				        bcomemberform.CompanyName.focus(); 
								bcomemberform.CompanyName.select();	
                return false;
        }

				if ( document.bcomemberform.Address1.value.length == 0 )
        {
                alert ( "Please fill in the first line of your Address" );
                bcomemberform.Address1.focus();
								bcomemberform.Address1.select();	
                return false;
        }
	
				if ( document.bcomemberform.Town.value.length == 0 )
        {
                alert ( "Please fill in your Town" );
								bcomemberform.Town.focus(); 
								bcomemberform.Town.select();	
                return false;
        }			

				if ( document.bcomemberform.PostCode.value.length == 0 )
        {
                alert ( "Please fill in your Postcode" );
								bcomemberform.PostCode.focus(); 
								bcomemberform.PostCode.select();	
                return false;
        }
				
        if ( document.bcomemberform.ContactNumber.value.length == 0 )
        {
                alert ( "Please fill in your Telephone Number" );
								bcomemberform.ContactNumber.focus(); 
								bcomemberform.ContactNumber.select();	
                return false;
        }

        if ( document.bcomemberform.CustomerEMail.value.length == 0 )
        {
                alert ( "Please fill in your Email Address" );
								bcomemberform.CustomerEMail.focus(); 
								bcomemberform.CustomerEMail.select();	
                return false;
        }

        return true;
} 


/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jim Stiles | www.jdstiles.com */

IFC=1016.38
IBC=1016.38
BW=434.75
AC=211.50
COL=869.50

function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  one = document.bcomemberform.qtyIFC.value;
	IFCtotal = (one * IFC); 
 	document.bcomemberform.totalIFC.value = IFCtotal.toFixed(2);
	
	two = document.bcomemberform.qtyIBC.value; 
	IBCtotal = (two * IBC);
 	document.bcomemberform.totalIBC.value = IBCtotal.toFixed(2);
	
	three = document.bcomemberform.qtyBW.value;
	BWtotal = (three * BW);
	document.bcomemberform.totalBW.value = BWtotal.toFixed(2);
	
  four = document.bcomemberform.qtyAC.value;
	ACtotal = (four * AC); 
 	document.bcomemberform.totalAC.value = ACtotal.toFixed(2);
	
	five = document.bcomemberform.qtyCOL.value;
	COLtotal = (five * COL); 
 	document.bcomemberform.totalCOL.value = COLtotal.toFixed(2);

	
	subtotal = ((one * IFC) + (two * IBC) + (three * BW)+(four * AC) + (five * COL));
//	vat = subtotal * 17.5/100;
	total = subtotal * 50/100; //+ vat;
//	surcharge = total* 4 /100;
	gtotal = total; //+ surcharge;
	document.bcomemberform.Subtotal.value = subtotal.toFixed(2);
//	document.bcomemberform.Vat.value = vat.toFixed(2);
	document.bcomemberform.Amount.value = gtotal.toFixed(2);

}

function stopCalc(){
  clearInterval(interval);
}

//
