Spring Open Day

Spring Open Day Registration

<script>
var schools = {};
var ug_courses = {};
ug_courses["-SH"] = "Science and Health";
ug_courses["ACM"]= "- BSc Actuarial Mathematics";
ug_courses["CAFM"]= "- Common Entry, Actuarial, Financial Maths";
ug_courses["AS"]= "- BSc in Analytical Science";
ug_courses["AC"]= "- BSc in Chemical and Pharmaceutical Science";
ug_courses["CSGE"]= "-Chemical Sciences General Entry";
ug_courses["PGE"]= "- Physics general entry";
ug_courses["ESH"]= "- BSc Environmental Science & Technology";
ug_courses["BSG"]= "- Biological Sciences General Entry";
ug_courses["GCB"]= "- BSc in Genetics & Cell Biology";
ug_courses["BT"]= "- BSc in Biotechnology";
ug_courses["SSH"]= "- BSc Sport Science and Health";
ug_courses["SE"]= "- BSc Science Education";
ug_courses["ATT"]= "- BSc Athletic Therapy and Training";
ug_courses["PEB"]= "- BSc Physical Education and Biology";
ug_courses["PEM"]= "- BSc in Physical Education with Maths";
ug_courses["BPM"]= "- BSc in Psychology and Mathematics";
ug_courses["BPY"]= "- BSc (Honours) in Psychology";
ug_courses["BHS"]= "- BSc in Health & Society";
ug_courses["BNGN"]= "- BSc in Nursing (General)";
ug_courses["BNPY"]= "- BSc in Mental Health Nursing";
ug_courses["BNID"]= "- BSc in Nursing (Intellectual Disability)";
ug_courses["BNCG"]= "- BSc in Children's & General Nursing";
ug_courses["BPDT"]= "- BSc in Psychology and Disruptive Technologies";
ug_courses["-B"]= "Business";
ug_courses["BS"]= "- Bachelor of Business Studies";
ug_courses["INTB"]= "- Bachelor Business Studies International";
ug_courses["AMPSP"]= "- BSc in Aviation Management / with Pilot Studies / with Air Traffic Controller Studies";
ug_courses["EBC"]= "- BA in Global Business (Canada)";
ug_courses["EBF"]= "- BA in Global Business (France)";
ug_courses["EBG"]= "- BA in Global Business (Germany)";
ug_courses["EBS"]= "- BA in Global Business (Spain)";
ug_courses["EBT"]= "- BA in Global Business (USA)";
ug_courses["AF"]= "- BA in Accounting & Finance";
ug_courses["MINT"]= "- BSc Marketing, Innovation & Technology";
ug_courses["DBI"]= "- BSc in Digital Business and Innovation";
ug_courses["-HSS"]= "Humanities and Social Sciences";
ug_courses["BAJH"]= "- Bachelor of Arts (BAJH)";
ug_courses["BAJM"]= "- Bachelor Arts (BAJM)";
ug_courses["BAJL"]= "- Bachelor Arts (BAJL)";
ug_courses["BAJIL"]= "- Bachelor Arts (BAJIL)";
ug_courses["BAJP"]= "- Bachelor Arts (BAJMP)";
ug_courses["CS"]= "- BA in Communication Studies";
ug_courses["JR"]= "- BA in Journalism";
ug_courses["MMA"]= "- BSc in Multimedia";
ug_courses["JZCM"]= "- Jazz and Contemporary Music Performance";
ug_courses["BSSCI"]= "- BA in Social Science and Cultural Innovation";
ug_courses["ALTS"]= "- BA in Applied Language & Translation Studies";
ug_courses["GG"]= "- BA Gnó agus Gaeilge";
ug_courses["BCL"]= "- Bachelor of Civil Law (Law and Society)";
ug_courses["IR"]= "- BA in International Relations";
ug_courses["EPL"]= "- BA in Economics, Politics and Law";
ug_courses["GC"]= "- BA in Global Challenges";
ug_courses["BATRS"]= "- BA in Theology and Religious studies";
ug_courses["BCES"]= "- BA in Climate and Environmental Sustainability";
ug_courses["-EC"] = "Engineering and Computing";
ug_courses["CE"]= "- BEng in Common Entry into Engineering";
ug_courses["ECE"]= "- BEng Electronic & Computer Engineering";
ug_courses["ME"]= "- BEng in Mechatronic Engineering";
ug_courses["SSE"]= "- BEng in Mechanical and Sustainability Engineering";
ug_courses["CAM"]= "- BEng Mechanical & Manufacturing Engineering";
ug_courses["BMED"]= "- BEng in Biomedical Engineering";
ug_courses["GC"]= "- BA in Global Challenges";
ug_courses["EC"]= "- BSc Computing for Business";
ug_courses["CA"]= "- BSc in Computer Science";
ug_courses["DS"]= "- BSc in Data Science";
ug_courses["-IOE"] = "Institute of Education";
ug_courses["ET"]= "- BSc in Education & Training";
ug_courses["BECE"]= "- Bachelor of Early Childhood Education";
ug_courses["BED"]= "- Bachelor of Education";
ug_courses["BEDG"]= "- Bachelor of Education -Gaelt. Applicants";
ug_courses["CICE"]= "- Bachelor of Education- Restricted Entry";
ug_courses["BRE"]= "- Bachelor of Religious Education and English";
ug_courses["BREH"]= "- Bachelor of Religious Education and History";
ug_courses["BRM"]= "- Bachelor of Religious Education and Music";
ug_courses["BEDLAN"]= "- Bachelor of Education in Gaelige and FR/GE/SP";
ug_courses["BEDTEG"]= "- Bachelor of Education in Technology, Graphics and Engineering";
ug_courses["-DC"] = "DCU Connected";
ug_courses["BA"]= "- Diploma/BA in Humanities";
ug_courses["IT"]= "- Diploma/BSc in Information Technology";
ug_courses["BAPY"]= "- Diploma/BA in Humanities (Psychology Major)";
</script>
<div>
<h3>Register your details below and we will do the rest!</h3>

