website.changeView = function(view, dir) {
	var i, itmid;
	if (view) {
		itmidw = "#"+view+"_width";
		itmidh = "#"+view+"_height";
		if (view === 'corflutes') {
			if ($('#corflutes2').hasClass('hidebg') && dir === 'on') {
				$('#corflutes2').removeClass('hidebg').addClass('showbg');
				$('#corflutes1').removeClass('showbg').addClass('hidebg');			
				$('#banner_width').attr("disabled", false);
				$('#banner_height').attr("disabled", false);
				$('#Single-colour-on-white').attr("disabled", true);
				$('#2-colour-on-white').attr("disabled", true);
				$('#3-colour-on-white').attr("disabled", true);
				$('#Full-colour-digital-print').attr("disabled", true);
			} else {
				$('#corflutes2').removeClass('showbg').addClass('hidebg');
				$('#corflutes1').removeClass('hidebg').addClass('showbg');			
				$('#banner_width').attr("disabled", true);
				$('#banner_height').attr("disabled", true);
				$('#Single-colour-on-white').attr("disabled", false);
				$('#2-colour-on-white').attr("disabled", false);
				$('#3-colour-on-white').attr("disabled", false);
				$('#Full-colour-digital-print').attr("disabled", false);
			}

		} else if(view === 'posters') {
			if ($('#posters1').hasClass('hidebg') && dir === 'off') {
				$('#posters1').removeClass('hidebg').addClass('showbg');			
				$('#Laminated').attr("disabled", false);
				$('#Matt').attr("disabled", false);
				$('#Gloss').attr("disabled", true);
				$('#Un-laminated').attr("disabled", false);
			} else {
				$('#posters1').removeClass('showbg').addClass('hidebg');			
				$('#Laminated').attr("disabled", true);
				$('#Matt').attr("disabled", true);
				$('#Gloss').attr("disabled", true);
				$('#Un-laminated').attr("disabled", true);
			}
		} else {

			if ($('#hidequote1').hasClass('hidebg') && dir === 'on') {
				$('#hidequote1').removeClass('hidebg').addClass('showbg');			
				$(itmidw).attr("disabled", false);
				$(itmidh).attr("disabled", false);
			} else {
				$('#hidequote1').removeClass('showbg').addClass('hidebg');
				$(itmidw).attr("disabled", true);
				$(itmidh).attr("disabled", true);
			}
		}
	} else {

		if ($('#hidequote1').hasClass('hidebg')) {
			for (i=1; i<=4; i+=2) {
				$('#hidequote'+i).removeClass('hidebg').addClass('showbg');
			}
	
			$('#_850x2000').attr("disabled", false);
			$('#_1200x2000').attr("disabled", false);		
		
			for (i=1; i<=6; i+=1) {
				$('#showquote'+i).removeClass('showbg').addClass('hidebg');
			}
			$('#banner_width').attr("disabled", true);
			$('#banner_height').attr("disabled", true);
			$('#RopeEdge').attr("disabled", true);
			$('#Eyelets').attr("disabled", true);	


		} else {
			for (i=1; i<=6; i+=1) {
				$('#showquote'+i).removeClass('hidebg').addClass('showbg');
			}
			$('#banner_width').attr("disabled", false);
			$('#banner_height').attr("disabled", false);
			$('#RopeEdge').attr("disabled", false);
			$('#Eyelets').attr("disabled", false);

			for (i=1; i<=4; i+=1) {
				$('#hidequote'+i).removeClass('showbg').addClass('hidebg');
			}
			$('#_850x2000').attr("disabled", true);
			$('#_1200x2000').attr("disabled", true);
			$('#quality850').attr("disabled", true);
			$('#economy850').attr("disabled", true);
			$('#quality1200').attr("disabled", true);
			$('#economy1200').attr("disabled", true);		
		}
	}
}

website.islaminate = function(dir) {

	if (dir === 'on') {
		$('#Matt').attr("disabled", false);
		$('#Gloss').attr("disabled", false);
	} else {
		$('#Matt').attr("disabled", true);
		$('#Gloss').attr("disabled", true);
	}
}

website.setSize = function(size) {
	if (size == '850') {
		$('#hidequote2').removeClass('hidebg').addClass('showbg');
		$('#quality850').attr("disabled", false);
		$('#economy850').attr("disabled", false);
		$('#hidequote4').removeClass('showbg').addClass('hidebg');
		$('#quality1200').attr("disabled", true);
		$('#economy1200').attr("disabled", true);
	} else if(size == '1200') {
		$('#hidequote4').removeClass('hidebg').addClass('showbg');
		$('#quality1200').attr("disabled", false);
		$('#economy1200').attr("disabled", false);
		$('#hidequote2').removeClass('showbg').addClass('hidebg');
		$('#quality850').attr("disabled", true);
		$('#economy850').attr("disabled", true);
	}
}

