function runPopup(e){var t=screen.width/2-237.5,o=screen.height/2-275;newWin=window.open("","Wait","width=475, height=550, left="+t+", top="+o),newWin.location=e}function ratingHelpful(e,t){console.log("Helpful"),(rivyoo_w=window.open("https://www.rivyoo.co.uk/api/likeReview_ui?UID="+t,"Popup_Window","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=560,height=550,left = 312,top = 234")).focus()}var rivyoo_w;function rivyooFunct(){var e=document.getElementById("rivyooForm");null!=e&&e.addEventListener("submit",(function(e){if(null!==this.action){if(0===document.querySelectorAll(".has-error").length){window.open("about:blank","Popup_Window","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=560,height=550,left=312,top=234");return this.target="Popup_Window",!0}e.preventDefault()}}))}function rivooClose(){rivyoo_w.close()}function drawReviewResult(){var e=document.getElementById("add_Rating");null!=e&&drawReviewSelector(e.value)}function setStars(e){document.getElementById("add_Rating").value=e}function drawReviewSelector(e){var t="#2C7339";switch(parseInt(e)){case 1:t="#E22027";break;case 2:t="#F47324";break;case 3:t="#F8CC18";break;case 4:t="#73B143";break;case 5:t="#007F4E"}if(void 0!==e)for(var o=1;o<=5;o++)document.getElementById("rating-"+o).style.color=o>e?"":t}document.addEventListener("DOMContentLoaded",(function(){rivyooFunct()})),document.addEventListener("DOMContentLoaded",(function(){drawReviewResult()}));