//---- Created using Likno Web Modal Windows Builder ver. 1.1.122.7 -----

// Copyright (c) Likno Software 2008-2009
// This code is property of Likno Software and licensed for use in *websites* only. It is *not* licensed for use in distributable implementations (applications or CD-based webs), unless the related license is provided by Likno Software.
// Any unauthorized use, reverse-engineering, alteration, transmission, transformation, or copying of any means (electronic or not) is strictly prohibited and will be prosecuted.
// *Removal of the present copyright notice is strictly prohibited*

var headID = document.getElementsByTagName("head")[0];

var lwmwName = 'bookth';

var nua=navigator.userAgent,scriptNo=(nua.indexOf('Chrome')>-1)?2:((nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1))));var lwmwmpi=document.location,xt="";
var mpa=lwmwmpi.protocol+"//"+lwmwmpi.host;
var lwmwmpi=lwmwmpi.protocol+"//"+lwmwmpi.host+lwmwmpi.pathname;
if(scriptNo==1){oBC=document.all.tags("BASE");if(oBC && oBC.length) if(oBC[0].href) lwmwmpi=oBC[0].href;}
while (lwmwmpi.search(/\\/)>-1) lwmwmpi=lwmwmpi.replace("\\","/");
lwmwmpi=lwmwmpi.substring(0,lwmwmpi.lastIndexOf("/")+1);
var e=document.getElementsByTagName("SCRIPT");
for (var i=0;i<e.length;i++){if (e[i].src){if (e[i].src.indexOf(lwmwName+".js")!=-1){xt=e[i].src.split("/");if (xt[xt.length-1]==lwmwName+".js"){xt=e[i].src.substring(0,e[i].src.length-lwmwName.length-3);if (e[i].src.indexOf("://")!=-1){lwmwmpi=xt;}else{if(xt.substring(0,1)=="/")lwmwmpi=mpa+xt; else lwmwmpi+=xt;}}}}}
while (lwmwmpi.search(/\/\.\//)>-1) {lwmwmpi=lwmwmpi.replace("/./","/");}

var bookth,bookthmodal;

if (typeof(jQuery) == 'undefined'){
	var newScript_jQ = document.createElement('script');
	newScript_jQ.type = 'text/javascript';
	newScript_jQ.onload = jQloaded;
	newScript_jQ.onreadystatechange = jQloaded;
	newScript_jQ.src = lwmwmpi+"jquery.js";
	headID.appendChild(newScript_jQ);
} else jQloaded();

function jQloaded(){
	if (typeof(jQuery) != 'undefined'){ 
		var newScript_lib = document.createElement('script');
		newScript_lib.type = 'text/javascript';
		newScript_lib.src = lwmwmpi+"likno-modal-lib.js";
		newScript_lib.onload = load_bookth;
		newScript_lib.onreadystatechange = load_bookth;
		headID.appendChild(newScript_lib);
	}
}

function load_bookth() {if (typeof(jQuery) != 'undefined' && typeof(jQuery.liknoModal) != 'undefined'){jQuery.bookth = jQuery.extend(true, {}, jQuery.liknoModal);jQuery.bookth.impl.defaults = jQuery.extend(true, jQuery.bookth.impl.defaults, {modalClass: 'bookth',overlayId: 'bookth-overlay',containerId: 'bookth-container',ZIndex:2000,overlayCss:{backgroundColor:'#000000'},opacity:50,close:{closeClass: 'bookth-close',overlayClose:true,escClose:true,show:true,text:"<div name='myLiknoModalCloseName'><span title='Close'><a href='javascript:void(0)' style='color:#000066;'>Close</a> <img src='"+lwmwmpi+"bookth/close.gif' align='absmiddle' /></span></div>", textCss:nRTC("top: 10px; right: 10px; font-size:11px; font-family:Verdana,Arial,Helvetica,sans-serif;")},containerCss:nRTC("width:700px;height:600px;font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; border:3px solid #CFDEF1;"),domainCode:'246C373D5B223638373437343730222C22334132463246222C2237303631373337333636363137333734222C223633364636443246225D2C246C352C246C363D5B223636363936433635222C223643364636333631364336383646373337343246222C223233373536453643363936443639373436353634333132333246225D3B',ajaxLoadDiv:"<div id='modalAjax' style='background-image:url("+lwmwmpi+"bookth/ajax-loader-clock.gif);background-position: center center; background-repeat: no-repeat;'></div>",header:{show:true,text:"Theory Test Booking Form",textCss:nRTC("text-align:center; background-color:#E1EDFB; border-width: 0px 0px 3px 0px; border-style: solid; border-color: #CFDEF1; height:25px; padding:10px 0px 0px 0px;")},footer:{show:true,text:"Click on the overlay or press \"ESC\" to close",textCss:nRTC("text-align:center; background-color:#E1EDFB; border-width: 3px 0px 0px 0px; border-style: solid; border-color: #CFDEF1;height:25px; padding:10px 0px 0px 0px;")},wrapCss:nRTC("background-color:#EAF1FB; padding:3px;"),isMultiSheet:false, currentSheet:0,loop:true,play:{autoStart:false,pauseByMouse:false,direction:0,delay:1500},navigationBar:{maxSheets:9,show:true,showFirst:true,showPrev:true,showPlayPause:true,showNext:true,showLast:true,showSheets:true,cssClasses:".bookth{border-width:0px;margin:0px;padding:0px;} .bookth.navigationBarArea {     text-align: center;     background-color: #CFDEF1;     background-position: center;     background-image: url('"+lwmwmpi+"bookth/image_064_bg.png');     height: 19px; }  .bookth.navigationBarCenterSection {     font-family: Verdana, Arial, Helvetica, sans-serif;     font-size: 11px;     text-align: center; }  .bookth.navigationBarSheetSection { }  .bookth.navigationBarFirst {      padding-right: 1px; }  .bookth.navigationBarPrev { }  .bookth.navigationBarNext { }  .bookth.navigationBarLast {     padding-left: 1px; }  .bookth.navigationBarPlayPause {     margin-right: 5px; }  .bookth.navigationBarText {     font-family: Verdana, Arial, Helvetica, sans-serif;     font-size: 11px;     color: #425080;     margin-right: 5px; }  .bookth.navigationBarSheetLink {     color: #425080;     text-decoration: underline;     cursor: pointer; }  .bookth .bookth.navigationBarSheetLinkHover {     color: #6475b0; }  .bookth.navigationBarSheetSelected {     color: #425080;     font-weight: bold; }  .bookth.navigationBarSheetDots {     color: #6475b0; }",text:"Sheets:", images:{butFirst:lwmwmpi+'bookth/image_064_first.png',butFirstOver:lwmwmpi+'bookth/image_064_first_over.png',butPrev:lwmwmpi+'bookth/image_064_previous.png',butPrevOver:lwmwmpi+'bookth/image_064_previous_over.png',butPlay:lwmwmpi+'bookth/image_064_play.png',butPlayOver:lwmwmpi+'bookth/image_064_play_over.png',butPause:lwmwmpi+'bookth/image_064_pause.png',butPauseOver:lwmwmpi+'bookth/image_064_pause_over.png',butNext:lwmwmpi+'bookth/image_064_next.png',butNextOver:lwmwmpi+'bookth/image_064_next_over.png',butLast:lwmwmpi+'bookth/image_064_last.png',butLastOver:lwmwmpi+'bookth/image_064_last_over.png'}},transition:{openWhat:{height:'show'}, openHow: 0,closeWhat:{height:'hide'}, closeHow: 0},dataId: "bookth-data"});jQuery(function () {jQuery("#bookthmodal").click(function(){bookthmodal();});});bookth = function (data, options) {return jQuery.bookth.impl.init(data, options);};bookth.close = function (doNext) {return jQuery.bookth.impl.close(doNext);};bookth.bookthmodal=bookthmodal=function(options){jQuery.bookth.impl.init("<form action=\"/HDWForm2Mail/Form2Mail.asp\" method=\"post\" enctype=\"application/x-www-form-urlencoded\" name=\"theoryform\" target=\"_blank\" id=\"form1\" accept-charset=\"iso-8859-1\">     <table width=\"519\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">       <tr>         <td width=\"180\" colspan=\"-1\"><span id=\"sprytextfield11\">           <label></label>           </span>             <table width=\"673\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">               <tr bgcolor=\"#9DFFFF\">                 <td colspan=\"4\">Please Complete in CAPITAL LETTERS</td>               </tr>               <tr>                 <td colspan=\"4\"><table cellpadding=\"0\" cellspacing=\"0\">               <tr>                       <td>Category of test</td>                     <td>Car                       <label><span id=\"sprycheckbox1\">                       <input name=\"category \" type=\"checkbox\" id=\"category \" value=\"Book car theory test\" checked=\"checked\" />                       <span class=\"checkboxRequiredMsg\"></span></span></label></td>               </tr>                     <tr>                       <td colspan=\"2\">&nbsp;</td>                     </tr>                     <tr>                       <td height=\"25\" colspan=\"2\">  Select the on screen text for your test</td>                     </tr>                     <tr>                       <td colspan=\"2\"><table width=\"200\">                         <tr>                           <td><label>                             <input name=\"On screen language\" type=\"radio\" id=\"On screen language_0\" value=\"English\" checked=\"checked\" />                             English</label></td>                         </tr>                         <tr>                           <td><label>                             <input type=\"radio\" name=\"On screen language\" value=\"Welsh\" id=\"On screen language_1\" />                             Welsh</label></td>                         </tr>                       </table>                       </td>                   </tr>                     <tr bgcolor=\"#9DFFFF\">                       <td colspan=\"2\" bgcolor=\"#9DFFFF\"><strong>Do you need any special   arrangements?</strong><br />                         For example you may need to listen to the test questions   through headphones in your own language or see the questions and answers in   British Sign Language<em>.</em> </td>                     </tr>                     <tr>                       <td width=\"114\"><span id=\"spryselect2\">                         <label></label>                         <span class=\"selectRequiredMsg\">Please select an item.</span></span></td>                       <td width=\"553\"><span id=\"spryselect3\"><span class=\"selectRequiredMsg\"></span></span></td>                   </tr>                 </table></td>               </tr>               <tr>                 <td colspan=\"4\"><input name=\"Spec Arrangements\" type=\"radio\" id=\"No\" value=\"No I do not require any special arrangements\" checked=\"checked\" />                    No                      <input type=\"radio\" name=\"Spec Arrangements\" ID=\"specarr\" value=\"Yes I require spec arrangements\" />                                      Yes</td>               </tr>               <tr bgcolor=\"#9DFFFF\">                 <td colspan=\"4\"><strong>Enter Your Driving Licence Number <em>(from Driving   Licence)</em></strong><br />                   Please enter your Driving Licence Number below, with no   spaces. You will find your Driving Licence Number on your Driving Licence.</td>               </tr>               <tr>                 <td colspan=\"2\"><span id=\"sprytextfield1\">Great Britain                   <input name=\"Driver Number\" type=\"text\" id=\"Driver Number\" tabindex=\"1\" size=\"16\" maxlength=\"16\" />                       <span class=\"textfieldRequiredMsg\"></span><span class=\"textfieldMinCharsMsg\"></span><span class=\"textfieldMaxCharsMsg\"></span></span>OR </td>                 <td>Northern Ireland                   <input name=\"N Ireland\" type=\"text\" id=\"N Ireland\" tabindex=\"2\" size=\"16\" /></td>                 <td width=\"10\">&nbsp;</td>               </tr>               <tr>                 <td width=\"125\">Title<span id=\"spryselect1\"><br />                       <select name=\"Title\" id=\"Title\" tabindex=\"3\">                         <option value=\"\" selected=\"selected\"></option>                         <option value=\"Ms\">Ms</option>                         <option value=\"Mr\">Mr</option>                         <option value=\"Mrs\">Mrs</option>                         <option value=\"Miss\">Miss</option>                         <option value=\"rev\">Rev</option>                       </select>                       <span class=\"selectInvalidMsg\"></span> <span class=\"selectRequiredMsg\"></span></span></td>                 <td width=\"157\"><span id=\"sprytextfield3\">                   <label>First Names<br />                   <input name=\"First Names\" type=\"text\" id=\"First Names\" tabindex=\"4\" size=\"20\" />                   </label>                   <span class=\"textfieldRequiredMsg\"></span></span></td>                 <td width=\"371\"><span id=\"sprytextfield\">                   <label><span id=\"sprytextfield9\"> Surname<br />                   <input name=\"Surname\" type=\"text\" id=\"Surname\" tabindex=\"5\" size=\"20\" />                   <span class=\"textfieldRequiredMsg\"></span></span><br />                   </label>                   <span class=\"textfieldRequiredMsg\"></span></span></td>               </tr>               <tr>                 <td colspan=\"2\" rowspan=\"2\"><span id=\"sprytextarea1\">                   <label>Address and Post Code<br />                   <textarea name=\"Address\" id=\"Address\" cols=\"40\" rows=\"5\" tabindex=\"6\"></textarea>                   </label>                   <span class=\"textareaRequiredMsg\"></span></span></td>                 <td height=\"52\"><span id=\"sprytextfield5\">                   <label>Daytime tel number<br />                   <input name=\"Daytime Tel Num\" type=\"text\" id=\"Daytime Tel Num\"tabindex=\"7\" size=\"20\" />                   <br />                   </label>                   <span class=\"textfieldRequiredMsg\"></span></span></td>               </tr>               <tr>                 <td><span id=\"sprytextfield6\">                   <label>Mobile tel number<br />                   <input name=\"Mobile \" type=\"text\" id=\"Mobile \" tabindex=\"8\" size=\"20\" />                   </label>                   <span class=\"textfieldRequiredMsg\"></span></span></td>               </tr>               <tr>                 <td colspan=\"4\">E Mail address<span id=\"sprytextfield8\"><br />                       <label></label>                       <input name=\"e mail address\" type=\"text\" id=\"e mail address\" tabindex=\"9\" size=\"40\" maxlength=\"40\" />                       <span class=\"textfieldRequiredMsg\"></span><span class=\"textfieldInvalidFormatMsg\"></span></span></td>               </tr>               <tr>                 <td colspan=\"4\">Confirm e mail address </td>               </tr>               <tr>                 <td colspan=\"4\"><span id=\"sprytextfield10\">                   <label>                   <input name=\"Confirm  \" type=\"text\" id=\"Confirm  \" tabindex=\"10\" size=\"40\" maxlength=\"40\" />                   </label>                   <span class=\"textfieldRequiredMsg\"></span><span class=\"textfieldInvalidFormatMsg\"></span></span></td>               </tr>               <tr bgcolor=\"#9DFFFF\">                 <td colspan=\"4\">Please enter the Theory Test centre of your choice <br /></td>               </tr>               <tr>                 <td colspan=\"4\"><span id=\"sprytextfield7\">                   <input type=\"text\" name=\"location\" id=\"location\" tabindex=\"11\"/>                 <span class=\"textfieldRequiredMsg\"></span></span>Find your nearest Theory Test centre here <a href=\"http://www.dsa.gov.uk/AtoZservices_Bannered.asp?letter=D&amp;CAT=-1&amp;s=&amp;TypeID=18&amp;TestType=\" target=\"_blank\" class=\"style1\">A to Z</a></td>               </tr>               <tr>                 <td colspan=\"3\"><label></label></td>               </tr>               <tr>                 <td colspan=\"4\" bgcolor=\"#9DFFFF\">When would you like to take your test.</td>               </tr>               <tr>                 <td colspan=\"4\">             <table width=\"501\">               <tr>                 <td width=\"493\"><label>                   <input type=\"radio\" name=\"Preferred date\" value=\"No Preference\" id=\"Preferred date_0\" />                   No Preference</label></td>               </tr>               <tr>                 <td><label>                   <input type=\"radio\" name=\"Preferred date\" value=\"ASAP\" id=\"Preferred date_1\" />                   ASAP</label></td>               </tr>               <tr>                 <td><label>                   <input type=\"radio\" name=\"Preferred date\" value=\"Preferred date\" id=\"Preferred date_2\" />                   Preferred date (dd/mm/yy)<span id=\"sprytextfield2\">                   <input name=\"Preferred date2\" type=\"text\" id=\"Preferred date\" tabindex=\"16\" size=\"8\" maxlength=\"8\" />                   <span class=\"textfieldInvalidFormatMsg\"></span></span></label></td>               </tr>             </table>             <label>If the date you select is unavailable we will book the next available option.<br />                     </label>                     <span class=\"textfieldRequiredMsg\"></span><span class=\"textfieldInvalidFormatMsg\"></span></td>               </tr>               <tr>                 <td colspan=\"4\" bgcolor=\"#9DFFFF\"><div align=\"center\">                     <input type=\"submit\" name=\"Submit\" id=\"Submit\" value=\"Go to payment page\" />                     <input type=\"reset\" name=\"Reset\" id=\"Reset\" value=\"Reset\" />                 </div></td>               </tr>             </table> <span id=\"sprytextfield4\">             <label></label>           </span></td>       </tr>     </table>     <input type=\"hidden\" name=\"hdwemail\" id=\"hdwemail\" value=\"tdc+passfast.com\" />     <input type=\"hidden\" name=\"hdwok\" id=\"hdwok\" value=\"http://www.passfast.com/paytheory.htm\" />     <input type=\"hidden\" name=\"hdwnook\" id=\"hdwnook\" value=\"http://www.passfast.com/error.htm\" />   </form>",options);};}}
/*122.7*/