// JavaScript Document

/*Advocacy Letters
Don't use semi-colons at the end of each line for document.write; it seriously screws it up*/
/*I can't remember why i said that... must be pre-IE7*/

/*Switch Statements will not work the iphone*/

//Links
//MP letters are all pretty much the same. Separate into sections if some contain specific letters
function mp(){
	document.write('<p><em>Federal Issues</em></p>');
	document.write('<ul>');
	document.write('<li><b><script>topics(\'billOfRights\')</script></b></li>');
	document.write('<li><b><script>topics(\'increasedPassengerSafety\')</script></b></li>');
	document.write('</ul>');
	document.write('<p><em>QLD State Issues </em></p>');
	document.write('<ul>');
	document.write('<li><b><script>topics(\'sustainability\')</script></b></li>');
	/*document.write('<li><b><script>topics(\'pamdaSimplification\')</script></b></li>');*/
	document.write('<li><b><script>topics(\'censorshipOfLawyers\')</script></b></li>');
	document.write('<li><b><script>topics(\'reformcivilliability\')</script></b></li>');
	document.write('<li><b><script>topics(\'insuranceClaimsPractices\')</script></b></li>');
	/*document.write('<li><b><script>topics(\'sharkWarningSigns\')</script></b></li>');*/
	document.write('</ul>');
}
function editors() {
	document.write('<p><em>Issues</em></p>')
	document.write('<ul>')
	/*document.write('<li><b><script>topics(\'truckieharassment\')</script></b></li>')*/
	/*document.write('<li><b><script>topics(\'pamdaSimplification2\')</script></b></li>');*/
	document.write('<li><b><script>topics(\'planning\')</script></b></li>')
	document.write('<li><b><script>topics(\'censorshipOfLawyers\')</script></b></li>')
	document.write('<li><b><script>topics(\'bringAirPassenger\')</script></b></li>')
	/*document.write('<li><b><script>topics(\'sharkWarningSigns\')</script></b></li>')*/
	document.write('</ul>')
}
function transportMinister() {
	document.write('<p><em>Issues</em></p>');
	document.write('<ul>')
	document.write('<li><b><script>topics(\'increasedPassengerSafety\')</script></b></li>')
	document.write('<li><b><script>topics(\'bringAirPassenger\')</script></b></li>')
	document.write('</ul>')
}
function transportMinisterQLD() {
	document.write('<p><em>Issues</em></p>');
	document.write('<ul>')
	document.write('<li><b><script>topics(\'truckieharassment\')</script></b></li>')
	document.write('</ul>')
}
function tourismMinister() {
	document.write('<p><em>Issues</em></p>');
	document.write('<ul>')
	document.write('<li><b><script>topics(\'pamdaSimplification\')</script></b></li>')
	document.write('</ul>')
}
function lordMayor() {
	document.write('<p><em>Issues</em></p>');
	document.write('<ul>')
	document.write('<li><b><script>topics(\'westEndMarkets\')</script></b></li>');
	document.write('</ul>')
}
function adl() {
	document.write('<p><em>Issues</em></p>')
	document.write('<ul>')
	document.write('<li><b><script>topics(\'pamdaSimplification3\')</script></b></li>');
	document.write('</ul>')
}
function infrastructureMinister() {
	document.write('<p><em>Issues</em></p>');
	document.write('<ul>')
	document.write('<li><b><script>topics(\'sustainability\')</script></b></li>')
	document.write('</ul>')
}
function planning() {
	document.write('<p><em>Issues</em></p>');
	document.write('<ul>')
	document.write('<li><b><script>topics(\'planning\')</script></b></li>')
	document.write('</ul>')
}	