<p>&nbsp;</p>
</div>
<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Bootstrap --><!-- <link href="https://www.dcu.ie/sites/default/files/clickdimensions/css/bootstrap.mi…" rel="stylesheet" />
<link href="https://www.dcu.ie/sites/default/files/clickdimensions/chosen.min.css" rel="stylesheet" />
<link href="https://www.dcu.ie/sites/default/files/clickdimensions/custom-form.css" rel="stylesheet" /> --><noscript>
        <style>
            .no-script-form {
                display: none !important;
            }

            .no-script-warning {
                display: block !important;
            }
        </style>
    </noscript>
<style type="text/css">.col-form-label {
            font-family: DCUregular,Helvetica,Arial,sans-serif !important;
            font-weight: inherit;
        }
        body, h1, h2, h3, h4, h5, p {
            font-family: DCUregular,Helvetica,Arial,sans-serif !important;
        }
</style>
<div class="container contact-form-container" style="min-height:860px;">
<form action="https://analytics-eu.clickdimensions.com/forms/h/auKa2jTHhUOab9hMgC6MhA" class="no-script-form" id="formContact" method="post" name="formContact"><input id="txtSubject" leadfield="subject" name="txtSubject" type="hidden" value="SR 21/22 Spring Open Day Registration" /> <input id="txtOnlineLead" name="txtOnlineLead" type="hidden" value="1" />
<div class="form-group row"><label class="col-sm-2 col-form-label" for="rbtStatus">Type: </label>
<div class="col-sm-10"><select class="form-control" id="rbtStatus" name="rbtStatus"><option selected="selected" value="Undergraduate">Undergraduate</option> </select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="txtName">First Name: </label>

<div class="col-sm-10"><input class="form-control" id="txtFirstName" name="txtFirstName" required="" type="text" /></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="txtLastName">Last Name: </label>

<div class="col-sm-10"><input class="form-control" id="txtLastName" name="txtLastName" required="" type="text" /></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="rbtGender">Gender: </label>

<div class="col-sm-10"><select class="form-control" id="rbtGender" name="rbtGender"><option selected="selected" value="1">Male</option><option value="2">Female</option><option value="3">Prefer not to say</option> </select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="txtEmail">Email: </label>

<div class="col-sm-10"><input class="form-control" id="txtEmail" name="txtEmail" required="" type="email" /></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="txtMobile">Mobile: </label>

<div class="col-sm-10"><input class="form-control" id="txtMobile" name="txtMobile" required="" type="text" /></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="txtBirth">Date of Birth: </label>

<div class="col-sm-10"><input class="form-control" id="txtBirth" name="txtBirth" required="" type="datetime" /></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlCounty">County: </label>

