// JavaScript Document

function write_contactanchor( thispage, position )
{
// save all that lengthy code
document.write( '<a href=' + thispage.filename 				// page, file name
			   + '?maintab=' + position.tab 				// the tab number of the person/position
			   + ' title="open ' + thispage.pagename 		// page title/name
			   + ' page & contact ' + position.forename 	// person's forename
			   +'">' + position.title + '</a>' );			// position title
}

function individual_cost( month )
{
var a = ( membership.individual_annual / 12 ) * month;
// a = Math.round(a*100)/100;
a = a.toFixed(2);
return a;
}

function plus_spouse_cost( month )
{
var b = ( membership.individual_spouse_annual / 12 ) * month;
// b = Math.round(b*100)/100;
b = b.toFixed(2);
return b;
}

function family_cost( month )
{
var c = ( membership.family_annual / 12 ) * month;
// c = Math.round(c*100)/100;
c = c.toFixed(2);
return c;
}

function pensioner_cost( month )
{
var d = ( membership.pensioner_annual / 12 ) * month;
// d = Math.round(d*100)/100;
d = d.toFixed(2);
return d;
}

function pensioner_spouse_cost( month )
{
var e = ( membership.pensioner_spouse_annual / 12 ) * month;
// e = Math.round(e*100)/100;
return e.toFixed(2);
}