// Next Step Print function


///creates dynamic content popups
//you will need to change <title>Your course title<\/title>
//
var session1 = "Session 1: Gold Coast<br \/>" +
			   	"Tuesday 11 September 2007, 10:00 am - 12:00 pm  <br \/>" +
			  	"Venue: Arundel Hills Country Club, Arundel Place, Arundel Hills";
var session2 =	"Session 2: Brisbane South <br \/>" +
				"Tuesday 11 September 2007, 2:00 pm - 4:00 pm<br \/>" +
				"Venue: Springwood Tower Hotel, 9 Murrajong Rd, Springwood";
var session3 =	"Session 3: Toowoomba <br \/>" +
				"Wednesday 12 September 2007, 10:00 am -12:00 pm<br \/>" +
				"Venue: Aubigny House, 178 Hume Street, Toowoomba";
var session4 = 	"Session 4: Brisbane West <br \/>" +
				"Wednesday 12 September 2007, 2:00 pm - 4:00 pm<br \/>" +
				"Venue: Ipswich International Hotel, 43 South St, Ipswich";
var session5 =	"Session 5: Brisbane North <br \/>" +
				"Thursday 13 September 2007, 9:00 am - 11:00 am<br \/>" +
				"Venue: St Joseph’s Nudgee College, Ryan Hall, 2199 Sandgate Road, Boondall";
var session6 =	"Session 6: Sunshine Coast <br \/>" +
				"Thursday 13 September 2007, 2:00 pm - 4:00 pm<br \/>" +
				"Venue: Sunshine Coast Turf Club,  170 Pierce Ave, Caloundra (just off Caloundra Rd)";
var session7 = "Session 7: Maryborough <br \/>" +
				"Friday 14 September 2007, 9:00 am-11:00 am<br \/>" +
				"Venue: The Brolga Theatre and Convention Centre, 5 Walker St, Maryborough";
var session8 = 	"Session 8: Cairns <br \/>" +
				"Monday 17 September 2007, 12.00pm-2.00pm<br \/>" +
				"Venue: Cairns Colonial Club, 18 Cannon Street, Cairns";
var session9 =	"Session 9: Townsville <br \/>" +
				"Tuesday 18 September 2007, 9.00am-11.00am<br \/>" +
				"Venue: Mercure Hotel, Woolcock Street, Townsville";
var session10 =	"Session 10: Mackay <br \/>" +
				"Wednesday 19 September 2007, 9:00 am - 11:00 am<br \/>" +
				"Venue: Ocean International, 1 Bridge Road, Illawong Beach, Mackay";
var session11 = "Session 11: Rockhampton <br \/>" +
				"Thursday 20 September 2007, 9:00am - 11:00am<br \/>" +
				"Venue: North Street Annex, Cnr North & West Sts, Rockhampton";
var session12 =	"Session 12: Dataconference to North West, Central West and South West Statistical 						Divisions*<br \/>" +
				"Friday 21 September 2007, 10:00 am – 12:00 pm<br \/>" +
				"*Further information will be sent to all participants who register for this session.";