<div class="col-sm-10"><select class="form-control" id="ddlCounty" name="ddlCounty"><option selected="selected" value="Antrim">Antrim</option><option value="Armagh">Armagh</option><option value="Carlow">Carlow</option><option value="Cavan">Cavan</option><option value="Clare">Clare</option><option value="Cork">Cork</option><option value="Country outside EU">Country outside EU</option><option value="Derry">Derry</option><option value="Donegal">Donegal</option><option value="Down">Down</option><option value="Dublin 1">Dublin 1</option><option value="Dublin 2">Dublin 2</option><option value="Dublin 3">Dublin 3</option><option value="Dublin 4">Dublin 4</option><option value="Dublin 5">Dublin 5</option><option value="Dublin 6">Dublin 6</option><option value="Dublin 6W">Dublin 6W</option><option value="Dublin 7">Dublin 7</option><option value="Dublin 8">Dublin 8</option><option value="Dublin 9">Dublin 9</option><option value="Dublin 10">Dublin 10</option><option value="Dublin 11">Dublin 11</option><option value="Dublin 12">Dublin 12</option><option value="Dublin 13">Dublin 13</option><option value="Dublin 14">Dublin 14</option><option value="Dublin 15">Dublin 15</option><option value="Dublin 16">Dublin 16</option><option value="Dublin 17">Dublin 17</option><option value="Dublin 18">Dublin 18</option><option value="Dublin 19">Dublin 19</option><option value="Dublin 20">Dublin 20</option><option value="Dublin 21">Dublin 21</option><option value="Dublin 22">Dublin 22</option><option value="Dublin 23">Dublin 23</option><option value="Dublin 24">Dublin 24</option><option value="DUBLIN 30">DUBLIN 30</option><option value="Dublin County">Dublin County</option><option value="Dublin Unknown">Dublin Unknown</option><option value="EU State other than Irl or UK">EU State other than Irl or UK</option><option value="Fermanagh">Fermanagh</option><option value="Galway">Galway</option><option value="Kerry">Kerry</option><option value="Kildare">Kildare</option><option value="Kilkenny">Kilkenny</option><option value="Laois">Laois</option><option value="Leitrim">Leitrim</option><option value="Limerick">Limerick</option><option value="Longford">Longford</option><option value="Louth">Louth</option><option value="Mayo">Mayo</option><option value="Meath">Meath</option><option value="Monaghan">Monaghan</option><option value="North County Dublin">North County Dublin</option><option value="Offaly">Offaly</option><option value="Outside Ireland">Outside Ireland</option><option value="Roscommon">Roscommon</option><option value="Sligo">Sligo</option><option value="South County Dublin">South County Dublin</option><option value="Tipperary">Tipperary</option><option value="Tyrone">Tyrone</option><option value="Unknown">Unknown</option><option value="Unknown Ireland">Unknown Ireland</option><option value="Waterford">Waterford</option><option value="Westmeath">Westmeath</option><option value="Wexford">Wexford</option><option value="Wicklow">Wicklow</option> </select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlCountry">Country of Residence: </label>

