BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Lough Ree Yacht Club - ECPv4.9.14//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Lough Ree Yacht Club
X-ORIGINAL-URL:https://www.lryc.ie
X-WR-CALDESC:Events for Lough Ree Yacht Club
BEGIN:VTIMEZONE
TZID:UTC
BEGIN:STANDARD
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
TZNAME:UTC
DTSTART:20230101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;VALUE=DATE:20231104
DTEND;VALUE=DATE:20231106
DTSTAMP:20260421T135357
CREATED:20231018T080740Z
LAST-MODIFIED:20231103T144859Z
UID:12452-1699056000-1699228799@www.lryc.ie
SUMMARY:420 Ulster Championships
DESCRIPTION:\n//numericalTotals\nvar total = 0;\n//Summary Strings\nvar summaryMsg = [];\nthis.statusA=[];\n//Arrays\nvar errors = [];\nvar boatCount = 1;\n//Constants\nvar kidsMealFee = 10;\nvar adultMealFee = 15;\n\nfunction calculateTotal() {\n   this.summaryMsg = [];\n   thereAreValidationErrors()\n   if (this.errors.length > 0) {\n      printErrors();\n      return;\n   }\n   disableButton();\n}\nfunction goToCart() {\n   window.location.href = 'www.lryc.ie/cart';\n}\nfunction getEntryProductSingleFleet(){\n   var today = new Date();\n   var dd = today.getDate();\n   var mm = today.getMonth()+1; //January is 0!\n   \n   if (mm === 7 && dd > 18) {\n      return '1657';\n   } else if (mm > 7) {\n      return '1657';\n   }\n   return '1656'\n}\nfunction thereAreValidationErrors(){\n   this.errors = [];\n   var helm = document.getElementsByName("helm");\n   var club = document.getElementsByName("club");\n   var crewClub = document.getElementsByName("crewClub");\n   var crew = document.getElementsByName("crew");\n   var boatNo = document.getElementsByName("boatNo");\n   var name = document.getElementsByName("name");\n   var phone = document.getElementsByName("phone");\n   if (helm[0].value.length < 3) {\n      this.errors.push("Please enter a helm name")\n   } \n   if (club[0].value.length < 3) {\n      this.errors.push("Please enter a Helm club name")\n   } \n   if (crewClub[0].value.length < 3) {\n      this.errors.push("Please enter a Crew club name")\n   } \n   if (crew[0].value.length < 3) {\n      this.errors.push("Please enter a crew name")\n   }   \n   if (boatNo[0].value.length < 3) {\n      this.errors.push("Please enter a boat number")\n   } \n   if (name[0].value.length < 3) {\n      this.errors.push("Please enter an emergency contact name")\n   } \n   if (boatNo[0].value.length < 3) {\n      this.errors.push("Please enter an emergency contact number")\n   } \n   var declaration = document.getElementById("declaration");\n   if (!declaration.checked) {\n      this.errors.push("Please confirm you agree with the terms and conditions of the event by ticking the box.")\n   }\n   var validation = document.getElementById("validation");\n   validation.innerHTML = "";\n}\nfunction printErrors(){\n    var validation = document.getElementById("validation");\n    for (i = 0; i < errors.length; i++) {\n        validation.innerHTML += (errors[i] + "");\n    }\n}\nfunction createCartButton(){ \n   this.cartHref += "\″ onclick=\"disableButton()\" id=\"goToCheckout\">Add to Cart"\n   var summary = document.getElementById("addToCart").innerHTML = this.cartHref;    \n}\nfunction disableButton(){\n   var goToCheckout = document.getElementById("Next");\n   goToCheckout.disabled = true;\n   goToCheckout.value='Thank you please wait a few moments while we build your entry';\n   printStatus("Clearing Cart");\n   goToCheckout.style.background = "#909090"\n   var xhr = new XMLHttpRequest();\n   xhr.open("GET"\, 'https://www.lryc.ie/?clear-cart'\, true);\n   xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n    xhr.onload = function () {\n        printStatus("Entering Boat");\n        getTotalBoatEntryFees();\n     };\n     xhr.send();\n}\nfunction getTotalBoatEntryFees(){\n  var helm = document.getElementsByName("helm");\n  var club = document.getElementsByName("club");\n  var cDobDay = document.getElementsByName("dobDay");\n  var cDobMonth = document.getElementsByName("dobMonth");\n  var cDobYear = document.getElementsByName("dobYear");\n  var cDobDay2 = document.getElementsByName("dobDayC");\n  var cDobMonth2 = document.getElementsByName("dobMonthC");\n  var cDobYear2 = document.getElementsByName("dobYearC");\n  var crew = document.getElementsByName("crew");\n  var crewClub = document.getElementsByName("crewClub");\n  var boatNo = document.getElementsByName("boatNo");\n  var boatName = document.getElementsByName("boatName");\n   var name = document.getElementsByName("name");\n   var phone = document.getElementsByName("phone");\n  var xhr = new XMLHttpRequest();\n  xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n  xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n  xhr.onload = function () {\n    goToCart();\n  };\n  var dob = cDobDay[0].value+"/"+cDobMonth[0].value+"/"+cDobYear[0].value;\n  var dob2 = cDobDay2[0].value+"/"+cDobMonth2[0].value+"/"+cDobYear2[0].value;\n  var additionalInfo =' Emergency contact:'+name[0].value+' '+phone[0].value+' Helm Club:'+club[0].value+' Crew Club:'+crewClub[0].value;  \n  if (dob!='0/0/0'){\n     additionalInfo += ' Helm DOB:'+dob;\n  }\n  if (dob2!='0/0/0'){\n     additionalInfo += ' Crew DOB:'+dob2;\n  }\n  var productId = 12454;\n  if (boatName[0].value.length > 0){  \n xhr.send('boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&&boatName='+boatName[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+productId);\n   } else {\n xhr.send('boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+productId);\n  }\n} \nfunction getTotalMealFees() {\n   var sunday = document.getElementsByName("selectSundayMeal");\n   var sundayInt = parseInt(sunday[0].value); \n   if (sundayInt>0) {\n      printStatus("Adding Junior Meals");\n      var xhr = new XMLHttpRequest();\n      xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n      xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n      xhr.onload = function () {\n         adultMeals();\n      };\n      xhr.send('quantity='+sundayInt+'&add-to-cart=3349');\n   } else {\n       adultMeals();\n   }\n}\nfunction adultMeals() {\n   var sunday = document.getElementsByName("selectAdultMeal");\n   var sundayInt = parseInt(sunday[0].value); \n   if (sundayInt>0) {\n     printStatus("Adding Adult Meals");\n     var xhr = new XMLHttpRequest();\n     xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n     xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n     xhr.onload = function () {\n       printStatus("Going to cart");\n       goToCart();\n     };\n     xhr.send('quantity='+sundayInt+'&add-to-cart=3350');\n  } else {\n       goToCart();\n  }\n}\nfunction createSummary(){\n   this.total = 0; \n    this.summaryMsg = [];\n    var kidsMeal= document.getElementsByName("selectSundayMeal");\n    var kidsMealInt = parseInt(kidsMeal[0].value); \n    this.total += (kidsMealInt*kidsMealFee );\n    if (kidsMealInt > 0) {\n        this.summaryMsg.push(kidsMealInt + " x Saturday Junior Meal = €" + kidsMealFee*kidsMealInt  );\n    }\n    var adultsMeal= document.getElementsByName("selectAdultMeal");\n    var adultsMealInt = parseInt(adultsMeal[0].value); \n    this.total += (adultsMealInt*adultMealFee);\n    if (adultsMealInt > 0) {\n        this.summaryMsg.push(adultsMealInt + " x Saturday Adult Meal = €" + adultMealFee*adultsMealInt  );\n    }\n    var fleet = document.getElementsByName("fleet")[0].value;\n    var today = new Date();\n    var dd = today.getDate();\n    var mm = today.getMonth()+1; //January is 0!\n    var entry=50;\n    if (mm === 7 && dd > 18) {\n       entry=60;\n    }\n    if (fleet.length > 0) {\n      var productSum = getEntryProductSingleFleet();\n      if (productSum == '1657') {\n         this.total += 60;\n      } else {\n         this.total += 50;\n      }\n    }\n    var summary = document.getElementById("entrySummary");\n    summary.innerHTML = "";\n    for (i = 0; i < summaryMsg.length; i++) {\n        summary.innerHTML += (summaryMsg[i] + "");\n    }\n   document.getElementById("Total").innerHTML = "€ "+ this.total; \n   document.getElementById("regattaFormTotal").style.display= "block";\n}\nfunction printStatus(newMsg){\n    this.statusA.push(newMsg)\n    var status= document.getElementById("status");\n    status.innerHTML="";\n    for (i = 0; i < this.statusA.length; i++) {\n        status.innerHTML += (this.statusA[i] + "");\n    }\n}\n\n\n\n\n\n1Documents to read before arriving\n420 Ulster Championships Notice Of Race\n420 Ulster Championships Sailing Instructions\n\n\n\n2Boat to Enter\nHelm\n\n\nHelm Club\n\n\nHelm Date Of Birth (If under 19)\nDay12345678910111213141516171819202122232425262728293031\nMonth123456789101112\nYear201420132012201120102009200820072006200520042003200220012000\n1999199819971996199519941993199219911990198919881987198619851984198319821981198019791978197719761975197419731972197119701969196819671966196519641963196219611960\nCrew\nCrew Club\nCrew Date Of Birth (If under 19)\nDay12345678910111213141516171819202122232425262728293031\nMonth123456789101112\nYear201420132012201120102009200820072006200520042003200220012000\n1999199819971996199519941993199219911990198919881987198619851984198319821981198019791978197719761975197419731972197119701969196819671966196519641963196219611960\nSail No\n\nBoat Name (If applicable)\n\nEmergency Contact Name \n\nEmergency Contact Phone Number\n\nBY SUBMITTING THIS APPLICATION I CONFIRM THAT:-\n  I agree to be bound by The Racing Rules Of Sailing and by all other rules which govern this event.\n  I agree to waive any claim against Lough Ree Yacht Club\, its members and\n servants\, for any loss or damage to my property or my child’s property or for any personal\n injury to me or my child which may arise at any time during the event.\n\n  I confirm the boat to be entered is insured with adequate and valid third-party with a minimum cover of 3 million Euro (or equivalent) per incident in respect of damage to property\, bodily injury or death. \n\n\n\n\nPlease tick the box to confirm you agree with the above conditions\n\n\n3 Summary\nPlease check that all items needed have been selected correctly. For more information contact sailing@lryc.ie\n\n\n\n \n\n\n\n
URL:https://www.lryc.ie/event/420-ulster-championships/
ATTACH;FMTTYPE=image/jpeg:https://www.lryc.ie/wp-content/uploads/2018/08/double-ree_180fb.jpg
END:VEVENT
END:VCALENDAR