function requestStep5(){
	if (request.readyState == 4){
		loadStep5();
	}
}

function loadStep5(){

	// make stepcolumn display correctly
	document.getElementById("stepPointer_Start").setAttribute("class","greyed_out_step");
	document.getElementById("stepPointer_Start").setAttribute("className","greyed_out_step");
		document.getElementById("stepPointer_Start").firstChild.onclick = "javascript:;";
	document.getElementById("stepPointer_Further").setAttribute("class","greyed_out_step");
	document.getElementById("stepPointer_Further").setAttribute("className","greyed_out_step");
		document.getElementById("stepPointer_Further").firstChild.onclick = "javascript:;";
	document.getElementById("stepPointer_Terms").setAttribute("class","greyed_out_step");
	document.getElementById("stepPointer_Terms").setAttribute("className","greyed_out_step");
		document.getElementById("stepPointer_Terms").firstChild.onclick = "javascript:;";
	document.getElementById("stepPointer_Payment").setAttribute("class","greyed_out_step");
	document.getElementById("stepPointer_Payment").setAttribute("className","greyed_out_step");
		document.getElementById("stepPointer_Payment").firstChild.onclick = "javascript:;";
	document.getElementById("stepPointer_Complete").setAttribute("class","active_step");
	document.getElementById("stepPointer_Complete").setAttribute("className","active_step");
	document.getElementById("stepPointer_Complete").style.visibility = "visible";

	// delete warning message if it exists
	if (document.getElementById("warningRow")){
		document.getElementById("buttonsRow").parentNode.removeChild(document.getElementById("buttonsRow").previousSibling);
	}

	var formarea = document.getElementById("formarea");

	newTable = document.createElement("table");
	newTable.setAttribute("border","0");
	newTable.setAttribute("width","100%");
	newTable.setAttribute("cellSpacing","0");
	newTable.setAttribute("cellPadding","0");
	newTable.setAttribute("id","formTable");

	newTbody = document.createElement("tbody");

	newRow = document.createElement("tr");
	newRow.setAttribute("vAlign","top");
			newCol = document.createElement("td");
			newCol.setAttribute("align","center");
			newCol.setAttribute("colSpan","2");
			newCol.setAttribute("class","thanks");
			newCol.setAttribute("className","thanks");
			newTxt = document.createTextNode("Thank you for your booking");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);
	newTbody.appendChild(newRow);

	newRow = document.createElement("tr");
	newRow.setAttribute("vAlign","top");
			newCol = document.createElement("td");
			newCol.setAttribute("align","left");
			newCol.setAttribute("colSpan","2");	
			newTxt = document.createTextNode("\u00A0");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);
	newTbody.appendChild(newRow);

	newRow = document.createElement("tr");
	newRow.setAttribute("vAlign","top");
			newCol = document.createElement("td");
			newCol.setAttribute("align","center");
			newCol.setAttribute("colSpan","2");
			newCol.setAttribute("class","fieldtags");
			newCol.setAttribute("className","fieldtags");
			newTxt = document.createTextNode("You will shortly receive a confirmation email containing the information below.");
			newCol.appendChild(newTxt);

			newBR = document.createElement("br");
			newCol.appendChild(newBR);

			newTxt = document.createTextNode("Please check through the details and ");
			newCol.appendChild(newTxt);

			newA = document.createElement("a");
			newA.setAttribute("class","inline");
			newA.setAttribute("className","inline");
			newA.setAttribute("href","mailto:info@explorersfilmschool.com");
			newTxt = document.createTextNode("let us know");
			newA.appendChild(newTxt);
			newCol.appendChild(newA);

			newTxt = document.createTextNode(" if there are any problems.");
			newCol.appendChild(newTxt);

		newRow.appendChild(newCol);
	newTbody.appendChild(newRow);

	newRow = document.createElement("tr");
	newRow.setAttribute("vAlign","top");
			newCol = document.createElement("td");
			newCol.setAttribute("align","left");
			newCol.setAttribute("colSpan","2");	
			newTxt = document.createTextNode("\u00A0");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);
	newTbody.appendChild(newRow);

	newRow = document.createElement("tr");
	newRow.setAttribute("vAlign","top");

			newCol = document.createElement("td");
			newCol.setAttribute("class","fieldtags");
			newCol.setAttribute("className","fieldtags");
			newCol.setAttribute("align","right");
			newCol.setAttribute("width","50%");
	
			newTxt = document.createTextNode("Course booked:");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);

			newCol = document.createElement("td");
			newCol.setAttribute("class","info");
			newCol.setAttribute("className","info");
			newCol.setAttribute("width","50%");	
	
			newTxt = document.createTextNode("Test mode");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);
	newTbody.appendChild(newRow);

	newRow = document.createElement("tr");
	newRow.setAttribute("vAlign","top");

			newCol = document.createElement("td");
			newCol.setAttribute("class","fieldtags");
			newCol.setAttribute("className","fieldtags");
			newCol.setAttribute("align","right");
	
			newTxt = document.createTextNode("Amount paid:");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);

			newCol = document.createElement("td");
			newCol.setAttribute("class","info");
			newCol.setAttribute("className","info");
	
			newTxt = document.createTextNode("£Test");
			newCol.appendChild(newTxt);
		newRow.appendChild(newCol);
	newTbody.appendChild(newRow);

	// add some blank rows
	for (var i=0;i<10;i++){
		newRow = document.createElement("tr");
		newRow.setAttribute("vAlign","top");
				newCol = document.createElement("td");
				newCol.setAttribute("align","left");
				newCol.setAttribute("colSpan","2");	
				newTxt = document.createTextNode("\u00A0");
				newCol.appendChild(newTxt);
			newRow.appendChild(newCol);
		newTbody.appendChild(newRow);
	}

	newTable.appendChild(newTbody);

	formarea.replaceChild(newTable,formarea.firstChild);

	// remove bottom horizontal line
	document.getElementById("buttonsRow").parentNode.removeChild(document.getElementById("buttonsRow").previousSibling);

	// Populate 'back' and 'continue' buttons
	document.getElementById("backButton").style.visibility = "hidden";
	document.getElementById("continueButton").style.visibility = "hidden";
}