<div class="col-sm-10"><select class="form-control" id="ddlCountry" name="ddlCountry"><option value="Ireland">Ireland</option><option value="Afganistan">Afghanistan</option><option value="Albania">Albania</option><option value="Algeria">Algeria</option><option value="American Samoa">American Samoa</option><option value="Andorra">Andorra</option><option value="Angola">Angola</option><option value="Anguilla">Anguilla</option><option value="Antigua &amp; Barbuda">Antigua &amp; Barbuda</option><option value="Argentina">Argentina</option><option value="Armenia">Armenia</option><option value="Aruba">Aruba</option><option value="Australia">Australia</option><option value="Austria">Austria</option><option value="Azerbaijan">Azerbaijan</option><option value="Bahamas">Bahamas</option><option value="Bahrain">Bahrain</option><option value="Bangladesh">Bangladesh</option><option value="Barbados">Barbados</option><option value="Belarus">Belarus</option><option value="Belgium">Belgium</option><option value="Belize">Belize</option><option value="Benin">Benin</option><option value="Bermuda">Bermuda</option><option value="Bhutan">Bhutan</option><option value="Bolivia">Bolivia</option><option value="Bonaire">Bonaire</option><option value="Bosnia &amp; Herzegovina">Bosnia &amp; Herzegovina</option><option value="Botswana">Botswana</option><option value="Brazil">Brazil</option><option value="British Indian Ocean Ter">British Indian Ocean Ter</option><option value="Brunei">Brunei</option><option value="Bulgaria">Bulgaria</option><option value="Burkina Faso">Burkina Faso</option><option value="Burundi">Burundi</option><option value="Cambodia">Cambodia</option><option value="Cameroon">Cameroon</option><option value="Canada">Canada</option><option value="Canary Islands">Canary Islands</option><option value="Cape Verde">Cape Verde</option><option value="Cayman Islands">Cayman Islands</option><option value="Central African Republic">Central African Republic</option><option value="Chad">Chad</option><option value="Channel Islands">Channel Islands</option><option value="Chile">Chile</option><option value="China">China</option><option value="Christmas Island">Christmas Island</option><option value="Cocos Island">Cocos Island</option><option value="Colombia">Colombia</option><option value="Comoros">Comoros</option><option value="Congo">Congo</option><option value="Cook Islands">Cook Islands</option><option value="Costa Rica">Costa Rica</option><option value="Cote DIvoire">Cote DIvoire</option><option value="Croatia">Croatia</option><option value="Cuba">Cuba</option><option value="Curaco">Curacao</option><option value="Cyprus">Cyprus</option><option value="Czech Republic">Czech Republic</option><option value="Denmark">Denmark</option><option value="Djibouti">Djibouti</option><option value="Dominica">Dominica</option><option value="Dominican Republic">Dominican Republic</option><option value="East Timor">East Timor</option><option value="Ecuador">Ecuador</option><option value="Egypt">Egypt</option><option value="El Salvador">El Salvador</option><option value="Equatorial Guinea">Equatorial Guinea</option><option value="Eritrea">Eritrea</option><option value="Estonia">Estonia</option><option value="Ethiopia">Ethiopia</option><option value="Falkland Islands">Falkland Islands</option><option value="Faroe Islands">Faroe Islands</option><option value="Fiji">Fiji</option><option value="Finland">Finland</option><option value="France">France</option><option value="French Guiana">French Guiana</option><option value="French Polynesia">French Polynesia</option><option value="French Southern Ter">French Southern Ter</option><option value="Gabon">Gabon</option><option value="Gambia">Gambia</option><option value="Georgia">Georgia</option><option value="Germany">Germany</option><option value="Ghana">Ghana</option><option value="Gibraltar">Gibraltar</option><option value="Great Britain">Great Britain</option><option value="Greece">Greece</option><option value="Greenland">Greenland</option><option value="Grenada">Grenada</option><option value="Guadeloupe">Guadeloupe</option><option value="Guam">Guam</option><option value="Guatemala">Guatemala</option><option value="Guinea">Guinea</option><option value="Guyana">Guyana</option><option value="Haiti">Haiti</option><option value="Hawaii">Hawaii</option><option value="Honduras">Honduras</option><option value="Hong Kong">Hong Kong</option><option value="Hungary">Hungary</option><option value="Iceland">Iceland</option><option value="Indonesia">Indonesia</option><option value="India">India</option><option value="Iran">Iran</option><option value="Iraq">Iraq</option><option value="Ireland">Ireland</option><option value="Isle of Man">Isle of Man</option><option value="Israel">Israel</option><option value="Italy">Italy</option><option value="Jamaica">Jamaica</option><option value="Japan">Japan</option><option value="Jordan">Jordan</option><option value="Kazakhstan">Kazakhstan</option><option value="Kenya">Kenya</option><option value="Kiribati">Kiribati</option><option value="Korea North">Korea North</option><option value="Korea Sout">Korea South</option><option value="Kuwait">Kuwait</option><option value="Kyrgyzstan">Kyrgyzstan</option><option value="Laos">Laos</option><option value="Latvia">Latvia</option><option value="Lebanon">Lebanon</option><option value="Lesotho">Lesotho</option><option value="Liberia">Liberia</option><option value="Libya">Libya</option><option value="Liechtenstein">Liechtenstein</option><option value="Lithuania">Lithuania</option><option value="Luxembourg">Luxembourg</option><option value="Macau">Macau</option><option value="Macedonia">Macedonia</option><option value="Madagascar">Madagascar</option><option value="Malaysia">Malaysia</option><option value="Malawi">Malawi</option><option value="Maldives">Maldives</option><option value="Mali">Mali</option><option value="Malta">Malta</option><option value="Marshall Islands">Marshall Islands</option><option value="Martinique">Martinique</option><option value="Mauritania">Mauritania</option><option value="Mauritius">Mauritius</option><option value="Mayotte">Mayotte</option><option value="Mexico">Mexico</option><option value="Midway Islands">Midway Islands</option><option value="Moldova">Moldova</option><option value="Monaco">Monaco</option><option value="Mongolia">Mongolia</option><option value="Montserrat">Montserrat</option><option value="Morocco">Morocco</option><option value="Mozambique">Mozambique</option><option value="Myanmar">Myanmar</option><option value="Nambia">Nambia</option><option value="Nauru">Nauru</option><option value="Nepal">Nepal</option><option value="Netherland Antilles">Netherland Antilles</option><option value="Netherlands">Netherlands (Holland, Europe)</option><option value="Nevis">Nevis</option><option value="New Caledonia">New Caledonia</option><option value="New Zealand">New Zealand</option><option value="Nicaragua">Nicaragua</option><option value="Niger">Niger</option><option value="Nigeria">Nigeria</option><option value="Niue">Niue</option><option value="Norfolk Island">Norfolk Island</option><option value="Norway">Norway</option><option value="Oman">Oman</option><option value="Pakistan">Pakistan</option><option value="Palau Island">Palau Island</option><option value="Palestine">Palestine</option><option value="Panama">Panama</option><option value="Papua New Guinea">Papua New Guinea</option><option value="Paraguay">Paraguay</option><option value="Peru">Peru</option><option value="Phillipines">Philippines</option><option value="Pitcairn Island">Pitcairn Island</option><option value="Poland">Poland</option><option value="Portugal">Portugal</option><option value="Puerto Rico">Puerto Rico</option><option value="Qatar">Qatar</option><option value="Republic of Montenegro">Republic of Montenegro</option><option value="Republic of Serbia">Republic of Serbia</option><option value="Reunion">Reunion</option><option value="Romania">Romania</option><option value="Russia">Russia</option><option value="Rwanda">Rwanda</option><option value="St Barthelemy">St Barthelemy</option><option value="St Eustatius">St Eustatius</option><option value="St Helena">St Helena</option><option value="St Kitts-Nevis">St Kitts-Nevis</option><option value="St Lucia">St Lucia</option><option value="St Maarten">St Maarten</option><option value="St Pierre &amp; Miquelon">St Pierre &amp; Miquelon</option><option value="St Vincent &amp; Grenadines">St Vincent &amp; Grenadines</option><option value="Saipan">Saipan</option><option value="Samoa">Samoa</option><option value="Samoa American">Samoa American</option><option value="San Marino">San Marino</option><option value="Sao Tome &amp; Principe">Sao Tome &amp; Principe</option><option value="Saudi Arabia">Saudi Arabia</option><option value="Senegal">Senegal</option><option value="Seychelles">Seychelles</option><option value="Sierra Leone">Sierra Leone</option><option value="Singapore">Singapore</option><option value="Slovakia">Slovakia</option><option value="Slovenia">Slovenia</option><option value="Solomon Islands">Solomon Islands</option><option value="Somalia">Somalia</option><option value="South Africa">South Africa</option><option value="Spain">Spain</option><option value="Sri Lanka">Sri Lanka</option><option value="Sudan">Sudan</option><option value="Suriname">Suriname</option><option value="Swaziland">Swaziland</option><option value="Sweden">Sweden</option><option value="Switzerland">Switzerland</option><option value="Syria">Syria</option><option value="Tahiti">Tahiti</option><option value="Taiwan">Taiwan</option><option value="Tajikistan">Tajikistan</option><option value="Tanzania">Tanzania</option><option value="Thailand">Thailand</option><option value="Togo">Togo</option><option value="Tokelau">Tokelau</option><option value="Tonga">Tonga</option><option value="Trinidad &amp; Tobago">Trinidad &amp; Tobago</option><option value="Tunisia">Tunisia</option><option value="Turkey">Turkey</option><option value="Turkmenistan">Turkmenistan</option><option value="Turks &amp; Caicos Is">Turks &amp; Caicos Is</option><option value="Tuvalu">Tuvalu</option><option value="Uganda">Uganda</option><option value="United Kingdom">United Kingdom</option><option value="Ukraine">Ukraine</option><option value="United Arab Erimates">United Arab Emirates</option><option value="United States of America">United States of America</option><option value="Uraguay">Uruguay</option><option value="Uzbekistan">Uzbekistan</option><option value="Vanuatu">Vanuatu</option><option value="Vatican City State">Vatican City State</option><option value="Venezuela">Venezuela</option><option value="Vietnam">Vietnam</option><option value="Virgin Islands (Brit)">Virgin Islands (Brit)</option><option value="Virgin Islands (USA)">Virgin Islands (USA)</option><option value="Wake Island">Wake Island</option><option value="Wallis &amp; Futana Is">Wallis &amp; Futana Is</option><option value="Yemen">Yemen</option><option value="Zaire">Zaire</option><option value="Zambia">Zambia</option><option value="Zimbabwe">Zimbabwe</option> </select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlCourse1">Course #1: </label>