website.emailchk = false;
website.quoteManager = function(step) {

//	this.emlcheck = false;
	var form2, form3, dtext, purl, response, ftop, fbottom, emlchecked = 'none', callback, resetValues; // alert("running");
	form2 = [];

	/* common form top */
	ftop = '<span class="stepBlack">Step 2.</span><span class="stepWhite"Select Product Style</span><!--Grey box--><div id="boxSilverTop"></div><div id="boxSilver"><form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;"><div id="boxSilverContent">Please select from the following options:<span class="required"> <span class="requiredOrange">*</span> required</span>';
	/* common form bottom */
	fbottom = '<br /><br /><div id="selectBnts"><input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'start\');" /> <input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'three\');" /> </div>';

	
	form2['banners'] = ftop;
	/* for the banners option */
	form2['banners'] += '<table width="100%"><tr><td align="right" valign="top"><img src="images/form/banners.png" /><br /><img src="images/radioOn.gif" /> Banners</td>';
	form2['banners'] += '<td><br /><table class="quotechoice" width="100%"><tr><th align="right">Quantity<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="quantity" id="quantity" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Banner Type<span class="requiredOrange">*</span></th><td align="left"><input type="radio" name="banner_type" id="standard" value="standard" checked="checked" class="radioOn" onclick="website.changeView();" /> Standard Banner</td><td align="center"><input type="radio" name="banner_type" id="pullup" value="pullup" onclick="website.changeView();" /> Pull-up-Banner</td></tr>';
	form2['banners'] += '<tr><td colspan="3"><br /><hr width="400" /><br /></td></tr>';
	form2['banners'] += '<tr><th align="right" id="showquote1">Width<span class="requiredOrange">*</span></th><td align="left" id="showquote4"><input type="text" name="banner_width" id="banner_width" value="" /></td><td align="center" id="hidequote1" class="hidebg">Size<span class="requiredOrange">*</span> <span id="pubanner"> <input type="radio" name="bsize" id="_850x2000" value="_850x2000" disabled="disabled" onclick="website.setSize(\'850\');" /> 850mm x 2000mm</td></tr>';
	form2['banners'] += '<tr><th align="right" id="showquote2">Height<span class="requiredOrange">*</span></th><td align="left" id="showquote5"><input type="text" name="banner_height" id="banner_height" value="" /></td><td align="center" id="hidequote2" class="hidebg"><span id="pubanner"><input type="radio" name="quality850" id="economy850" value="economy850" disabled="disabled" /> Eco<br /><input type="radio" name="quality850" id="quality850" value="quality850" disabled="disabled" /> Quality</span></td></tr>';
	form2['banners'] += '<tr><th align="right"  id="showquote3">Hanging<span class="requiredOrange">*</span></th><td align="left" id="showquote6"><input type="radio" name="hanging" id="RopeEdge" value="RopeEdge" checked="checked" /> Rope Edge<br /><input type="radio" name="hanging" id="Eyelets" value="Eyelets" /> Eyelets</td><td align="center" id="hidequote3" class="hidebg"><span style="visibility: hidden;">Size<span class="requiredOrange">*</span></span> <input type="radio" name="bsize" id="_1200x2000" value="_1200x2000" disabled="disabled" onclick="website.setSize(\'1200\');" /> 1200mm x 2000mm</td></tr><tr><th>&nbsp;</th><td>&nbsp;</td><td align="center" id="hidequote4" class="hidebg"><span id="pubanner"> <input type="radio" name="quality1200" id="economy1200" value="economy1200" disabled="disabled" /> Eco<br /><input type="radio" name="quality1200" id="quality1200" value="quality1200" disabled="disabled" /> Quality</span></td></tr></table></td></tr></table>';	
	form2['banners'] += fbottom;

	form2['corflutes'] = ftop;
	/* for the banners option */
	form2['corflutes'] += '<br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/corflutes.png" /><br /><img src="images/radioOn.gif" /> Corflute</td>';
	form2['corflutes'] += '<td><br /><table class="quotechoice" width="100%"><tr><th align="right">Quantity<span class="requiredOrange">*</span></th><td align="left" colspan="2"><input type="text" name="quantity" id="quantity" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Corflute Size<span class="requiredOrange">*</span></th><td align="left"><input type="radio" name="banner_size" id="_900x600" value="_900x600" checked="checked" class="radioOn" onclick="website.changeView(\'corflutes\',\'off\');" /> 900mm x 600mm</td><td align="left"><input type="radio" name="banner_size" id="_1200x900" value="_1200x900" onclick="website.changeView(\'corflutes\',\'off\');" /> 1200mm x 900mm</td><td align="center"><input type="radio" name="banner_size" id="Custom" value="Custom" onclick="website.changeView(\'corflutes\',\'on\');" /> Custom</td></tr>';
	form2['corflutes'] += '<tr><td colspan="4"><br /><hr width="400" /><br /></td></tr>';
	form2['corflutes'] += '<tr><th align="right" valign="top" id="showquote1">Colour<span class="requiredOrange">*</span></th><td align="left" id="corflutes1"><input type="radio" name="banner_colour" id="Single-colour-on-white" value="Single-colour-on-white" checked="checked" /> Single colour on white<br /><input type="radio" name="banner_colour" id="2-colour-on-white" value="2-colour-on-white" /> 2 colour on white<br /><input type="radio" name="banner_colour" id="3-colour-on-white" value="3-colour-on-white" /> 3 colour on white<br /><input type="radio" name="banner_colour" id="Full-colour-digital-print" value="Full-colour-digital-print" /> Full colour digital print</td><td width="10">&nbsp;</td><td align="center" id="corflutes2" class="hidebg">Width<span class="requiredOrange">*</span> <input type="text" name="banner_width" id="banner_width" value="" disabled="disabled" /><br />Height<span class="requiredOrange">*</span><input type="text" name="banner_height" id="banner_height" value="" disabled="disabled" /></td></tr></table></td></tr></table>';
	form2['corflutes'] += fbottom;

	form2['businesscards'] = ftop;
	/* for the business cards option */
	form2['businesscards'] += '<br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/business_cards.png" /><br /><img src="images/radioOn.gif" /> Business Cards</td>';
	form2['businesscards'] += '<td><br /><br /><table class="quotechoice" width="100%"><tr><th align="right">Quantity<span class="requiredOrange">*</span></th><td align="left">1000 Business Cards</td><td>&nbsp;</td></tr><tr><th align="right">Print<span class="requiredOrange">*</span></th><td align="left"><input type="radio" name="bc_print" id="single-sided" value="single-sided" checked="checked" class="radioOn" /> Single Sided</td><td align="center"><input type="radio" name="bc_print" id="double-sided" value="double-sided" /> Double Sided</td></tr>';
	form2['businesscards'] += '<tr><td colspan="3"><br /><hr width="400" /><br /></td></tr>';
	form2['businesscards'] += '</table></td></tr></table><br /><br />';
	form2['businesscards'] += fbottom;

	form2['vehiclegraphics'] = ftop;
	/* for the vehicle graphics option */
	form2['vehiclegraphics'] += '<br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/vehicle.png" /><br /><img src="images/radioOn.gif" /> Vehicle Graphics</td>';
	form2['vehiclegraphics'] += '<td><br /><table class="quotechoice" width="100%"><tr><th align="right">No. of Vehicles<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="quantity" id="quantity" value="" /><br />&nbsp;</td><td>&nbsp;</td></tr><tr><th align="right">&nbsp;</th><td align="left"><input type="radio" name="vwrap" id="Full-Wrap" value="Full-Wrap" checked="checked" class="radioOn" /> Full Wrap<br /><input type="radio" name="vwrap" id="Partial-Coverage" value="Partial-Coverage" /> Partial Coverage</td><td align="center">&nbsp;</td></tr><tr><th align="right">Type of Vehicle<span class="requiredOrange">*</span></th><td align="left">&nbsp;<br /><input type="text" name="vehicletype" id="vehicletype" /></td><td align="center">&nbsp;</td></tr>';
	form2['vehiclegraphics'] += '<tr><td colspan="3"><br />&nbsp;<br /></td></tr>';
	form2['vehiclegraphics'] += '</table></td></tr></table><br /><br />';
	form2['vehiclegraphics'] += fbottom;

	form2['posters'] = ftop;
	/* for the posters option // Width<span class="requiredOrange">*</span> <input type="text" name="poster_width2" id="poster_width2" value="" disabled="disabled" /><br />Height<span class="requiredOrange">*</span> <input type="text" name="poster_height2" id="poster_height2" value="" disabled="disabled" /> // */
	form2['posters'] += '<br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/posters.png" /><br /><img src="images/radioOn.gif" /> Posters</td>';
	form2['posters'] += '<td><table class="quotechoice" width="100%"><tr><th align="right">Quantity<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="quantity" id="quantity" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Application<span class="requiredOrange">*</span></th><td align="left"><input type="radio" name="application" id="Front-Applied" value="Front-Applied" checked="checked" class="radioOn" onclick="website.changeView(\'posters\',\'off\');" /> Front applied</td><td align="center"><input type="radio" name="application" id="Reverse-Applied" value="Reverse-Applied" onclick="website.changeView(\'posters\',\'on\');" /> Reverse applied</td></tr>';
	form2['posters'] += '<tr><td colspan="3"><br /><hr width="400" /><br /></td></tr>';
	form2['posters'] += '<tr><th align="right" valign="top">Specification<span class="requiredOrange">*</span></th><td align="left" id="posters1"><input type="radio" name="specification" id="Laminated" value="Laminated" checked="checked" class="radioOn" onclick="website.islaminate(\'on\');" /> Laminated<br />&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="lamination" id="Matt" value="Matt" checked="checked" /> Matt<br />&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="lamination" id="Gloss" value="Gloss" /> Gloss<br /><input type="radio" name="specification" id="Un-laminated" value="Un-laminated" onclick="website.islaminate(\'off\');" /> Un-laminated</td><td align="center" id="hidequote1">&nbsp;</td></tr><tr><th align="right">Width<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="poster_width" id="poster_width" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Height<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="poster_height" id="poster_height" value="" /></td><td>&nbsp;</td></tr></table></td></tr></table><br />';
	form2['posters'] += fbottom;

	form2['stickers'] = ftop;
	/* for the posters option */
	form2['stickers'] += '<br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/stickers.png" /><br /><img src="images/radioOn.gif" /> Stickers</td>';
	form2['stickers'] += '<td><table class="quotechoice" width="100%"><tr><th align="right">Quantity<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="quantity" id="quantity" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Application<span class="requiredOrange">*</span></th><td align="left"><input type="radio" name="application" id="Front-Applied" value="Front-Applied" checked="checked" class="radioOn" onclick="website.changeView(\'posters\',\'off\');" /> Front applied</td><td align="center"><input type="radio" name="application" id="Reverse-Applied" value="Reverse-Applied" onclick="website.changeView(\'posters\',\'on\');" /> Reverse applied</td></tr>';
	form2['stickers'] += '<tr><td colspan="3"><br /><hr width="400" /><br /></td></tr>';
	form2['stickers'] += '<tr><th align="right" valign="top">Specification<span class="requiredOrange">*</span></th><td align="left" id="posters1"><input type="radio" name="specification" id="Laminated" value="Laminated" checked="checked" class="radioOn" onclick="website.islaminate(\'on\');" /> Laminated<br />&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="lamination" id="Matt" value="Matt" checked="checked" /> Matt<br />&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="lamination" id="Gloss" value="Gloss" /> Gloss<br /><input type="radio" name="specification" id="Un-laminated" value="Un-laminated" onclick="website.islaminate(\'off\');" /> Un-laminated</td><td align="center" id="hidequote1">&nbsp;</td></tr><tr><th align="right">Width<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="sticker_width" id="poster_width" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Height<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="sticker_height" id="poster_height" value="" /></td><td>&nbsp;</td></tr></table></td></tr></table><br />';
	form2['stickers'] += fbottom;

	form2['pylon'] = ftop;
	/* for the signage cards option */
	form2['pylon'] += '<br /><br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/pylon.png" /><br /><img src="images/radioOn.gif" /> Pylons</td>';
	form2['pylon'] += '<td><table class="quotechoice" width="100%"><tr><th align="right">No.<span class="requiredOrange">*</span></th><td align="left"> <input type="text" name="lot" id="lot" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Street<span class="requiredOrange">*</span></th><td align="left"> <input type="text" name="street" id="street" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Town/Suburb<span class="requiredOrange">*</span></th><td align="left"> <input type="text" name="town" id="town" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">State<span class="requiredOrange">*</span></th><td align="left"><select name="state" id="state" size="1"><option value="">Select a state</option><option value="ACT">ACT</option><option value="NSW">NSW</option><option value="NT">NT</option><option value="QLD">QLD</option><option value="SA">SA</option><option value="TAS">TAS</option><option value="VIC">VIC</option><option value="WA">WA</option></select></td><td>&nbsp;</td></tr><tr><th align="right">Postcode<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="postcode" id="postcode" value="" /></td><td>&nbsp;</td></tr>';
	form2['pylon'] += '</table></td></tr></table><br /><br />';
	form2['pylon'] += fbottom;

	form2['shopfrontsignage'] = ftop;
	/* for the signage cards option */
	form2['shopfrontsignage'] += '<br /><br /><table width="100%"><tr><td align="right" valign="top"><img src="images/form/shop_front_signage.png" /><br /><img src="images/radioOn.gif" /> Shop Front Signage</td>';
	form2['shopfrontsignage'] += '<td><table class="quotechoice" width="100%"><tr><th align="right">No.<span class="requiredOrange">*</span></th><td align="left"> <input type="text" name="lot" id="lot" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Street<span class="requiredOrange">*</span></th><td align="left"> <input type="text" name="street" id="street" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">Town/Suburb<span class="requiredOrange">*</span></th><td align="left"> <input type="text" name="town" id="town" value="" /></td><td>&nbsp;</td></tr><tr><th align="right">State<span class="requiredOrange">*</span></th><td align="left"><select name="state" id="state" size="1"><option value="">Select a state</option><option value="ACT">ACT</option><option value="NSW">NSW</option><option value="NT">NT</option><option value="QLD">QLD</option><option value="SA">SA</option><option value="TAS">TAS</option><option value="VIC">VIC</option><option value="WA">WA</option></select></td><td>&nbsp;</td></tr><tr><th align="right">Postcode<span class="requiredOrange">*</span></th><td align="left"><input type="text" name="postcode" id="postcode" value="" /></td><td>&nbsp;</td></tr>';
	form2['shopfrontsignage'] += '</table></td></tr></table><br /><br />';
	form2['shopfrontsignage'] += fbottom;

	resetValues = function() {

		if ($('#quantity')) { $('#quantity').val(values['quantity']); }
		if ($('#qual850') || $('#qual1200')) { $('#'+values['quality']+'').attr('checked','check'); }
		if ($('#banner_type')) { $('#'+values['banner_type']+'').attr('checked','check'); }
		if ($('#banner_width')) { $('#banner_width').val(values['banner_width']); }
		if ($('#banner_height')) { $('#banner_height').val(values['banner_height']); }
		if ($('#ropeedge')) { $('#'+values['hanging']+'').attr('checked','check'); }
		if ($('#_850x2000')) { $('#'+values['banner_size']+'').attr('checked','check'); }
		if ($('#single-sided')) { $('#'+values['bc_print']).attr('checked','check'); }
		if ($('#Full-Wrap')) { $('#'+values['vehicle_wrap']).attr('checked','check'); }
		if ($('#vehicletype')) { $('#vehicletype').val(values['vehicle_type']); }
		if ($('#banner_colour')) { $('#'+values['banner_colours']+'').attr('checked','check'); }
		if ($('#lot')) { if(values['sfs_lot']) { $('#lot').val(values['sfs_lot']); } else { $('#lot').val(values['pylon_lot']); } }
		if ($('#street')) { if(values['sfs_street']) { $('#street').val(values['sfs_street']); } else { $('#street').val(values['pylon_street']); } }
		if ($('#town')) { if(values['sfs_town']) { $('#town').val(values['sfs_town']); } else { $('#town').val(values['pylon_town']); } }
		if ($('#postcode')) { if(values['sfs_postcode']) { $('#postcode').val(values['sfs_postcode']); } else { $('#postcode').val(values['pylon_postcode']); } }
		if ($('#state')) { if(values['sfs_state']) { $('#state').val(values['sfs_state']); } else { $('#state').val(values['pylon_state']); } }
		if ($('#poster_width')) { if(values['poster_width']) { $('#poster_width').val(values['poster_width']); } else { $('#poster_width').val(values['sticker_width']); } }
		if ($('#poster_height')) { if(values['poster_height']) { $('#poster_height').val(values['poster_height']); } else { $('#poster_height').val(values['sticker_height']); } }
		if ($('#Front-Applied')) { $('#'+values['application']+'').attr('checked','check'); }
		if ($('#Laminated')) { $('#'+values['specification']+'').attr('checked','checl'); }
		if ($('#Gloss')) { $('#'+values['lamination']+'').attr('checked','check'); }

	}
	
	if (step) {
		var test = $('input:radio[name=check_value]:checked').val();
		if (step == "two" && values['interest'] == test && values['form2save'] !== '') {
			$('#boxAqua').html(values['form2save']);
			
			resetValues();
			
			this.current = "two";
			return;
		}
		if (this.current == "three" && step == "two") {
			$('#boxAqua').html(values['form2save']);
			
			resetValues();

			this.current = "two";

			return;
		}
		if (step == "start") {
			$('#boxAqua').html(values['form1save']);
			$('#first_name').val(values['fname']);
			$('#surname').val(values['lname']);
			$('#company').val(values['company']);
			$('#phone_number').val(values['phone']);
			$('#email_address').val(values['email']);
			var psidid = '#'+values['interest'];
			$(psidid).attr('checked', 'check');
			this.current = "start";
			
			return;
		}

		this.current = step;

		if (step === 'two') {

			values['email']   = $('#email_address').val();
			if (values['email'] === undefined || values['email'].length < 1) { alert("Please supply a valid Email Address"); return false; }

			var self = this;
			callback = function(res) {
				emlchecked = res;
				website.emailchk = res;
			}

			purl = "scripts/ajax.php?action=checkemail&email="+values['email']+"&sid="+Math.random();
			$.ajax({ url: purl, success: function(html) { if(html == "false") { alert("Invalid Email Address Entered!"); return false; } else { callback('done'); return true; } } });

			setTimeout(function(){
			values['phone']   = $('#phone_number').val();
			if(!isFinite(values['phone']) || values['phone'] == 0) { alert("Please enter a valid phone number"); return false; }

			values['form1save'] = $('#boxAqua').html();			
			values['fname']   = $('#first_name').val();
			values['lname']   = $('#surname').val();
			values['name']    = values['fname']+" "+values['lname'];
			if (values['name'] === '' || values['name'].length <= 3) { alert("Please enter a valid name with more than two characters"); return false; }
			values['company'] = $('#company').val();
			if (values['company'] === '' || values['name'].length <= 3) { alert("Please enter a valid Company or Busines Name"); return false; }

			values['interest'] = $('input:radio[name=check_value]:checked').val();

			if (emlchecked === 'done') {
				emlchecked == 'none';
				if (values['interest'] && values['interest'].length >= 3) {
					/* continue to next form */		
					$('#boxAqua').html(form2[values['interest']]);
				} else {
					alert("Please select your product of Interest as well");
					return false;
				}
			} else {
				return false;
			}
			}, 1000);

		}
		if (step === 'three') {

			values['form2save'] = $('#boxAqua').html();

			if (values['interest'] === 'banners') {
				values['quantity'] =$('#quantity').val();
				
				if (values['quantity'] == '' || values['quantity'] == 0) { alert("You must add a quantity before continuing..."); return false; }
				values['banner_type'] = $('input:radio[name=banner_type]:checked').val();
				
				if (values['banner_type'] === "standard") {
					values['banner_width']  = $('#banner_width').val();
					values['banner_height'] = $('#banner_height').val();
					values['hanging']       = $('input:radio[name=hanging]:checked').val();

					if (values['banner_width'] !== '' && values['banner_height'] !== '') {

						form3 = '<span class="stepBlack">Step 3.</span>';
   						form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   						form3 += '<!--Grey box-->';
        					form3 += '<div id="boxSilverTop"></div>';
        					form3 += '<div id="boxSilver">';
        					form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        					form3 += '<div id="boxSilverContent">';
        					form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
						form3 += '<br />Product Interest: <strong>BANNERS</strong>. ';
        					form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        					form3 += '<br/><br/>';
        					form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Banner Type:</th><td align="left">'+values['banner_type']+'</td></tr><tr><th align="right">Width:</th><td align="left">'+values['banner_width']+'mm</td></tr><tr><th align="right">Height:</th><td align="left">'+values['banner_height']+'mm</td></tr><tr><th align="right">Hanging:</th><td align="left">'+values['hanging']+'</td></tr></table></td></tr></table>';
        					form3 += '<hr />';
						form3 += '<br /><br /><div id="selectBnts">';
						form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        					form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        					form3 += '</div>';
        					form3 += '</div> <!--End Box Silver Content-->';
        					form3 += '</form>';
        					form3 += '</div>';
     						form3 += '<div id="boxSilverBottom"></div>';
        					form3 += '<!--Grey box end-->';

						$('#boxAqua').html(form3);
					} else {
						alert("Please set a Banner Width and Height to continue and select a Hanging method..."); return false;
					}
				
				} else if (values['banner_type'] === "pullup") {
					values['banner_size']   = $('input:radio[name=bsize]:checked').val();
					if(values['banner_size'] === "_850x2000") {
					//	alert("is 850!");
						values['quality']       = $('input:radio[name=quality850]:checked').val();
					} else {
						values['quality']       = $('input:radio[name=quality1200]:checked').val();
					}

					form3 = '<span class="stepBlack">Step 3.</span>';
   					form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   					form3 += '<!--Grey box-->';
        				form3 += '<div id="boxSilverTop"></div>';
        				form3 += '<div id="boxSilver">';
        				form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        				form3 += '<div id="boxSilverContent">';
        				form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
					form3 += '<br />Product Interest: <strong>BANNERS</strong>. ';
        				form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        				form3 += '<br/><br/>';
        				form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Banner Size:</th><td align="left">'+values['banner_size']+'</td></tr><tr><th align="right">Banner Quality:</th><td align="left">'+values['quality']+'</td></tr><tr><th align="right">Banner Type:</th><td align="left">'+values['banner_type']+'</td></tr><tr><th align="right">&nbsp;</th><td align="left">&nbsp;</td></tr></table></td></tr></table>';
        				form3 += '<hr />';
					form3 += '<br /><br /><div id="selectBnts">';
					form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        				form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        				form3 += '</div>';
        				form3 += '</div> <!--End Box Silver Content-->';
        				form3 += '</form>';
        				form3 += '</div>';
     					form3 += '<div id="boxSilverBottom"></div>';
        				form3 += '<!--Grey box end-->';

					$('#boxAqua').html(form3);
					
				} else {
					alert("Disfunctional code: None or incorrect values found!");
				}

			} else if(values['interest'] === 'businesscards') {

				values['quantity'] = '10000 Business Cards';
				values['bc_print'] = $('input:radio[name=bc_print]:checked').val();

				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>BUSINESS CARDS</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Print Type:</th><td align="left">'+values['bc_print']+'</td></tr><tr><th align="right">&nbsp;</th><td align="left">&nbsp;</td></tr><tr><th align="right">&nbsp;</th><td align="left">&nbsp;</td></tr><tr><th align="right">&nbsp;</th><td align="left">&nbsp;</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';

				$('#boxAqua').html(form3);

			}  else if(values['interest'] === 'vehiclegraphics') {

				values['quantity'] = $('#quantity').val();
				if(values['quantity'].length < 1 || !isFinite(values['quantity'])) { alert("You must add a quantity please"); return false; }

				values['vehicle_wrap'] = $('input:radio[name=vwrap]:checked').val();
				values['vehicle_type'] = $('#vehicletype').val();
				if(values['vehicle_type'].length <= 2) { alert("You must enter a vehicle type please"); return false; }

				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>VEHICLE GRAPHICS</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Vehicle Type:</th><td align="left">'+values['vehicle_type']+'</td></tr><tr><th align="right">Wrap Type:</th><td align="left">'+values['vehicle_wrap']+'</td></tr><tr><th align="right">&nbsp;</th><td align="left">&nbsp;</td></tr><tr><th align="right">&nbsp;</th><td align="left">&nbsp;</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';
	
				$('#boxAqua').html(form3);

			}  else if(values['interest'] === 'corflutes') {

				values['quantity'] = $('#quantity').val();
				if(values['quantity'].length < 1 || !isFinite(values['quantity'])) { alert("You must add a quantity please"); return false; }

				values['banner_size'] = $('input:radio[name=banner_size]:checked').val();
				values['banner_colours'] = $('input:radio[name=banner_colour]:checked').val();

				if(values['banner_size'] === "Custom") {
					values['banner_width'] = $('#banner_width').val();
					values['banner_height'] = $('#banner_height').val();
					if(values['banner_width'] === '' || values['banner_width'] === 'Not Used' || values['banner_height'] === '' || values['banner_height'] === 'Not Used') { alert("Please enter values for Banner Width and Height"); return false; }
				} else {
					values['banner_width'] = "Not Used";
					values['banner_height'] = "Not Used";
				}

				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>CORFLUTE</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Banner Size:</th><td align="left">'+values['banner_size']+'mm</td></tr><tr><th align="right">Banner Colour:</th><td align="left">'+values['banner_colours']+'</td></tr><tr><th align="right">Width:</th><td align="left">'+values['banner_width']+'mm</td></tr><tr><th align="right">Height:</th><td align="left">'+values['banner_height']+'mm</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';

				$('#boxAqua').html(form3);

			}   else if(values['interest'] === 'pylon') {

				values['pylon_lot'] = $('#lot').val();
				if(values['pylon_lot'].length === 0 || !isFinite(values['pylon_lot'])) { alert("Please enter a valid Lot number"); return false; }
				values['pylon_street'] = $('#street').val();
				if(values['pylon_street'].length === 0) { alert("Please enter a valid street name"); return false; }
				values['pylon_town'] = $('#town').val();
				if(values['pylon_town'].length === 0) { alert("Please enter a valid town name"); return false; }
				values['pylon_state'] = $('#state').val();
				if(values['pylon_state'].length === 0) { alert("Please select your state"); return false; }
				values['pylon_postcode'] = $('#postcode').val();
				if(values['pylon_postcode'].length === 0 || !isFinite(values['pylon_postcode'])) { alert("Please enter a valid Postcode"); return false; }
			
				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>PYLON</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Lot No:</th><td align="left">'+values['pylon_lot']+'</td></tr><tr><th align="right">Street:</th><td align="left">'+values['pylon_street']+'</td></tr><tr><th align="right">Town-Suburb:</th><td align="left">'+values['pylon_town']+'</td></tr><tr><th align="right">State:</th><td align="left">'+values['pylon_state']+'</td></tr><tr><th align="right">Postcode:</th><td align="left">'+values['pylon_postcode']+'</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';

				$('#boxAqua').html(form3);

			}   else if(values['interest'] === 'stickers') {

				values['quantity'] = $('#quantity').val();
				if(values['quantity'] === '') { alert("Please add a quantity first"); return false; }

				values['application'] = $('input:radio[name=application]:checked').val();				
				if (values['application'] !== "Reverse-Applied") {					
					values['lamination'] = $('input:radio[name=lamination]:checked').val();
					values['specification'] = $('input:radio[name=specification]:checked').val();
				
				} else {					
					values['lamination'] = "NOT USED";
					values['specification'] = "NOT USED";

				}

				values['sticker_width'] = $('#poster_width').val();
				values['sticker_height'] = $('#poster_height').val();
				if(values['sticker_width'] == '' || values['sticker_height'] == '') { alert("Please choose a Width and Height first"); return false; }

				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>STICKERS</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Application:</th><td align="left">'+values['application']+'</td></tr><tr><th align="right">Specification:</th><td align="left">'+values['specification']+'</td></tr><tr><th align="right">Lamination:</th><td align="left">'+values['lamination']+'</td></tr><tr><th align="right">Height:</th><td align="left">'+values['sticker_height']+'mm</td></tr><tr><th align="right">Width:</th><td align="left">'+values['sticker_width']+'mm</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';

				$('#boxAqua').html(form3);

			}   else if(values['interest'] === 'shopfrontsignage') {

				values['sfs_lot'] = $('#lot').val();
				if(values['sfs_lot'].length === 0 || !isFinite(values['sfs_lot'])) { alert("Please enter a valid Lot number"); return false; }
				values['sfs_street'] = $('#street').val();
				if(values['sfs_street'].length === 0) { alert("Please enter a valid street name"); return false; }
				values['sfs_town'] = $('#town').val();
				if(values['sfs_town'].length === 0) { alert("Please enter a valid town name"); return false; }
				values['sfs_state'] = $('#state').val();
				if(values['sfs_state'].length === 0) { alert("Please select your state"); return false; }
				values['sfs_postcode'] = $('#postcode').val();
				if(values['sfs_postcode'].length === 0 || !isFinite(values['sfs_postcode'])) { alert("Please enter a valid Postcode"); return false; }

				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>SHOP FRONT SIGNAGE</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Lot No:</th><td align="left">'+values['sfs_lot']+'</td></tr><tr><th align="right">Street:</th><td align="left">'+values['sfs_street']+'</td></tr><tr><th align="right">Town.Suburb:</th><td align="left">'+values['sfs_town']+'</td></tr><tr><th align="right">State:</th><td align="left">'+values['sfs_state']+'</td></tr><tr><th align="right">Postcode:</th><td align="left">'+values['sfs_postcode']+'</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';

				$('#boxAqua').html(form3);

			}   else if(values['interest'] === 'posters') {

				values['quantity'] = $('#quantity').val();
				if(values['quantity'] === '') { alert("Please select a quantity first"); return false; }

				values['application'] = $('input:radio[name=application]:checked').val();
				
				if (values['application'] !== "Reverse-Applied") {
					
					values['lamination'] = $('input:radio[name=lamination]:checked').val();
					values['specification'] = $('input:radio[name=specification]:checked').val();
				
				} else {
					
					values['lamination'] = "NOT USED";
					values['specification'] = "NOT USED";

				}
				values['poster_width'] = $('#poster_width').val();
				values['poster_height'] = $('#poster_height').val();
				if(values['poster_width'].length === 0 || values['poster_height'].length === 0) { alert("Please choose a Width and Height first"); return false; }

				form3 = '<span class="stepBlack">Step 3.</span>';
   				form3 += '<span class="stepWhite"> Review details and get a quote</span>';           
   				form3 += '<!--Grey box-->';
        			form3 += '<div id="boxSilverTop"></div>';
        			form3 += '<div id="boxSilver">';
        			form3 += '<form id="quoteManager" name="quoteManager" method="post" action="#" onsubmit="return false;">';
        			form3 += '<div id="boxSilverContent">';
        			form3 += 'Please review all your details below and if correct press &#145;Get Quote&#146; to submit them: ';
				form3 += '<br />Product Interest: <strong>POSTERS</strong>. ';
        			form3 += '<span class="required"> <span class="requiredOrange">*</span> required</span>';
        			form3 += '<br/><br/>';
        			form3 += '<table width="100%"><tr><td><table class="quotepart3" width="100%"><tr><th align="right">First Name:</th><td align="left">'+values['fname']+'</td></tr><tr><th align="right">Surname:</th><td align="left">'+values['lname']+'</td></tr><tr><th align="right">Company:</th><td align="left">'+values['company']+'</td></tr><tr><th align="right">Phone Number:</th><td align="left">'+values['phone']+'</td></tr><tr><th align="right">E-mail Address:</th><td align="left">'+values['email']+'</td></tr></table></td><td><table class="quotepart3" width="100%"><tr><th align="right">Quantity:</th><td align="left">'+values['quantity']+'</td></tr><tr><th align="right">Application:</th><td align="left">'+values['application']+'</td></tr><tr><th align="right">Specification:</th><td align="left">'+values['specification']+'</td></tr><tr><th align="right">Lamination:</th><td align="left">'+values['lamination']+'</td></tr><tr><th align="right">Heigh:</th><td align="left">'+values['poster_height']+'mm</td></tr><tr><th align="right">Width:</th><td align="left">'+values['poster_width']+'mm</td></tr></table></td></tr></table>';
        			form3 += '<hr />';
				form3 += '<br /><br /><div id="selectBnts">';
				form3 += '<input name="goback" type="submit" value="Back" class="back" onclick="website.quoteManager(\'two\');" /> ';
        			form3 += '<input name="getquote" type="submit" value="Get Quote" class="continue" onclick="website.quoteManager(\'finish\');" /> ';
        			form3 += '</div>';
        			form3 += '</div> <!--End Box Silver Content-->';
        			form3 += '</form>';
        			form3 += '</div>';
     				form3 += '<div id="boxSilverBottom"></div>';
        			form3 += '<!--Grey box end-->';

				$('#boxAqua').html(form3);
			}

		}
		if (step == "finish") {

			values['form3save'] = $('#boxAqua').html();

			response = function() {

				dtext = '<div style="text-align: center;"><span class="quoteThankyou"><h2>Thankyou for your online quote enquiry</h2>Someone from the friendly Expressway Signs sales team will be in contact with you shortly.</span><br /><span title="Start Again" style="color: blue; cursor: pointer;" onclick="website.quoteManager(\'start\'); return false;">Return To Start</span></div>';
				values['form3save'] = $('#boxAqua').html();
				$('#selectBnts').html(dtext);
				values['interest'] = '';

			}
			
			purl = "scripts/ajax.php?action=quotes&name="+values['name']+"&company="+values['company']+"&phone="+values['phone']+"&email="+values['email']+"&interest="+values['interest']+"&quantity="+values['quantity']+"&bannertype="+values['banner_type']+"&width="+values['banner_width']+"&height="+values['banner_height']+"&hanging="+values['hanging']+"&bcprint="+values['bc_print']+"&vwrap="+values['vehicle_wrap']+"&vtype="+values['vehicle_type']+"&bcolours="+values['banner_colours']+"&bsize="+values['banner_size']+"&application="+values['application']+"&specification="+values['specification']+"&lamination="+values['lamination']+"&poster_width="+values['poster_width']+"&poster_height="+values['poster_height']+"&sfs_lot="+values['sfs_lot']+"&sfs_street="+values['sfs_street']+"&sfs_town="+values['sfs_town']+"&sfs_state="+values['sfs_state']+"&sfs_postcode="+values['sfs_state']+"&pylon_lot="+values['pylon_lot']+"&pylon_street="+values['pylon_street']+"&pylon_town="+values['pylon_town']+"&pylon_state="+values['pylon_state']+"&pylon_postcode="+values['pylon_postcode']+"&sticker_height="+values['sticker_height']+"&sticker_width="+values['sticker_width']+"&sid="+Math.random();

			$.ajax({ url: purl, success: function(html) { if(html == "failed") { alert("Sorry, Your Quote could NOT be registered at this moment!"); return false; } else { response(); } } });

			
		}

	}
}

