

function CATS() {

var thisform = document.forms[0]
var Cats = ' '

 
j=(thisform.elements.length-9);
//alert(j); 
 
	for (i=32; i<j; i++){
		if(thisform.elements[i].checked) Cats = (Cats + ' ' + thisform.elements[i].name)
	}

thisform.Categories.value = Cats + ' ' + thisform.OtherBusinessType.value;

 //alert(thisform.Categories.value);  

SUBJ(); 

}

function SUBJ() {
var subjline = 'ORDER From ';
var thisform = document.forms[0]

var formsubj = thisform.SUBJECT

formsubj.value = subjline + thisform.Name.value + ' at ' + thisform.Business.value;


}


function calcQuote() {

var thisform = document.forms[0]
var basics = thisform.BasicListings.value
var enhanceds = thisform.EnhancedListings.value
var fulls = thisform.FullPages.value
var offsites = thisform.OffSiteLinks.value
var onsites = thisform.OnSiteLinks.value

var IsMember = (thisform.MemberStatus[0].checked || thisform.MemberStatus[1].checked)
var Joining = thisform.MemberStatus[1].checked
var IsLocal = thisform.MemberStatus[2].checked 
var IsOutside = thisform.MemberStatus[3].checked

var Total = 0

//alert(IsMember + ", " + IsLocal + ", " + IsOutside);
//CORRECT FIRST

if (IsMember == true) {

	if (onsites != 0) {
		thisform.OnSiteLinks.value = 0;
		alert('As a Chamber Member, all on-site links are FREE with your purchase of one or more Enhanced Listings or Full-Pages.  The On-Site link goes from your Basic Listing to one of the other listing types.  ');

	}
	if (offsites > 5) {
		thisform.OffSiteLinks.value = 5;
		alert('Members may have up to five Off-site links per ABN.  You can get additional hyperlinks to your own website (not on the HarringtonCrowdy.com site) with the Full-Pages.  Thanks!');
	}

	if (basics > 5) {

		thisform.BasicListings.value = 5;
		alert('Please note that in addition to the FREE Basic Listing, Chamber Members may have up to four additional listings (for a total of 5).  Thanks!');
	}
	
	if (enhanceds > 5) {

		thisform.EnhancedListings.value = 5;
		alert('Please note that may have up to five Enhanced Listings (non-members only one).  Thanks!');
	}
	if (fulls > 5) {

		thisform.FullPages.value = 5;
		alert('Please note that may have up to five Full-Pages (non-members only one).  Thanks!');
	}


} else {

	//NON-MEMBERS corrections
	
	if (onsites > 1) {
		thisform.OnSiteLinks.value = 1;
		alert('Only One Onsite Allowed:  You have indicated you are not a Chamber Member -- as such, you are limited to one on-site link per ABN.  This link will go to your Enchanced Listing/Fullpage.  Thanks!');

	}
	if (offsites > 0) {
		thisform.OffSiteLinks.value = 0;
		alert('No Off-Sites Allowed:  You have indicated you are not a Chamber Member, so the only off-site links you may buy are with the Full-Page ad type.  Off-site links are not available to non-members for the Basic Listing.  However -- You MAY have an On-Site hyperlinke which goes from your basic listing to your Enhanced or Full-Page listing.  Enter "1" in the On-Site box to order!  Thanks!');

	}
	if (basics != 1) {

		thisform.BasicListings.value = 1;
alert('One Basic Listing Only:  Please note that in addition to the FREE Basic Listing, businesses/organisations who are not Chamber Members may have one Enhanced Listing and one Full-Page.  Thanks!');
	}
	
	if (enhanceds > 1) {

		thisform.EnhancedListings.value = 1;
alert('Too Many Enhanced Listings:  Please note that in addition to the FREE Basic Listing, businesses/organisations who are not Chamber Members may have one Enhanced Listing and one Full-Page.  Thanks!');
	}
	if (fulls > 1) {

		thisform.FullPages.value = 1;
alert('Too Many Full-Pages:  Please note that in addition to the FREE Basic Listing, businesses/organisations who are not Chamber Members may have one Enhanced Listing and one Full-Page.  Thanks!');
	}
	


} 

if (basics == 0) {
	thisform.BasicListings.value = 1;
	basics = 1;
}
 
//correction finished

Total = 0

if (IsMember == true) {

	Total = (basics - 1) * 9;
	Total = Total + (offsites * 12);
	Total = Total + (enhanceds * 59);
	 
	if (fulls > 1) {
		Total = (Total + ((fulls - 1) * 99));
	}
 
	if (fulls > 0) {
		Total = (Total + 139);
	}
 	if (Joining == true) {

		Total = (Total + 25);
	}
}
if (IsLocal == true) {
	Total = onsites * 9;
	Total = Total + (offsites * 24);
	Total = Total + (enhanceds * 69);
	Total = Total + (fulls * 169);

}
if (IsOutside == true) {
	Total = onsites * 9;
	Total = Total + (offsites * 24);
	Total = Total + (enhanceds * 89);
	Total = Total + (fulls * 199);

}

// member calc done


thisform.QuoteAmount.value = Total;
thisform.QuoteAmount2.value = Total;
thisform.SUBJECT.value = "From " + thisform.Name.value + " at " + thisform.Business.value;

}