<div class="col-sm-10"><select class="form-control" data-placeholder="Choose a course..." id="ddlCourse1" name="ddlCourse1"></select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlCourse2">Course #2: </label>

<div class="col-sm-10"><select class="form-control" data-placeholder="Choose a course..." id="ddlCourse2" name="ddlCourse2"></select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlCourse3">Course #3: </label>

<div class="col-sm-10"><select class="form-control" data-placeholder="Choose a course..." id="ddlCourse3" name="ddlCourse3"></select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlStartDate">Intended Start Date: </label>

<div class="col-sm-10"><select class="form-control" id="ddlStartDate" name="ddlStartDate"></select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="ddlMatureStudent">Are You A Mature Student?: </label>

<div class="col-sm-10"><select class="form-control" id="ddlMatureStudent" name="ddlMatureStudent"><option value="no">No</option><option value="yes">Yes</option> </select></div>
</div>

<div class="form-group row"><label class="col-sm-2 col-form-label" for="rtbGDPR">Consent:</label>

<div class="col-sm-10"><input id="rtbGDPR" name="rtbGDPR" type="checkbox" value="Consent" /> I consent to be contacted by DCU. <a href="https://www.dcu.ie/studentrecruitment/data-protection" target="_blank">Click here</a> to read more about data protection.</div>