function popUpNewWin(content) {
	var header = "<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\">\n" +
"<html>\n<head>\n<title>2007 Next Step Regional Briefing Sessions<\/title>\n" +
"<link rel=\"stylesheet\" href=\"\/nextstep\/css\/nextstep.css\" type=\"text\/css\">\n<\/head>\n<body bgcolor=\"#FFFFFF\">\n" +
"<h1>2007 <i>Next Step<\/i> Regional Briefing Sessions<\/h1>" +

  "<p> The <em>Next Step <\/em>Student Destination survey of the 2006 cohort of Year 12 school completers was conducted between March and May 2007 by the Office of the Government Statistician. The survey achieved a very pleasing response rate of 81 per cent. <\/p>" +
  "<p> The results of the 2007 survey, at the State and regional level, will be presented at 12 regional briefing sessions from 11-21 September 2007. See below for details on how to register for a session.<\/p>" +
  "<p> School principals and other interested parties from the community, business, and industry sectors are encouraged to attend the briefing session closest to their school or workplace, as each session will be tailored to the findings for that local statistical division. <\/p>" +
  "<p> As a guide to which is the most relevant briefing session to attend, please see the attached list.<\/p>" +
  "<p> For information about additional geographical regions that will be covered at the briefing sessions, please see the attached table.<\/p>" +
  "<p> The briefings will be presented by researchers from the Centre for Post-compulsory Education and Lifelong Learning at the University of Melbourne who analysed the survey data and reviewed the report. <\/p>" +
  "<p><strong> There is no registration fee. <\/strong><\/p>" +
  "<p> Please complete a separate registration for each participant <strong>up to five working days prior to the session.<\/strong> <\/p>" +
  "<fieldset>" +
  "<legend><strong>Personal details<\/strong><\/legend>" +

"<div class=\"labelwidth\"><label for=\"surname\">Surname: <\/label><\/div>" +
"<p>" + replaceReturn(document.nextstep.lastname.value) + "<\/p>" +
"<div class=\"labelwidth\"><label for=\"givenname\">Given name: <\/label><\/div>" +
"<p>" + replaceReturn(document.nextstep.givenname.value) + "<\/p>" +
"<div class=\"labelwidth\"><label for=\"school\">School\/Organisation: <\/label><\/div>" +
"<p>" + replaceReturn(document.nextstep.school.value) + "<\/p>" +
"<div class=\"labelwidth\"><label for=\"position\">Position: <\/label></div>" +
"<p>" + replaceReturn(document.nextstep.position.value) + "<\/p>" +
"<div class=\"labelwidth\"><label for=\"phone\">Phone (business hours): <\/label><\/div>" +
"<p>" + replaceReturn(document.nextstep.phone.value) + "<\/p>" +
"<div class=\"labelwidth\"><label for=\"fax\">Fax: <\/label><\/div>" +
"<p>" + replaceReturn(document.nextstep.fax.value) + "<\/p>" +
"<div class=\"labelwidth\"><label for=\"email\">Email: <\/label><\/div>" +
"<p>" + replaceReturn(document.nextstep.email.value) + "<\/p>" +
"<\/fieldset>" +
"<fieldset>" +
"<legend><strong>I will attend the forum at</strong></legend>" +
"<div><input id=\"session1\" type=\"radio\" value=\"\" name=\"sessionx\" checked \/>";
 var whichRad = document.nextstep.sessionx;
    for (j=0; j<whichRad.length; j++) {
      if (whichRad[j].checked) {
        header += eval("session"+(j+1));
      }
    }
header += "<\/div>" +
"<\/fieldset>" +
"<fieldset><legend><strong>Special requirements<\/strong><\/legend> "+
"<p><label for=\"special\">Please indicate if you have special dietary or other requirements.<br>"+
"(You have a maximum of 300 characters)<\/label> <\/p>"+
"<p>" + replaceReturn(document.nextstep.special.value) + "<\/p>" +
"<\/fieldset>" +
"<fieldset>" +
"<legend><strong>Privacy<\/strong><\/legend>" +
"<p class=\"note\">The personal information collected on this form is used to secure your involvement in " +
"the Next Step regional briefings and to assist in organising the event. This information " +
"is not shared with any other organisation. Your information will be kept secure.<\/p>" +
"<p>For further enquiries please e-mail nextstep@deta.qld.gov.au or phone (07) 3237 9827<\/p>";
if (document.nextstep.list[0].checked) {
        header += "<p> I <strong>agree<\/strong> to my name and workplace being included on the list of participants. <\/p>";
} else {
       header += "<p> I <strong>do not<\/strong> agree to my name and workplace being included on the list of participants. <\/p>";
}

header += "<\/fieldset>";
	
	var footer = "<div align=\"center\">\n<form name=\"cButtons\">\n<input type=\"button\" name=\"cPrint\" value=\"Print\" 	 onClick=\"window.print()\"> \n" +
			"<input type=\"button\" name=\"cClose\" value=\"Close\" onClick=\"window.close(); opener.focus()\">\n<\/form>\n<\/div>\n" +
			"<\/body>\n<\/html>";
		
	var newWindow = window.open("","popupnewwin","toolbar=no,status=no,scrollbars=yes,location=no,menubar=yes,directories=no,resizable=yes,width=430,height=380");
	if (newWindow != null) {
		newWindow.document.write(header + footer);
        newWindow.document.close( );
		newWindow.focus();
    }//end if not null
}//end popupnewwin function

//allows returns to appear in the returned content
function replaceReturn(str) {
    var original = "\n";
    var result;
    result = "";
    while(str.indexOf(original) != -1) {
        if (str.indexOf(original) > 0) {
           result = result + str.substring(0, str.indexOf(original)) + "<br>";
        } else {
           result = result + "<br>";
		}
        str = str.substring(str.indexOf(original) + original.length, str.length);
    }
    return result + str;
}