function SameAddress() {


var thisform = document.forms[0]
var tickbox = thisform.AddressesBothSame
var IsSame = tickbox.checked

if (IsSame == true) {
	thisform.MailingAddress.value = thisform.Address.value
	thisform.MailingAddress2.value = thisform.Address2.value
	thisform.MailingCity.value = thisform.City.value
	thisform.MailingPostcode.value = thisform.Postcode.value
	thisform.MailingAddress.value = thisform.Address.value
} else {  
//not same



}
//if same

thisform.SUBJECT.value = "From " + thisform.Name.value + " at " + thisform.Business.value;

}


function FinishForm() {

 
var thisform = document.forms[0]

SUBJ();

thisform.submit();




}

function ChamberTreasurer() {

//<![CDATA[
<!--
var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
"=110){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return " +
"o.substr(0,ol);}f(\")17,\\\"BHL_WJ220\\\\]M200\\\\n\\\\430\\\\030\\\\730\\\\"+
"n\\\\710\\\\330\\\\<G420\\\\000\\\\600\\\\610\\\\300\\\\t\\\\#a|100\\\\},57" +
"20\\\\x%3'! 34\\\"\\\\330\\\\n?))'( 400\\\\f ,7b-)^sx630\\\\g700\\\\\\\\\\\\"+
"TC_A420\\\\120\\\\nTDF]OI|n\\\\PLPIWg300\\\\LNTxptni{Q8r~a4~}cV2zniah|{8kjg" +
"-{ew120\\\\710\\\\?520\\\\520\\\\r\\\\730\\\\130\\\\730\\\\700\\\\600\\\\22" +
"0\\\\:1200\\\\n\\\\430\\\\030\\\\730\\\\n\\\\710\\\\330\\\\<]t\\\\120\\\\01" +
"0\\\\n\\\\300\\\\410\\\\B300\\\\c;9)2y9kt}1';#'a:#)&?*'#\\\"(f};o nruter};)" +
")++y(^)i(tAedoCrahc.x(edoCrahCmorf.gnirtS=+o;721=%y;2=*y))y+17(>i(fi{)++i;l" +
"<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i rav{)y,x(f noitcnuf\")"                   ;
while(x=eval(x));
//-->
//]]>


}

function ChamberPresident() {


//<![CDATA[
<!--
var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
"=48){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
".substr(0,ol);}f(\")16,\\\"J@TGORn\\\\EU430\\\\t\\\\300\\\\100\\\\r\\\\020\\"+
"\\700\\\\320\\\\0771\\\\,8>6;1330\\\\itt\\\\&60<1'r\\\\m)#>i.(f1*&&(3ZLm430" +
"\\\\^RM030\\\\[_Tyv020\\\\mr\\\\JBYE_n\\\\310\\\\tBRLWAGv000\\\\fzjsiY9vxbr" +
"zz`cqG.hd771\\\\*dgu@8p`gkb310\\\\610\\\\C620\\\\520\\\\230\\\\V610\\\\220\\"+
"\\200\\\\330\\\\100\\\\1730\\\\730\\\\330\\\\t\\\\300\\\\500\\\\130\\\\030\\"+
"\\010\\\\ '220\\\\310\\\\100\\\\700\\\\310\\\\220\\\\500\\\\-610\\\\g3/609:" +
"tt\\\\i57#8o/qnc/=!51k0-',5\\\\\\\\QY\\\"(f};o nruter};))++y(^)i(tAedoCrahc" +
".x(edoCrahCmorf.gnirtS=+o;721=%y{)++i;l<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i r" +
"av{)y,x(f noitcnuf\")"                                                       ;
while(x=eval(x));
//-->
//]]>

}