<div class="form-group row" style="margin:auto;"><input id="txtCourse1" name="txtCourse1" type="hidden" /> <input id="txtCourse2" name="txtCourse2" type="hidden" /> <input id="txtCourse3" name="txtCourse3" type="hidden" /> <input id="txtStartDate" name="txtStartDate" type="hidden" /> <input id="txtFormattedBirth" name="txtFormattedBirth" type="hidden" /> <input id="txtSchool" name="txtSchool" type="hidden" /> <input id="txtMobile" name="txtMobile" type="hidden" /><!-- <input type="hidden" id="txtSchool" name="txtSchool" /> --> <input class="form-control" type="submit" value="Submit" /></div>

<div class="row no-script-warning" style="display:none;">
<div class="col-sm-12">To display this form you need <a href="https://www.quackit.com/javascript/tutorial/how_to_enable_javascript.cfm">Javascript to be enabled</a>.</div>
</div>
</div>
</form>
<!-- <script src="https://www.dcu.ie/sites/default/files/clickdimensions/jquery-2.2.4.min…"></script><script src="https://www.dcu.ie/sites/default/files/clickdimensions/tabletop.js"></script><script src="https://www.dcu.ie/sites/default/files/clickdimensions/js/bootstrap.min…"></script><script src="https://www.dcu.ie/sites/default/files/clickdimensions/jquery.mask.js"></script><script src="https://www.dcu.ie/sites/default/files/clickdimensions/chosen.jquery.mi…"></script> --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha512-DUC8yqWf7ez3JD1jszxCWSVB0DMP78eOyBpMa5aJki1bIRARykviOuImIczkxlj1KhVSyS16w2FSQetkD4UU2w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.6.3/tabletop.min.js" integrity="sha512-cwBWq9a2PF03LT6y4DzVz4UR4makhMYlYrbV4wy9r7GbDiriYMnM8hMcd8/livzpHlD8tiuots54lMxfc3Ah+Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask…" integrity="sha512-pHVGpX7F/27yZ0ISY+VVjyULApbDlD0/X0rgGbTqCE7WFW5MezNTWG/dnhtbBuICzsd0WQPgpE4REBLv+UqChw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.jquery.min.js" integrity="sha512-rMGGF4wg1R73ehtnxXBt5mbUfN9JUJwbk21KMlnLZDJh7BkPmeovBuddZCENJddHYYMkCh9hPFnPmS9sspki8g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script>
        var underCoursesAddress = "https://docs.google.com/spreadsheets/d/1Ow8E-sqwUUxeXyzfhNu7HyMUV8iqdGq…";
        var postCoursesAddress = "https://docs.google.com/spreadsheets/d/1AbOt6FQTlSPSRwM4AaF0Nh3K8w7N7Td…";
        var schoolsAddress = "https://docs.google.com/spreadsheets/d/1JOvO0McuOtcIbL_fyA0BZ-dnZW33kVQ…";
        var qtyYears = 5;

        window.addEventListener('load', (event) => {
            loadEvents();
            //tabletopInit();

            //loadSchoolsFromArray();
            loadCoursesFromArray();
            loadYears();
        });

        function loadEvents() {
            // Chosen
            firstLoadCourses();
            //$("#ddlCounty").chosen();
            //$("#ddlCountry").chosen();

            // Type Change
            // $("[name='rbtStatus']").change(function () {
            //     loadCourses();
            // });

            // Form Submit
            $('#formContact').submit(function (event) {
                validateForm(event);
                formatDates();
            });

            // Masks
            $('#txtBirth').mask("00/00/0000", { placeholder: "DD/MM/YYYY" });
            $('#txtMobile').mask("(000) 0000 000000", { placeholder: "(000) 000 0000" });
        }

        function firstLoadCourses() {
            // $("#ddlCourse1").chosen();
            // $("#ddlCourse2").chosen();
            // $("#ddlCourse3").chosen();

            //loadCourses();
        }

        function formatDates() {
            var birth = $("#txtBirth").val().split("/");
            $("#txtFormattedBirth").val(birth[2] + "-" + birth[1] + "-" + birth[0]);
            $("#txtStartDate").val($("#ddlStartDate").find(":selected").text());
        }

        function validateForm(event) {
            //if (!populateCoursesField() || !populateSchoolCode() || !checkValidBirthday() || !checkGDPR()) {
            if (!populateCoursesField() || !checkValidBirthday() || !checkGDPR()) {
                event.preventDefault();
                return false;
            }
        }
        
        function checkGDPR() {
            if ($('#rtbGDPR').is(":checked")) {
                return true;
            } else {
                alert("Please accept the GDPR consent to receive email alerts from DCU.");
                return false;
            }
        }

        function checkValidBirthday() {
            var currentYear = new Date().getFullYear();
            var birth = $("#txtBirth").val().split("/");
            var year = birth[2];
            var month = birth[1];
            var day = birth[0];
            
            if (year < currentYear - 150) {
                alert("Invalid birthday year!");
                return false;
            }
            
            if (month < 1 || month > 12) {
                alert("Invalid birthday month!");
                return false;
            }
            
            if (day < 1 || day > 31) {
                alert("Invalid birthday day!");
                return false;
            }
            
            return true;
        }

        function populateSchoolCode() {
            var selectedSchoolCode = $("#ddlSchool").val();
            var selectedSchool = $("#ddlSchool").find(":selected").text();

            if (!selectedSchoolCode || selectedSchoolCode < 1) {
                alert("You have to select the school!");
                return false;
            }

            $("#txtSchool").val(selectedSchoolCode);
            return true;
        }

        function populateCoursesField() {

            var country = $("#ddlCountry").val();
            if (!country || country < 1) {
                alert('Please select a Country of Residence');
                return false;
            }
            var matureStudent = $("#ddlMatureStudent").val();
            if (!matureStudent || matureStudent < 1) {
                alert('Please select an answer for Are You A Mature Student');
                return false;
            }

            populateCoursesTexts();
            var course1 = $("#ddlCourse1").val();
            var course2 = $("#ddlCourse2").val();
            var course3 = $("#ddlCourse3").val();

            if (!course1 || course1 < 1) {
                alert('You have to select at least a primary course!');
                return false;
            }

            return true;
        }

        function populateCoursesTexts() {
            var course1 = $("#ddlCourse1").find(":selected").text() == "Select a course" ? "" : $("#ddlCourse1").find(":selected").text();
            var course2 = $("#ddlCourse2").find(":selected").text() == "Select a course" ? "" : $("#ddlCourse2").find(":selected").text();
            var course3 = $("#ddlCourse3").find(":selected").text() == "Select a course" ? "" : $("#ddlCourse3").find(":selected").text();

            $("#txtCourse1").val(course1);
            $("#txtCourse2").val(course2);
            $("#txtCourse3").val(course3);
        }

        function tabletopInit() {
            loadCourses();
            loadSchools(schoolsAddress);
        }

        function loadYears() {
            var date = new Date();
            var year = new Date().getFullYear();

            // Months starts at 0, so 7 = August
            if (date.getMonth() >= 7) {
                year++;
            }

            for (var i = 0; i < qtyYears; i++) {
                var formatedYear = "September " + year;
                appendOption("#ddlStartDate", formatedYear, formatedYear);

                year++;
            }
        }

        function loadCourses() {
            var checkedCourse = $("#rbtStatus option:selected").val();

            var address = checkedCourse == "Undergraduate" ? underCoursesAddress : postCoursesAddress;

            // Tabletop.init({
            //     key: address,
            //     callback: coursesLoaded,
            //     simpleSheet: true
            // });
        }

        function loadSchools(address) {
            // Tabletop.init({
            //     key: address,
            //     callback: schoolsLoaded,
            //     simpleSheet: true
            // });
        }

        function coursesLoaded(data) {
            clearCoursesSelections();
            $.each(data, function (index) {
                appendOption("#ddlCourse1", data[index]["Qualification"], data[index]["Description"]);
                appendOption("#ddlCourse2", data[index]["Qualification"], data[index]["Description"]);
                appendOption("#ddlCourse3", data[index]["Qualification"], data[index]["Description"]);
            });

            // Selects
            loadSelectsCoursesPlugin();
        }

        function loadCoursesFromArray() {
            clearCoursesSelections();
            for (var key in ug_courses) {
                appendOption("#ddlCourse1", key, ug_courses[key]);
                appendOption("#ddlCourse2", key, ug_courses[key]);
                appendOption("#ddlCourse3", key, ug_courses[key]);
            }

            // Selects
            loadSelectSchoolsPlugin();
        }

        function schoolsLoaded(data) {
            $.each(data, function (index) {
                //appendOption("#ddlCourse1", data[index]["Code"], data[index]["Qualification"]);
                appendOption("#ddlSchool", data[index]["Roll Number"], data[index]["Organisation Name"]);
            });

            // Selects
            loadSelectSchoolsPlugin();
        }

        function loadSchoolsFromArray() {
            for (var key in schools) {
                appendOption("#ddlSchool", key, schools[key]);
            }

            // Selects
            loadSelectSchoolsPlugin();
        }

        function loadSelectsCoursesPlugin() {
            $("#ddlCourse1").removeAttr("disabled");
            $("#ddlCourse2").removeAttr("disabled");
            $("#ddlCourse3").removeAttr("disabled");

            $("#ddlCourse1").trigger("chosen:updated");
            $("#ddlCourse2").trigger("chosen:updated");
            $("#ddlCourse3").trigger("chosen:updated");
        }

        function loadSelectSchoolsPlugin() {
            $("#ddlSchool").removeAttr("disabled");
            $("#ddlSchool").chosen();
        }

        function appendOption(selector, value, text) {
            if (value) {
                var optSelector = $(selector)
                .find('optgroup').last();
                
                optSelector = optSelector.length > 0 ? optSelector : $(selector);

                optSelector.append($("<option/>", {
                    value: value,
                    text: text
                }));
            }
            else {
                $(selector).append($("<optgroup/>", {
                    label: text
                }));
            }
        }

        function clearCoursesSelections() {
            var selectMessage = "Select a course";

            clearSelection("#ddlCourse1", selectMessage);
            clearSelection("#ddlCourse2", selectMessage);
            clearSelection("#ddlCourse3", selectMessage);
        }

        function clearSelection(selector, selectMessage) {
            $(selector).empty();
            $(selector).append($("<option/>", {
                value: "0",
                text: selectMessage
            }));
        }
    </script><!-- <script type="text/javascript">
        var cdPriority = true;
    </script><script type="text/javascript">
        var cdJsHost = (("https:" == document.location.protocol) ? "https://" : "https://");
        document.write(unescape("%3Cscript src='" + cdJsHost + "analytics-eu.clickdimensions.com/ts.js' type='text/javascript'%3E%3C/script%3E"));
    </script><script type="text/javascript">
        var cdAnalytics = new clickdimensions.Analytics('analytics-eu.clickdimensions.com');
        cdAnalytics.setAccountKey('aU6m9zRtFq0KamWehfUkvT');
        cdAnalytics.setDomain('dcuformtest.azurewebsites.net');
        cdAnalytics.setScore(typeof (cdScore) == "undefined" ? 0 : (cdScore == 0 ? null : cdScore));
        cdAnalytics.trackPage();
    </script> --></div>