//Topics
function topics(n) {
if (n=="billOfRights") {
		document.write('<a href="javascript:letters(\'billOfRights\');">&raquo; A Bill of Rights for Australia</a>')
} else if (n=="increasedPassengerSafety") {
		document.write('<a href="javascript:letters(\'increasedPassengerSafety\');">&raquo; Increased Passenger Safety at Rural & Regional Airports</a>')
} else if (n=="bringAirPassenger") {
		document.write('<a href="javascript:letters(\'bringAirPassenger\');">&raquo; Bring Air Passenger Accident Compensation up to International Levels</a>')
} else if (n=="censorshipOfLawyers") {
		document.write('<a href="javascript:letters(\'censorshipOfLawyers\');">&raquo; Government Censorship of Lawyers over Accident Compensation</a>');
} else if (n=="accessToJustice") {
		document.write('<a href="javascript:letters(\'accessToJustice\');">&raquo; Access to Justice</a>')
} else if (n=="insuranceClaimsPractices") {
		document.write('<a href="javascript:letters(\'insuranceClaimsPractices\');">&raquo; Insurance Claims Practices</a>')
} else if (n=="sharkWarningSigns") {
		document.write('<a href="javascript:letters(\'sharkWarningSigns\');">&raquo; Shark warning signs at known places of risk?</a>')
} else if (n=="pamdaSimplification") {
		document.write('<a href="javascript:letters(\'pamdaSimplification\');">&raquo; Simplification of PAMDA Forms and Requirements</a>')
} else if (n=="pamdaSimplification2") {
		document.write('<a href="javascript:letters(\'pamdaSimplification2\');">&raquo; Buyers and sellers risk millions due real estate form uncertainty</a>')
} else if (n=="pamdaSimplification3") {
		document.write('<a href="javascript:letters(\'pamdaSimplification3\');">&raquo; Simplification of PAMDA Forms and Requirements</a>')
} else if (n=="truckieharassment"){
		document.write('<a href="javascript:letters(\'truckieharassment\');">&raquo; Stop Truckie Harassment by Police</a>')
}	else if (n=="sustainability"){
		document.write('<a href="javascript:letters(\'sustainability\');">&raquo; Sustainability declaration adds costs to real estate sales</a>')
} else if (n=="planning") {
	document.write('<a href="javascript:letters(\'planning\');">&raquo; Neighbourhood Planning - High density in Brisbane suburbs</a>')
} else if (n=="reformcivilliability") {
	document.write('<a href="javascript:letters(\'reformcivilliability\');">&raquo; Reform civil liability laws</a>')
}
}
//Letters
function letters(m) {
if (m=="billOfRights") {
		document.getElementById("Subject").value='A Bill of Rights for Australia'
		document.getElementById("Letter").value='A Bill of Rights for Australia\n\n'
		+'I urge the adoption of a Bill of Rights to protect institutions and processes that Australians consider fair and reasonable.\n\n'
		+'Australia is the only developed nation not to have the rights of its citizens protected in this way. It is now time to have things that Australians consider go without saying - like freedom of speech, freedom of the press, freedom of assembly and the right to a fair trial - embedded as fundamental rights that cannot be taken away by any future government.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="increasedPassengerSafety") {
		document.getElementById("Subject").value='Increased Passenger Safety at Rural & Regional Airports'
		document.getElementById("Letter").value='Increased Passenger Safety at Rural & Regional Airports\n\n'
		+'I urge the Minister to expedite the recommendations of the ATSB in its December 2006 report Perceived Pilot Workload and Perceived Safety of RNAV (GNSS) Approaches aimed at improving the safety of GPS (RNAV - GNSS) approaches to land.\n\n'
		+'I also urge the rapid implementation of vertical guidance augmentation for GPS approaches to make air travel safer at regional and remote airports.\n\n'
		+'Hundreds of GPS guided approaches are conducted by pilots in Australia every day often in non-visual and poor weather conditions.\n\n'
		+'Although pilots are trained to conduct these approaches safely, government bodies must act to remove the underlying dangers and make air travel for Australians in regional and remote locations as safe as for passengers in jet aircraft at capital city airports.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="bringAirPassenger") {
		document.getElementById("Subject").value='Bring Air Passenger Accident Compensation up to International Levels'
		document.getElementById("Letter").value='Bring Air Passenger Accident Compensation up to International Levels\n\n'
		+'On 24 Jan 2009 the Australian government finally updated international passenger accident compensation to levels agreed on in 1999.\n\n'
		+'The passenger compensation limits for domestic Australian passengers remain at inadequate levels and also need updating. Injury and death compensation limits last reviewed in 1996 still apply.\n\n'
		+'I urge the Federal and State governments to act immediately to bring passenger compensation limits up to reasonable standards. The Montr�al 1999 Convention should be adopted for domestic Australian air travel.\n\n'
		+'The Montreal Convention - which limits the amount of compensation payable to the extent of a passenger�s injuries unless the airline proves that it was not at fault in the accident - is fair and reasonable and should be adopted urgently.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="censorshipOfLawyers") {
		document.getElementById("Subject").value='Government Censorship of Lawyers over Accident Compensation'
		document.getElementById("Letter").value='Government Censorship of Lawyers over Accident Compensation\n\n'
		+'As a result of a new Queensland law, lawyers here now risk being disbarred for informing the public about their access to justice rights concerning personal injury compensation.\n\n'
		+'Websites, newsletters, advertisements and any other public information designed to let consumers know about important features of our justice system, are all censored.\n\n'
		+'Lawyers are even at risk for telling the public about the censorship!\n\n'
		+'These draconian provisions - entirely contrary to the notion of free speech - were made law as a result of insurance company lobbying to protect insurance company profits.\n\n'
		+'Meanwhile Insurers post record profits - more than $15 billion since the start of the new laws - and executives continue to receive lavish multi-million dollar salaries.\n\n'
		+'Freedom of speech is important to me. The Queensland government must lift restrictions on discussion of personal injury compensation.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="accessToJustice") {
		document.getElementById("Subject").value='Access To Justice'
		document.getElementById("Letter").value='Access To Justice\n\n'
		+'Recent laws have severely restricted the rights of Australians to access our courts.\n\n'
		+'Citizens should be given full and unimpeded access to an impartial judicial system.\n\n'
		+'I call for the repeal of all recent laws that restrict access to justice and impose artificial methods of determining appropriate outcomes for Australian citizens.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="insuranceClaimsPractices") {
		document.getElementById("Subject").value='Insurance Claims Practices'
		document.getElementById("Letter").value='Insurance Claims Practices\n\n'
		+'Insurers routinely delay the settlement of legitimate claims and put other obstacles into the claims process in the hope that claimants give up or accept a lot less than what is fair.\n\n'
		+'Other tactics to wear down claimants is "low balling" where insurers offer much less than what the policy provides for and string out negotiations.\n\n'
		+'Delayed and reduced payments to policyholders mean bigger profits to them but hardship for the people insurance policies are meant to protect.\n\n'
		+'The government must act immediately to stop Insurers needlessly denying and delaying legitimate claims and unnecessarily delaying coverage to those in need.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="sharkWarningSigns") {
		document.getElementById("Subject").value='Shark warning signs at known places of risk&amp;'
		document.getElementById("Letter").value='Shark warning signs at known places of risk?\n\n'
		+'Everyone knows there is a risk associated with swimming in an ocean or river. \n\n'
		+'Some locations are known to have a much greater risk of shark attacks.\n\n'
		+'I agree/disagree that local authorities should be required to erect shark attack warning signs at places where there is a much higher risks than normal for such an incident.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="westEndMarkets") {
		document.getElementById("Subject").value='Please Leave The West End Markets Alone'
		document.getElementById("Letter").value='Please Leave The West End Markets Alone\n\n'
		+'There was no viable market at Davies Park until the current operator established the Green Flea in 2003. This is a hugely popular market which provides amazing food and products to a wide range of people at affordable prices. The community feel is wonderful and by giving the contract to a Sydney based business all of this will change.\n\n'
		+'I request you to rescind the decision made to change the management to a business which is not even Queensland based!\n\n'
		+'Once big business steps in the whole wonderful quirkiness of the markets will change and all the things we value will disappear. Big business will price many people out of the markets and remove the community spirit which prevails.\n\n'
		+'Yours sincerely,\n\n'
} else if (m=="pamdaSimplification") { //CCL Peter Lawlor version
		document.getElementById("Subject").value='Simplification of PAMDA Forms and Requirements!'
		document.getElementById("Letter").value='Simplification of PAMDA Forms and Requirements!\n\n'
		+'I welcome your recent announcement that you will consider industry input in relation to any future PAMDA form versions. Please remember that every new version of the form costs real estate & legal industries millions of dollars to implement and increases the likelihood of inadvertent noncompliance which can cause buyers and sellers as well as their agents, huge additional unforeseen expense.\n\n'
		+'I also welcome your announcement that changes to the extraordinarily complex provisions relating to warning statements and contract presentation & delivery are in the pipeline.\n\n'
		+'I urge you to approve amendments that include:\n\n'
		+'1. Incorporation of the warning statement into the contract above where the buyer signs; and \n\n'
		+'2. Specifying that the warning statement must include mandatory statements, rather than mandating a particular form. \n\n'
		+'Please remember the millions upon millions of dollars that have already been lost by consumers and agents because of overly complex provisions.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="pamdaSimplification2") { //Letter to the Editor version
		document.getElementById("Subject").value='Buyers and sellers risk millions due real estate form uncertainty'
		document.getElementById("Letter").value='Buyers and sellers risk millions due real estate form uncertainty.\n\n'
		+'The Property Agents and Motor Dealers Act (PAMDA) mandates extraordinarily complex provisions relating to warning statements and contract presentation & delivery in connection with residential real estate sales. \n\n'
		+'Without any lessening of consumer protection, these problems could be alleviated by:\n\n'
		+'1. The warning statement being incorporated into contracts so that the buyer signs once but only after checking boxes acknowledging the giving of specified advice; and \n\n'
		+'2. The contents of the warning statement specifying statutory minimums, not an "approved form" - errors in the reproduction of which can cause inadvertent noncompliance.\n\n'
		+'Millions upon millions of dollars have already been lost by consumers and agents because of overly complex provisions.\n\n'
		+'I urge the Minister for Fair Trading to urgently authorise simplification of the hoops and hurdles which if not fixed, could collectively cost unsuspecting buyers and sellers many more millions of dollars.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="pamdaSimplification3") {//ADL version
		document.getElementById("Subject").value='Simplification of PAMDA Forms and Requirements'
		document.getElementById("Letter").value='Simplification of PAMDA Forms and Requirements\n\n'
		+'I support the submission for changes to Chapter 11 of the PAMD Act as put forward by ADL Software. \n\n'
		+'Incorporating the warning statement into the contract - above where a buyer must sign - is more effective in terms of consumer protection, than befuddling the buyer with a separate document.\n\n'
		+'I also believe such a change will eliminate most of the costly contract presentation problems that have arisen because of out-of-order warning statements or trivial irregularities.\n\n'
		+'The current flawed contract presentation process has an enormous cost to buyers, sellers and the real estate industry. \n\n'
		+'Yours faithfully,\n\n'
} else if (m=="truckieharassment"){
		document.getElementById("Subject").value='Stop Truckie Harassment by Police'
		document.getElementById("Letter").value='Stop Truckie Harassment by Police\n\n'
		+'Queensland police should adhere to safe and legitimate practices when policing the long haul truck driving industry.\n\n'
		+'Police officers frequently enter the cabs of prime-movers without holding the appropriate qualifications or licences required to operate the vehicle.  Such conduct is contrary to workplace health and safety rules and puts the officer, the driver and the public at risk.\n\n'
		+'Police and transport inspectors have also recently been exposed relying on journey-time estimates from RACQ\'s online "trip planner" to contradict drivers\' logbook entries for the duration of an actual trip. The online trip times are only estimates and even the RACQ say they should not be relied on.\n\n'
		+'I urge you to instruct authorities to observe responsible and safe policing methods and to stop improper surveillance practices only cause harassment.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="sustainability") {
		document.getElementById("Subject").value='Sustainability declaration adds costs to real estate sales'
		document.getElementById("Letter").value='Sustainability declaration adds costs to real estate sales\n\n'
		+'The new sustainability declaration requirements impose an unwarranted extra cost on homeowners and delay the residential sales process, as the complex form must be completed before a home is marketed. \n\n'
		+'Given that the declaration can affect the selling price of a property it unjustly discriminates against the elderly, mentally handicapped, physically handicapped and financially disadvantaged. These socioeconomic groups have lesser capabilities and/or fewer resources to call upon to ensure the declaration is completed to a standard that fairly places their property in the market place. \n\n'
		+'Consumers who are selling their homes face unfair and substantial fines for failing to accurately complete it. They also face the huge cost of civil lawsuits if the form is inaccurate in any detail.\n\n'
 		+'Commercial providers have already sprung up to capitalise on this further layer of bureaucracy to complete the forms for homeowners - with no guarantee of any greater accuracy. The form completion expense may have to be incurred several times during the sales process given that the information must always be up-to-date. \n\n' 
		+'Real estate agents also expose themselves to liability if they inadvertently, for example, fail to include a declaration in marketing material or the declaration contains outdated information.\n\n'
 		+'On behalf of homeowners and real estate agents, I urge you to abolish this ill-conceived and costly procedure.\n\n'
		+'Yours faithfully,\n\n'
} else if (m=="planning") {
	document.getElementById("Subject").value='Neighbourhood Planning - High density in Brisbane suburbs' //this letter puts the suburb field result into the subject of the letter before it gets emailed. See the PHP file for planning.htm.
	document.getElementById("Letter").value='As a resident of one of the many areas that the Council has designated for high density development, I am registering my alarm, and that of my family, to your Plan which alters the entire character of our suburb.\n\n'
	+'We enjoy the amenities of our suburb and strongly oppose intensified development that will increase demand on already struggling utilities, transport, roads and schools.\n\n'
	+'Intensified development will also reduce home values, increase congestion and degrade our life-styles.\n\n'
	+'Our families have made a choice about where we live because of our suburb\'s existing character and features. We demand you take your high-rise plans elsewhere.\n\n'
	+'Yours faithfully,\n\n'
} else if (m=="reformcivilliability") {
		document.getElementById("Subject").value='Reform civil liability laws'
		document.getElementById("Letter").value='Reform civil liability laws\n\n'
		+'Civil Liability Laws erode fundamental rights to adequate compensation for injury and must be reformed because: \n\n'
		+'- businesses who refuse to invest in injury avoidance are insulated from the true cost of the injuries they cause; \n\n'
		+'- those that invest in safety are penalised through increased cost of production relative to that of the unsafe competitor; \n\n'
		+'- people who are injured through no fault of their own bear the lifelong cost of the injury; \n\n'
		+'- a large part of medical treatment costs are transferred to the taxpayer through Medicare and public hospital treatment of victims (previously these expenses were paid by insurance companies). \n\n'
		+'I value the rights of the individual. I urge you to bring on a thorough review of Civil Liability laws to restore fairness, accountability and personal responsibility. \n\n'
		+'Yours faithfully,\n\n'
}

}