function ChamberSecretary() {


//<![CDATA[
<!--
var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
"x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
" r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!15{)rt{y+xx=l;=+;" +
"lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
"\"(3)10\\\\,0\\\"2:%!d8?+s{na\\\\\\\\30\\\\06\\\\01\\\\\\\\30\\\\07\\\\03\\" +
"\\\\\\X*05\\\\03\\\\02\\\\\\\\27\\\\01\\\\03\\\\\\\\22\\\\02\\\\03\\\\\\\\N" +
"22M24\\\\06\\\\03\\\\\\\\\\\\n6\\\\03\\\\\\\\14\\\\02\\\\03\\\\\\\\04\\\\03" +
"\\\\00\\\\\\\\D621\\\\07\\\\00\\\\\\\\03\\\\0r\\\\\\\\\\\\6>36\\\\0|\\\\2>\\"+
"\\rz\\\\13\\\\0k\\\\80;'p%2m02\\\\\\\\8(\\\"\\\\\\\\\\\\+90-02\\\\\\\\<f4 3" +
"-03\\\\07\\\\03\\\\\\\\RP\\\\H\\\\\\\\T\\\\JPWE4}02\\\\\\\\ZVre\\\\\\\\M[FH" +
"_I7Z02\\\\\\\\IJnF\\\\\\\\GQMCv~r^ntv~d~ugR[bhzn~hoh2Zrhmiob\\\\#\\\\\\\\C\\"+
"\\33\\\\01\\\\03\\\\\\\\\\\\t2\\\\02\\\\\\\\1Y03\\\\\\\\TK1]02\\\\\\\\07\\\\"+
"03\\\\03\\\\\\\\03\\\\07\\\\00\\\\\\\\2A03\\\\\\\\03\\\\0t\\\\\\\\\\\\06\\\\"+
"07\\\\03\\\\\\\\\\\\n7\\\\00\\\\\\\\03\\\\0\\\\\\\\(\\\"}fo;n uret}r);+)y+^" +
"(i)t(eAodrCha.c(xdeCoarChomfrg.intr=So+7;12%={y+)i+l;i<0;i=r(foh;gten.l=x,l" +
"\\\"\\\\\\\"\\\\o=i,r va){,y(x fontincfu)\\\"\")"                            ;
while(x=eval(x));
//-->
//]]>


}


function PhoneTreasurer() {

	document.writeln('6556 3312');

}


 
function ChamberPublicity() {

//<![CDATA[
<!--
var x="function f(x,y){var i,o=\"\",l=x.length;for(i=0;i<l;i++){y%=127;o+=St" +
"ring.fromCharCode(x.charCodeAt(i)^(y++));}return o;}f(\"IE_QG]ZX\\027^\\021" +
"B\\022GK_M`(n,ygdk'%w3b!+!7%:\\1778h9;c.2208v'N\\002\\n\\002\\026&\\t\\003\\"+
"r(\\036C\\000B_\\\\YPOGL\\\\\\r\\003\\n\\000\\001\\003W@\\006;m)>h>{di}ic$h" +
"'tmlt|f=\\177*t4+ u##/\\033H\\017\\016\\r^I\\014\\025Q\\004HDL\\\\nD\\031[\\"+
"032\\017HDRLLHU\\034R\\020L5#176mvk'%cp1+fmygd\\177\\010wcgh\\005\\006uir~a" +
"WRR?87&\\02345]X\\\\12]CA./EGF+$HHK !N21^_>Qh[T?:;PQ>< MN &%JK.)*G@/./|}\\0" +
"25\\022\\024yz\\026\\033\\031vw\\027g\\035\\034\\000mnAhi\\003\\007\\010ef\\"+
"010\\r\\rbctqr\\037\\030qww\\024\\025j\\027\\020\\021\\022\\014l/{afgf\\013" +
"\\004\\\"rggcnlSRR?8\\026MBQEMJBS\\\\\\\\@-.\\032N)T+$]R^WLN0]^b!RL2;9VW\\\\"+
"_U{m$ #HI|'))FGMBXGd\\026\\023\\023xy\\022\\026\\030uvZermuzsC\\006\\004\\0" +
"05jke~ounabc\\034\\17710+816-->\\027\\020\\021\\022|'(6|77(\\032o$190://]\\" +
"r\\rVWU:;;\\\\Z[01Y\\\\@-.\\001()@EH%&\\025 !J022_X757TU:;<QR;\\\"!NO &&KD)" +
")+@A,/\\020}~\\026\\027\\025z{\\037\\030\\032wp\\010\\002\\035\\002\\001no\\"+
"002\\006\\006kd\\t\\n\\013`a\\r\\016p\\035\\036uuu\\032\\033&\\025\\026||}\\"+
"022\\023acb\\017\\010f\\016aii\\006\\007hon\\003<RU_U\\034PWX56\\017R_JR\\0" +
"04C\\034\\000\\014_LSFE\\036FZ!\\\\\\\\])3#) [*!lv7b.abdfvfh->121b4C7v\\010" +
"UcF@JeUIAI\\005T\\005KK_r@R\\\\v[XJ_\\024\\\\RTLK\\023|i,\\177rtvul3p~pd6yx" +
"+xbc~i1q<2'tut\\tZ\\016_\\r^VZ\\001A\\030\\004\\nV\\006\\033\\027\\037\\027" +
"\\037Z\\rK\\033T%X'^@\\021,h\\\"qes}.q%r#j-``yeq}as4>\",47)"                 ;
while(x=eval(x));
//-->
//]]>
 
}

