Greasy Fork is available in English.

WME URComments (With signature)

This script is for replying to user requests the goal is to speed up and simplify the process. Thanks to Chat Jumper and URO+!

Pada tanggal 18 Juli 2018. Lihat %(latest_version_link).

// ==UserScript==
// @name           WME URComments (With signature)
// @description    This script is for replying to user requests the goal is to speed up and simplify the process. Thanks to Chat Jumper and URO+!
// @namespace      tunisiano187@gmail.com
// @grant          none
// @grant          GM_info
// @version        1.9.7
// @match          https://editor-beta.waze.com/*editor*
// @match          https://beta.waze.com/*editor*
// @match          https://www.waze.com/*editor*
// @author         tunisiano187 based on Rick Zabel '2014
// @license        MIT/BSD/X11
// @compatible     chrome firefox
// @supportURL      mailto:incoming+WMEScripts/URComments-French@incoming.gitlab.com
// @contributionURL https://flattr.com/@tunisiano
// @icon			data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAA+CAMAAABZTaSoAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhZQTFRFP52+QZ6/Q6DARJWxRKDARZKtR5CpR6LBR6LCSaPCSqTCS6XDTIicTabDTabETqfET6fEUanFUqrGVKrGVXeDVavHVnV+V63IWHJ6WXN7WXZ/W3iAW3uFW7DJXLDKXXZ9XYSQXbHKXnd+Xn6HXoSQXrHKX3d+X7HLX7LLYHh/YJ+zYLLLYLLMYXqAYai9YbPMYnqBYnuCYoONYoeSYrPMYrTMY7TNZKK0ZLTNZYmTZaq/ZbbOZrbOZ36EZ5KeZ7bOZ7fOaI+ZaLfPaZOeaZupabjPapupaqa3arjQarnQa5Wga5ika5yqa7nRbLrRbYSLbbrRbbvRbpqmbrvSb7XJb7vScK6/cLzScL3ScZ+scb3TcqCscr3Tcr7Tcr7Uc7fLc7/UdL/Vdaaydb/VdcDVdsHVd4yTd8HWeKy5eMLWecPXesPXe7G/e7XEe8PXfMTYfcXYfcXZfrfFfsLUfsXZfsbZf8bZgMfagMjagb3LgpWbgsjagsnbg8jbg8rbhMjbhMnbhMrbhcPShcrbhcrchcvchsfXhsrchsvch8vch8vdh8zch8zdiMjYiMzdiM3diczdic3dic3eis3dis3eis7ei87ejJ6kktHgl6esmtTiobC0odfkqNrmrLm9r93otsHFt+DqvuPswMrNxefvy9PVzOrx1O3z1dze2/D14OXm4vP36fb56u3u8fn79fb3+Pz9////5n3SAgAACTtJREFUaN7tmv1fG0kZwPGtPfX0fLnTvYtXtet7e3KJBVmh9oLl5FahEESQbZGXQFOIcKy1dKlVL1Vbq4ugvSWEvLAhZAkJIfsf+szs28xmQ5L2fgh+eH5Idib7Mt95Xmc2bcr/ibSdgZyBnIGcgZAii4LAc0FBiMZOMYgUCjCO+Pjo6QSJcIxbWEE+dSCioQz/Vnr/ACS9PW+oJXK6QOQQptg51B052r2BOjn5FIFISB3+9LHukj2E4pPIU7MlvZRxmpmSrpdSVLuk4qN4Jlcowq96sZhL2r+rWtEledX6La4WKuip5YL6nCCSD8a7U4WBJI2UQphXHvdm7XEZZ2Xodk5RUgXqNmWVvNwlpTjGyFWcror6PCCIw3+ge8shUooTvsznxM2m+eyyQrUrSqbqPgV0ScL7GWhekiWP85sDiQHH/KFeS47nCetK6ZQK7PEm6bZSrL5PkbjcJaDBZMVbT82AgH/4j3X9RBLW9Pi42acZTc06J09bjhcIGm6iFkiiUt1baBJEAI5D/SQ58jNMyDzbNICK0SrbPkC1C0rB4zbIHrOeD0h6gutqUyAyGNaufrLsg5uYFUuWtKWkc0qCbKumpZSK+VyhRA0slbOl4KhTtQ41uG+mqLs8sSEQUMiaXk+2GIY3Tk+QtpSn/VXJmQ0YQDybs0JZquRpK7ZXaI5mVdpi1WZAQCFOwDpI79respfec4zLUYk5qhJlWWa75G3ccXdsozjAqZOOF1EmWmwCRISIRZnQvEmyjVKL/Qu0ZmjbSrhcl2hn3A+xriHhykRwyrtNSa2+oB6IQHrIGsp+e7YOGIZEDNBxK+vyXNVum4FASWSwK2RTdtQlOCxzK6PBF6lQSDwk1TgIR1oWBtn1AtEhcJlXFGz7MQZTqljtAjGeeJa0uyoQq6eSJNOqU7c0D8KSo0X1iJVSEBQRBaAp0mqPm9OW1+g2tqxk2Stm2E/VKA6lZpBpAgRGThaJa9tWSjneWSOLyLQNYo/XJEqa6VxVHctKVvSTQDTXQD8akPrB1wQRaNvSCmYoMsk0zQnMZf0kkJw749V6aKlxZxefA8SaeXvcBlGlYqdKO7/lYUrjqVyZAlGrMre3/rzrxtog286Vu7tUzXWYPvICoZ9LjttKFhpdStpTTnPk7VEUTyquGgOJMkyajLFUseJntkiQaJWJmx4RJy/Ke4TTBAFCJnTFZWvx5weh0sgBmRzB80mzc6KWQi02NGJG7aKr4krURH7z4rAzO6GSTE5tqowPkmkEJQsH69BvJUfzJ2ftTthWhszcrlJFc2dxxSnX6dVGyUWXKNZckHiDyJAs6Bhrr3j3/aR+Du3MTttWhTIdq3gsUt7srP2cEUNhbIuWcHRczqVSKbWg0wvquiAxWFNtkQaOCqwbO2g3CG0GEcuUHWdFQtmWRs+oWc7b8bUEJQqxhKXDArlQKdRYODYCEjE2sui1+jaxO3fD4Tj229UvvaDK0FWhWa/WWAjqVJig1uzxUo2lfH0Q0RjtnnsNdcPE8LvyOkdenHeluKQrNeRqgBRqrtk9SBr0EQHN+bbHGvdwd2dtO00pCjzEiVnklGuuTGAX4tTUlzOWurxXuhg/rjWSDr1B5o8bSup49yFIX51zLSDMqOqsRFQnsmlxAwBViJ62ZU5HiozixVSjeQRvAjVGgvaD3C8ZMijcEHOW0IrFAvXwDN5TLGSx+6fyxZyxrM/k3OJsQyayeIVfIrcm6zt7FC0HjxrQxxa1Q9eCe78R5NL79TiO5uk901bcxI6gLd8trJTjgwOXmZk9KC+2Eod3QpRYFGi39o/wGnebQDk0evbXGntFEhOlFx2g9CIgiiyQ76cc30d1liUB6xExNmZ+zuC3WbbfyOhVF9u82qLEJTOM9CIgMC6eIFnbPTBk3nmRKBApVDQ/BUYQhID96IAvIkYDvqZBOO4j04jzsuriRff7w4tfR5+S4gmCC07BChpWsoyyGFzmRZYJgd1yMnWsRANYj5FICNlrxOfjokrIh5UpQSkXErmAIgWNe3AMKzS5G48M5ftXr7pIzB6xJohkxYAgawd0TuChuBRhDDCcUMh1LDG8yMPlHBMUWJ8sAoio8ILAwXShWzI+NiqzAXEGpohnxUiwOZDN38B437p69Tvw9dNfvnv9+vV3fwSHbxs9v9vY9ALhOI4JyEqI4yKOhQQ4XDHIIqQdGVXL0EEe84iY5RWYd4AWzQslMQYDxyCsDOoFR4QTeV9Ebti0nq0//svqyuKvYbyvv/3W6/D1q1sTY2NjEz93en67sLhy/6//3KgCwa9MMAhveQe2Nfgdn4gaHKeQx8br7yAGEE0QmfNxrAUiGCUgeCYyLe9oWQXyn7+t3l1evBOeujn+NcucvtHf14uk7w2r51uj47em5xaWVlYfPv07XpLAjOOnzlibwTAmdCRHCY14g/Cs4+QWyAzSAAESsZcLEIak+iDroIql27OTE2PDA/0/Nkf9xg87Ozs6rnR0dP7A6vlJ33uDI+OT03OL79+7/zOGxz5g+IjzHB76Qz4f4SPeIBITFCOsZIMEfYIUgbvMECDgI9EoN6OwgigwsXogz/71cPX9hfDUxOjwQN87Fz557lU06lc/8dnvfhvLax8/9xWj5/Pd13r7h0YnJmfvLK38/hc+cFvZCDGKHLQnTIBoxcdw1GJx1EJWJ6HwRB2jPyX4BBkfov6oD+IFD11wp2jIOE2JBRkG7gUBrgHTWn90/+7S7elbYyPA0fPltra2cy+/fK6t7WNvXsDyitHzKejp6r7W9x6QTIUXlu89eLzRWiXKxuMH95bvzE6Ojwz29/Z0X/jiZ146f/7857705jdN+eoXPg0dL73yWntXzzt9A8NjN6fAuFYfthqIsvEISLBtDQ309V7r7ursuNLefvnype8huXTp8uX29isdnV3dPb19/YMjY7eQk6w+ePTf1isa//3o/h+WF+cgZo2OYJienm6QLiTooLun51ovePrwyNjE5PTtpRWwq80WrX43njy4u7RwZy48PTkxOjI8NDQIMjAwgL4Gh4aGR0bHb05Nh+cWFpdX//xkQ2kNqZHZN58++eCPq/eWFubC4fDstC2zs+Hw3G3w79U/ffCPp89Ozb+DPtzcXH/ilvXNzQ+VlpOzf5megZyBnCz/Az/eViNtzc/xAAAAAElFTkSuQmCC

// ==/UserScript==
//URO+ in order for the URO pop up not to be over the ur pin change the URO+ script find all 4 uroPopupX = markerXY.x + popupXOffset; and change it to uroPopupX = markerXY.x + popupXOffset + 40;
//to make this script find open URs faster change the number 1000 to something smaller this is in milliseconds 1000 = 1 second
//line 892 it looks like this setTimeout(URComments.LookForOpenedUR, 1000);  // 1 second search
//line 892 it looks like this setTimeout(URComments.LookForOpenedUR, 500);   // .5 second search
var URCommentVersion = GM_info.script.version;//var URCommentVersion = "1.5.4"; //branched from 0.9.3
var URCommentUpdateMessage = "yes"; // yes alert the user, no has a silent update.

/* Changelog
1.9.2 - Sizing Signature field
1.9.3 - Details about the Signature and the refresh need
1.9.4 - Relocate Signature settings
1.9.5 - Auto email errors
1.9.6 - Pictures in pills
1.9.7 - Pills corrections
*/

//here is my todo; remove ur count, instruction link in new window

var URCommentVersionUpdateNotes = "UR Comments has been updated to " + URCommentVersion;
URCommentVersionUpdateNotes = URCommentVersionUpdateNotes + "\n" + "Waze compatibility they also made the IDs of the buttons for Open, NI, and closed each count up for every comment causing the script not to be able to find the buttons!";

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////
////// Define items that need to be at the root level so they can be used inside functions
//////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//use this for counting how many times we waited for waze to finish a task..
//currently used to write to the console so the code is easier to debug
//in the future we might do actions if we waited to long
var PauseCount = "1";

//these are the names of the comments lists built into the script and will show up in the comment list drop down
var BoilerPlateCreatorsArray = [
	"CommentTeam",
  "Custom",

	"BrazilianPortuguese", //maintained Murilo-Carvalho mcarvalho79&gmail.com https://greasyfork.org/en/scripts/7292-wme-ur-comments-brazilianportuguese-list
	"ColombianSpanish", //maintained Mincho77 mincho77&gmail.com https://greasyfork.org/en/scripts/13840-wme-urcomments-colombian-spanish-list
	"Czech", //maintained by Zirland zirland&gmail.com
    "DominicanSpanish", //maintained by RafaCintron rafaelcintron at gmail.com
    "Dutch", //maintained by moweez moweeznh&gmail.com updated https://greasyfork.org/nl/scripts/7276-wme-ur-comments-dutch-list
	"IndiaEnglish",//maintained by moweez moweeznh&gmail.com https://greasyfork.org/en/scripts/21774-wme-urcomments-india-english-list
    "IndonesianBahasa", //maintained by projectronic https://greasyfork.org/en/scripts/13197-wme-urcomments-bahasa-indonesia
	"International", //maintained by moweez moweeznh&gmail.com updated
	"IsraeliHebrew", //maintained by crayzee, ktamir&gmail.com updated https://greasyfork.org/en/scripts/8682-wme-urcomments-hebrew-list
    "Italian", //maintained by Fabianotkd, fabiano.fumarola&gmail.com
    "Lithuanian", //maintained by moweez https://greasyfork.org/en/scripts/16528-wme-urcomments-lithuanian-list
    "Persian", //maintained by Saeed
    "Polish", //maintained by tomasz.cholewa&gmail.com
	"PortugalPortuguese", //maintained Ricardo-Ruivo tco2005&gmail.com https://greasyfork.org/en/scripts/34305-wme-urcomments-portuguese-pt-pt-list
    "Romanian", //maintained by spookyx (paul) https://greasyfork.org/en/scripts/25024-wme-urcomments-romanian-list
    "Malaysian", //maintained by RisingSun, mobiletopupbusiness&gmail.com updated https://greasyfork.org/en/scripts/16261-wme-urcomments-malaysia-list/code
	"Spanish", //maintained by carloslaso carloslaso&gmail.com https://greasyfork.org/en/scripts/7279-wme-ur-comments-spanish-list
    "Swiss", //maintained by vince1612&gmail.com
    "USA_SouthCentral", //maintained by turnertr
    "USA_Southeast", //maintained by t0cableguy

	"---User's Lists---",
    "PesachZ" //maintained by PesachZ https://greasyfork.org/en/scripts/7272-wme-ur-comments-pesachz-list
    //"orbit" //https://greasyfork.org/en/users/8079-orbit


];

//get the SelectedBoilerPlateCreator
var SelectedBoilerPlateCreator = localStorage.getItem('BoilerPlateCreators');
//console.log( SelectedBoilerPlateCreator);

//if the comment list hasn't been chosen default to the CommentTeam's list
if (SelectedBoilerPlateCreator === "" || SelectedBoilerPlateCreator === null || SelectedBoilerPlateCreator === "rickzabel") {
    SelectedBoilerPlateCreator = "CommentTeam";
    localStorage.setItem('BoilerPlateCreators', SelectedBoilerPlateCreator);
    //localStorage.setItem('BoilerPlateCreators', 'CommentTeam');
}

//array that holds the comments
var URCommentsArray = [];

//these are the holders for the position in the comments list that the reminder and close messages are at
var ReminderPosistion = "";
var CloseNotIdentifiedPosistion = "";


var def_names = []; //default waze message array
var URC_Text = []; //URC text
var URC_URL = []; //URC text
var URC_Text_tooltip = []; //URC tool-tip text
var URC_USER_PROMPT = []; //URC Alerts, Confirmations, and orange box messages

//waze swaps out the close button on the UR window after you click send. we use this to grab the close and compare to the new one
var CloseButtonHolder = "";
//since we are scanning for open UR I need to keep track of the current urID so the comments can be overridden
var UrCommentLasturID = "";

//this is used to hold the info about the previous tab, before we auto switched tabs
var PreviousTab = null;
var PreviousTabPosistion = null;


//used to track if we are switching languages
var ChangeLanguage = false;

//return to zoom instead of zoom 0
var ReturnToCurrentZoom = "";

var UrCommentsIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAA4CAMAAACPFEe1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAqNQTFRFi87eP52+QZ6/Qpi2Q6DARaHBRqLBR6LBSaPCSqTCS5q0TabETpy2T4KUT5y2UZ63UqnGU6rGU6vHVKvHVXeDVavHVavIVazHVnV+VqzHVqzIV6zIV63IV63JWHJ6WHZ/WK3JWK7JWXZ/Wa7IWa7JWnR7Wq7JWq/JW3R8W3iAXHV9XLDKXYCLXbDKXbHKXn6HXrHLX4WRX5CfX6rBX7HLX7LMYHmAYLLLYLLMYLPMYXqAYYeSYbPMYnuCYoONYrPMY5OhY7PMY7TMY7TNZHyCZJemZLTNZLXNZLXOZYmTZbXNZbXOZbbOZrXOZrbOZ36EZ7bOZ7bPZ7fOZ7fPaI+ZaLPKaLfPaLjPabTKabfPabjPabjQarjQa5Wga7nQa7nRa7rQbLnRbLrRbYSLbbrRbbvRbbvSbpqmbp2qbrrRbrrSbrvRbrvSbrzSb56rb7vSb7zScLzScLzTcL3TcaCscbzTcb3TcqCscr3Tcr7Uc77Uc7/UdL/UdL/Vdaaydb/VdcDUdcDVdsDVdsDWdsHVdsHWd4yTd8HVd8HWd8LWeKy5eMLWecLXecPXesLXesPXe7G/e8PXe8TXe8TYfLjJfMTYfMXYfMXZfcTYfcXYfcXZfrfFfsXYfsXZfsbZf7/Qf8bZf8fZf8fagMbagMfZgMfagMjagb3LgcfagcjagpWbgsfagsfbgsjagsjbg8jbg8nbhMnbhMrbhcPShcnchcrbhcrchcvchsrchsvch8vch8vdh8zdiMjYiMvdiMzdiczdic3dis3dis3eis7ei87ejJ6kktHgl6esmtTiobC0odfkqNrmrLm9r93otsHFt+DqvuPswMrNxefvy9PVzOrx1O3z1dze2/D14OXm4vP36fb56u3u8fn79fb3+Pz9////oCjb/AAAAAF0Uk5Tvxs4dnsAAAmHSURBVGje5Vr9f9tGGV8Z7zDe9sLIqNaOwTAQXLZBoZs9YIPhbiSlMxtr65bWKwY6aLJB3Gapt8KaBQewVwi0ES+hWzAzLDSIjdFOpKFTFcdOolS16tixpT+F507S6U6WEzv7JRnPJ5Z155N03+fl+zx3yhVXvFFEeoPI/x8Qgef5tQ4kEw/5OFNCsbS4RoEIcT/HSoRfg0DEiDX7aBaJbRd+rQFJYJeKTl82LFmYu4ChhMW1BEQMoTlnCQpTFmcC0OvLMEPzqpqnmrl5Vc2xbfJzrqCoIAV6vFxwi0xdrKhaWVNn5ZUCyfg8YCCpTSOASWpoEXVrpKngYQrbRj/LSkknt9G1An25S8qWIgpl0lUqrAgIxjFneMrlKIOkYDAzz1mjCmxbkRTddZ8S1vKs5zMq2FRlj/GtAUE4AgtGA6n100hUS4kuBWtsW5P1+tmimWnezwCT5HWv8S0BEYNL4TCRkDixgBjWU6q270hMWyt4edBSQPINkLcCJLY0DhNJkIkJ27fyZMws0573AoKu8ewHNcgVj+5Sa0B48JxLxpKyCOQVt0iH8SUndIu4PU80XGkQCrNVjx9UYmijWlSLZEihJSBAvFPGMnIRnMtKJyXal5zpVuk2zFguAVUpiFrz81UqFGge14lSbPUY84x+yq0AyYBj1ZYDYmSJSRRKWzlqRJ5qK+wjiN8onjgqTuQpLg7JtwAEImTa0XyAi9rhAhnkAkF4ieP8rG8VKU+y2wrLBE6eIy5EoatSMV11WcAmPbUFIFAnkkhfxOmdeBOdWyCbWMSlOb5UdgVAqS5IZdObynXzIlZCOHIMY1APKTcPRIT6ykl+uLgyz2coUKZ9LN+aJWaXXRQqs4xWtKZfLc1X3AgJDj3vZFljlpQtRSpTNgcEOOuCwVjEwjWHzmdojCHrEt2OS8uTFLttQdSRZ+XKDTIJo3ETB+OirDQPJEnPFvkTSSkQ31mHBWpOKtFsbZUsH6tabc1hZo/8RgPRDCaa1UY49OaBxBkgRo0qHBcX6XuCfSTWt2R73pYf2BE66wRrAyCqwbJUQyBaS0AuG81IPwFi+1bJnreFTHO0SDRe1VRVq7iAKC4cDV2rQZHiCSS8AiCa2/q6W4tWh27RkFyigSiGm43tYNdURhS5hYQYotgXqKmfrUwCix6uRVVY1rwZZHlngOJVM+fr/UZm8vrKVohBm26t+KarxykqkdRIRqRqXpv76VVGldIwuYCyCFWYOGI5X1VeORCgKYNOFg4XGwtghEUP+mWWeTqtUTvDF1wZ3o79MluYODLvBicXdaOcbwFImk56OI+QAnIhQP82QxIi61slWuM2oRbYICDZr0wlwll60U5YroILXlmpNk6H3kCC7BIXpfPsJXPfAU6pEOknJQrrWwobv2YVTCxURAGj6g5reS6sICs6vKWXyxXvarkhkEwcbcixpe8UyueBbDaKvxfoxO6nLnWIX5ZY35qna6v6POLdX2VsyqyAmwCSNHfgLrLXzgXINmN20auMZ8pZUj2V2Wd7LwRhdANuz3suEcvNuRbekAvUrQ1rc3iTMTpFpxeo4jlBqqeZupRWl7tNd6nYMdO4pJJLK12zw9ymm8uFRi3AGoSovOpeXRQkj2RdyZnD9Zzntpa9TlaYVbCuNku/kAr7a0azWd3v2jjF+1YVhyDzSOk6tQTMaXYlo1hL9SoarZTrhUxZIVapqHLTeQTtZvUvNoMDMUDGfTe5UGB5Ps9sfpo7piAt7usWClCaFFrbMs2gGFneuWpZ16bp6tvE5lG8Ty/jXgvR1YbDIyFm0IudwEwNUVU2O1djySubvWjUZrhVh8Mrs4thnDGmouYbngXWDtCDXyvY73rEtH1Mx0GcV0BiIhSKZVqfEU0gkcTrez/Ch6g3bdEaxbe2OC964px9NC+KOJvHoZCPS7eKI0NTSCz5+oAAlDC3hPh5ejVJgKBKOGLnyAja4hbj6JCI4/kIYiIhQgMGiKIAfUI8gfQh4C5JkJLInkkukcGVUhr34ctESUyatk7G062+VkD63dK5xQVhS+fnOLp2rwPCc7y1oxSj37MERSnhg2I0CB+fIIWD0Bn24b2LNOpMgiXQE3kRPUUSLNv6EnBZiEsLPn8ItWO+kC+8AiCdnZ0fZXB8HHoaAwnyfDrog6nzPAEkSf6gAFQYgSFp+MTgl4QUAjAh3M5IaGZhH3RHJAHO01wC7JBBu52CBKVDnIPrw5B6EzAWLheF5oFMnn15bOQOmPA9nffA8TNPmvIp0nPHb0ZP/+s/k14x4s9gdSZ5Ozoy+CTmw0MwPJgdMp7VBgDxeAR989iopgaSoRD0mUBg5lwIeAQaMS6YbM61XpsADCd+NfjTvi+iaX0CHW7dYcqtpOcrvU8O/GLo5MjYK+deS+CggIkii6R9aJ8LWUTyRVoAEo+LDJA4aCJmA5EsICjekmHCJksBmRh/YWQ4NXC0t+cH+751k+VON9622ZTbbrR6bvrm7u909TxxdODZ342O/ZGLiNh18OzSJDTi4EESH0xTruUJBLuWkJYcIGn7Vg4Q5FpiEv2BUZYFcv6V06MnUgN9h7oP7NuxbfN7rsezvv7dN9/yMSwffKfV8967vv7grn2PPnb4yEDqxOh3sUcB/YTDeP62D0csT3OC3eJWiGA01G6nzUDGP0E/RLsPqCsW86OYSOBhkuCHKPdLKOZ9seWAnJ8YHx1OPX3kUPf+PTs6vrpu3ZVXXcNdc9WV6952gylOzzvuvu+BnXtMJMN/+fUPf5RENCri3JKhF5tmskyY34LzwUNJO4GpVbBuwSOyRoeMeTOsGKDfpPO1DJBXT5/6berYkUNd+/c81PG1D79lnSlvfV9bW9t117W1vevNZseb3n7Ll7due3j397p7njiWOjk6fua/q6tEOffPv40M/fwnvT0HH9n98Dfuu2vzRz507dU3bNy4YcOG9evXw3Hjxvd/4Oprb779zrvv37Zjz/6DECaDz/7+xZfOrbZaa/LM+PMnjw8+1dvT9ci3d26/90t3fv72TZ9ub/+kKe3t7Zs2ffYLAOOBnXsPdPX0Hv1Zavi5v5+ZXIVF4+TE+IvPDaUGj/X1Pn5g766Htnd0bL2Xkq33d2x/cNfe7/+4t+/pwV8Ojfz1H2dXBwyvhHjuzPjY6Mjw8Wf6Dvc81n3wUZADWODkYFf34z2H+55JDf/h+bHxf0+s/v8OOj/x6sun/3zqTyNDIMdNQacnR06NvjD+0tmJ82vr/7XWkPwPxuRDjLmvjzUAAAAASUVORK5CYII=";
var UrCommentsTextPic = "<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAMCAMAAACOacfrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF5eXlsrKyAAAA////J2PL5AAAAAR0Uk5T////AEAqqfQAAAA/SURBVHjadIxBEgAgCAJR/v/nCHXsEofGDV1QyQoJQ+iFUJT3h+ZLnOTbhalLedoS62SNNEHVWPeOvfmhI8AAgSoBl+WS+oUAAAAASUVORK5CYII=\" />"; // Picture of the number of comments
var UrCommentsTimePic = "<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAMCAMAAACOacfrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRFsrKyzMzMAAAA////WCEdYgAAAAR0Uk5T////AEAqqfQAAAA5SURBVHjaYmBmZmZkAiJGZiBiYGZmQgAQjwEkAZRmAPOYYQDCg0MscnhUMkClIGai2IcEUHkAAQYAfEQBiwBYANcAAAAASUVORK5CYII=\" />"; // Delay picture

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////
////// bootstrap
//////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function urcToConsole(logtext) {
   //console.log('URComments: '+logtext);
}

//setup keyboard shortcut's header and add a keyboard shortcuts
function WMEKSRegisterKeyboardShortcut(ScriptName, ShortcutsHeader, NewShortcut, ShortcutDescription, FunctionToCall, ShortcutKeysObj) {
	//check for and add keyboard shourt group to WME
	try {
		var x = I18n.translations[I18n.currentLocale()].keyboard_shortcuts.groups[ScriptName].members.length;
	} catch (e) {
		//setup keyboard shortcut's header
		W.accelerators.Groups[ScriptName] = []; //setup your shortcut group
		W.accelerators.Groups[ScriptName].members = []; //set up the members of your group
		I18n.translations[I18n.currentLocale()].keyboard_shortcuts.groups[ScriptName] = []; //setup the shortcuts text
		I18n.translations[I18n.currentLocale()].keyboard_shortcuts.groups[ScriptName].description = ShortcutsHeader; //Scripts header
		I18n.translations[I18n.currentLocale()].keyboard_shortcuts.groups[ScriptName].members = []; //setup the shortcuts text
	}
	//check if the function we plan on calling exists
	if (FunctionToCall && (typeof FunctionToCall == "function")) {
		I18n.translations[I18n.currentLocale()].keyboard_shortcuts.groups[ScriptName].members[NewShortcut] = ShortcutDescription; //shortcut's text
		W.accelerators.addAction(NewShortcut, {
			group: ScriptName
		}); //add shortcut one to the group
		//clear the short cut other wise the previous shortcut will be reset MWE seems to keep it stored
		var ClearShortcut = '-1';
		var ShortcutRegisterObj = {};
		ShortcutRegisterObj[ClearShortcut] = NewShortcut;
		W.accelerators._registerShortcuts(ShortcutRegisterObj);

		if (ShortcutKeysObj !== null) {
		//add the new shortcut
		ShortcutRegisterObj = {};
		ShortcutRegisterObj[ShortcutKeysObj] = NewShortcut;
		W.accelerators._registerShortcuts(ShortcutRegisterObj);
		}
		//listen for the shortcut to happen and run a function
		W.accelerators.events.register(NewShortcut, null, function() {
			FunctionToCall();
		});
	} else {
		alert('The function ' + FunctionToCall + ' has not been declared');
	}

}

//if saved load and set the shortcuts
function WMEKSLoadKeyboardShortcuts(ScriptName) {
	if (localStorage[ScriptName + 'KBS']) {
		var LoadedKBS = JSON.parse(localStorage[ScriptName + 'KBS']); //JSON.parse(localStorage['WMEAwesomeKBS']);
		for (var i = 0; i < LoadedKBS.length; i++) {
			W.accelerators._registerShortcuts(LoadedKBS[i]);
		}
	}
}

function WMEKSSaveKeyboardShortcuts(ScriptName) {
	//return function() {
	var TempToSave = [];
	for (var name in W.accelerators.Actions) {
		//console.log(name);
		var TempKeys = "";
		if (W.accelerators.Actions[name].group == ScriptName) {
			if (W.accelerators.Actions[name].shortcut) {
				if (W.accelerators.Actions[name].shortcut.altKey === true) {
					TempKeys += 'A';
				}
				if (W.accelerators.Actions[name].shortcut.shiftKey === true) {
					TempKeys += 'S';
				}
				if (W.accelerators.Actions[name].shortcut.ctrlKey === true) {
					TempKeys += 'C';
				}
				if (TempKeys !== "") {
					TempKeys += '+';
				}
				if (W.accelerators.Actions[name].shortcut.keyCode) {
					TempKeys += W.accelerators.Actions[name].shortcut.keyCode;
				}
			} else {
				TempKeys = "-1";
			}
			var ShortcutRegisterObj = {};
			ShortcutRegisterObj[TempKeys] = W.accelerators.Actions[name].id;
			TempToSave[TempToSave.length] = ShortcutRegisterObj;
		}
	}
	localStorage[ScriptName + 'KBS'] = JSON.stringify(TempToSave);
	//}
}

//now we use this to load the arrays, but we wait till the me tab &loads, this gives the custom comments file a chance to also load
function URComments_bootstrap() {
    //urcToConsole("Test");
    //get the SelectedBoilerPlateCreator
    var SelectedBoilerPlateCreator = localStorage.getItem('BoilerPlateCreators');

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // these is the array used to store the ur comments
    // comment arrays should follow the format
    // "Title",     * is what will show up in the ur comment tab
    // "comment",   * is the comment that will be sent to the user currently
    // "URStatus"   * this is action to take when the option "Auto Click Open, Solved, Not Identified" is on.
    //					after clicking send it will click one of those choices. usage is. "Open", or "Solved",or "NotIdentified",
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////

    if (SelectedBoilerPlateCreator === "CommentTeam") {

        URCommentsArray = [
			"No further communication",
			"No further information was received and the request is being closed. As you travel, please feel welcome to report any map issues you encounter. Thanks!",
			"Solved", //t0cableguy 12/8/14 //rickzabel 12/8/14 , karlcr9911 12/8/14

			"Fixed",
			//"Thanks to your report we've found and fixed a problem with the map. The fix should reach handheld devices within a few days, but on rare occasions it can take closer to a week.",//karlcr9911 12/7/14  //removed an extra space at the end - rickzabel 12/7/14 t0cableguy 12/8/14
			//"Thanks to your report we've found and fixed a problem with the map. The fix should reach mobile devices within a few days. On rare occasions it can take closer to a week.", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"Thanks to your report we have found and fixed a problem with the map. The fix should reach mobile devices within a few days. On rare occasions it can take closer to a week.", //GizmoGuy 4/13/15
			"Solved",

			"Address Adjustments",
			//"Thanks! The address has been adjusted. This should reach handheld devices within a few days, but on rare occasions it can take closer to a week.",
			"Thanks! The address has been adjusted. This should reach mobile devices within a few days. On rare occasions it can take closer to a week.", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"Solved",

			"Address in correct spot",
			"The live map is currently showing your address in the correct spot. Please remove any instance of this address from your history and favorites by tapping the 'i' within the blue circle and then 'remove from history'. Then search for the address. If you don't remove the old results from your navigation or favorites, you will continue to be routed to the old coordinates. Please submit another report if this does not resolve your issue. Thanks!",
			"Solved", //karlcr9911 rickzabel 4/3/2015

			"The road has been closed",
			//"Thank you for your report, the road has been closed.",
			//"Volunteer responding - Thank you for your report, the road has been closed.", //rickzabel 1211/14
			"Volunteer responding - Thank you for your report. The road has been closed.", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"Solved", //requested by SkiDooGuy //changed to NotIdentified by karlcr9911 4/3/2015 //7/22/2015 changed to Solved by karlcr9911

			"Fixed Speed Limit",
			"The missing/incorrect speed limit you reported has been updated. Thank you!",
			"Solved", //karlcr9911 rickzabel

			"Address fishing",
			//"Waze does not tell us your starting or ending destinations. Would you tell us the address you are having problems with as you entered it into Waze? Thanks!"
			//"Waze does not tell us your starting or ending destinations. Would you please tell us the destination name and address you are having problems with? Thanks!", //t0cableguy 12/7/14, karlcr9911 12/7/14
			//"Waze does not tell us your starting or ending destinations. Would you please tell us the destination name and address you are having problems with? Thanks!",
			//this is going to be the message we voted on above! rickzabel 12/8/14
			"Waze does not tell us your starting or ending destinations. Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel i use this one after i sent a message with Volunteer responding 1
			"Open",

			"Errors with no text",
			//"Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!",  //karlcr9911 12/7/14 //rickzabel 12/7/14 //t0cableguy 12/7/14
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/8/14
			"Open",

			"Reminder message", //do not change (rickzabel)
			//"Just a reminder: We have not received a response on your report. If we don't hear back from you soon we will infer everything is okay and close the report. Thanks!", //karlcr9911 12/7/14  //this has been getting me the most responses, but it probably is the special link i am including with the UR layer enabled rickzabel 12/7/14 t0cableguy 12/8/14
			"Just a reminder: We have not received a response on your report. If we don't hear back from you soon, we will infer everything is okay and close the report. Thanks!", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"Open",

			"No reply close message",
			//"The problem was unclear and volunteers didn't receive a response so we are closing this report. As you travel, please feel welcome to report any map issues you encounter. Thanks!",//karlcr9911 12/7/14 //rickzabel 12/7/14 t0cableguy 12/8/14
			"The problem was unclear and volunteers didn't receive a response, so we are closing this report. As you travel, please feel welcome to report any map issues you encounter. Thanks!", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"NotIdentified",

			"Speed Limit Already Set",
			"Volunteer responding; The speed limit here is already set correctly. In the future, please submit speed limit requests near the point where the speed limit changes. If the speed limit change is temporary due to construction, please advise and provide additional details. If you would like to see speed limits at all times while using the app, please go to Settings > Speedometer > Show speed limit.  Thank you!",
			"NotIdentified", //rickzabel karlcr9911 8/31/2016

			"App Bug",
			"Unfortunately, In this situation, there is nothing wrong with the map that we can adjust to prevent issues with the app. Please report this to https://support.google.com/waze/answer/6276841",
			"NotIdentified", //twintiggrz, t0cableguy, rickzabel 12/27/2015

			"Bad GPS",
			"Volunteer responding - It appears that your device was having GPS trouble. GPS signals do not travel through vehicles or tall buildings. Please make sure your device is somewhere with a clear view of the sky.", //rickzabel 12/18/2014
			"NotIdentified",

			"Valid Route",
			//"We reviewed the issue and did not find any map errors. It looks like Waze provided a valid route. If you feel yours is correct, keep driving that way. If it is indeed faster, Waze will learn from your drives and route you and others the faster route. Thanks!", //karlcr9911 12/7/14
			//"We reviewed the issue and did not find any map errors. It looks like Waze provided you with a valid route. If you feel yours is correct, keep driving that way. If it is indeed faster, Waze will learn from your drives and route you and others the faster route. Thanks!", //added "you with" rickzabel 12/7/14
			//"We reviewed the issue and did not find any map errors. It looks like Waze provided you with a valid route. Try the Waze suggested route a few times, it may turn out to actually be faster, if not you'll be teaching Waze that that route is slower, and your route will become preferred " //Pesach 12/8/14
			//"Volunteer responding - We reviewed the issue and did not find any map errors. It looks like Waze provided you with a valid route. Try the Waze suggested route a few times, it may turn out to actually be faster, if not you'll be teaching Waze that that route is slower, and the faster route will become preferred.", //rickzabel 12/8/14, karlcr9911 12/8/14
			"Volunteer responding - We reviewed the issue and did not find any map errors. It looks like Waze provided you with a valid route. Try the Waze suggested route a few times, as it may turn out to actually be faster. If not you'll be teaching Waze that that route is slower, and the faster route will become preferred.", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"NotIdentified",

			"Valid Left turns",
			//"Volunteer responding - If you wait and complete the left turn, it may actually be faster than the alternative. If it’s not faster, you wait time will contribute to Waze’s database, thus helping to discourage the routing server from suggesting left turns at that intersection. We also suggest if you do not feel comfortable making such left turns, you can always go another route and let Waze recalculate.", //rz 2/26/15
			"Volunteer responding - If you wait and complete the left turn, it may actually be faster than the alternative. If it’s not faster, your wait time will contribute to Waze’s database, thus helping to discourage the routing server from suggesting left turns at that intersection. We also suggest if you do not feel comfortable making such left turns, you can always go another route and let Waze recalculate.", //karlcr9911 4/4/15 //rickzabel 4/5/15
			"NotIdentified",

			"Valid Left turns 2",
			//"Volunteer responding – We do not disable legal turns only because they are difficult. If you wait and complete the left turn, it may actually be faster than the alternative. If it’s not faster, you wait time will contribute to Waze’s database, thus helping to discourage the routing server from suggesting left turns at that intersection. We also suggest if you do not feel comfortable making such left turns, you can always go another route and let Waze recalculate.", //rz 2/26/15
			"Volunteer responding – We cannot disable legal turns only because they are difficult. If you wait and complete the left turn, it may actually be faster than the alternative. If it’s not faster, your wait time will contribute to Waze’s database, thus helping to discourage the routing server from suggesting left turns at that intersection. We also suggest if you do not feel comfortable making such left turns, you can always go another route and let Waze recalculate.", //karlcr9911 4/4/15 //rickzabel 4/5/15
			"NotIdentified",

			"Valid but Difficult Route",
			//"Volunteer responding – We do not disable legal routes only because they are difficult. If you wait and complete the route, it may actually be faster than the alternative. If it’s not faster, you wait time will contribute to Waze’s database, thus helping to discourage the routing server from suggesting the route. We also suggest if you do not feel comfortable, you can always go another route and let Waze recalculate."', //rz 2/26/15
			"Volunteer responding – We cannot disable legal routes only because they are difficult. If you wait and complete the route, it may actually be faster than the alternative. If it’s not faster, your wait time will contribute to Waze’s database, thus helping to discourage the routing server from suggesting the route. We also suggest if you do not feel comfortable, you can always go another route and let Waze recalculate.", //karlcr9911 4/4/15 //rickzabel 4/5/15
			"NotIdentified",

			"Missing place",
			"Volunteer responding - Thank you for reporting a missing place.  Anytime you find a a place that is missing from the waze app you can add it from the app by tapping the Pin icon > Place. After taking a picture of the place please add as many details as you can. Thanks!",
			"NotIdentified",


			"California double yellow",
			"Volunteer responding, In California it is perfectly legal to make a left turn across one double yellow line. Turning across two double yellow lines, spaced apart 2 feet or more, is considered a barrier, and is illegal to cross. Thanks!", //rz 2/26/15 //karlcr9911 4/4/15
			"NotIdentified",

			"Detours / Odd-Routing",
			//"We can't find anything in the map to explain route Waze gave you. Waze wants to save you time every way it can and sometimes it suggests complex detours just to shave a few seconds off your trip. Waze may recommend a detour even after the traffic has cleared up because: it doesn't know yet, other Wazers may have reported a temporary street closure, or daily traffic patterns. In any event, we are very sorry to say that the volunteer map editors can't be much help here. Thanks!",
			//"We can't find anything on the map to explain route Waze gave you. Waze tries to save you time and sometimes suggests complex detours just to shave a few seconds off your trip. We are very sorry to say that the volunteer map editors can not be much help here. Thanks!", //rickzabel 12/7/14
			//"We can't find anything on the map to explain the route Waze gave you. Waze will route complex detours to save a few seconds. We are very sorry to say that map editors can not be helpful in this situation. Thanks!", //t0cableguy 12/7/14 //rickzabel 12/7/14 //karlcr9911 12/8/14
			//"Volunteer responding - We can't find anything on the map to explain the route Waze gave you. Waze will route complex detours to save a few seconds. We are very sorry to say that map editors can not be helpful in this situation. Thanks!", //rickzabel 12/11/14
			"Volunteer responding - We can't find anything on the map to explain the route Waze gave you. Waze will route complex detours to save a few seconds. We are very sorry to say that map editors cannot be helpful in this situation. Thanks!", //rickzabel 4/18/20115
			"NotIdentified",

			"Overall Waze complaint",
			"Volunteer responding - You can help make Waze better by reporting problems as you find them. Please include as many details as possible? Thanks!",
			"NotIdentified", //rickzabel Pesach 12/22/14

			"Report to local municipality",
			//"Volunteer responding - We are only able to help with map issues, this should be reported to the local municipality. Please feel welcome to report any map issues you encounter. Thanks!",//rickzabel Pesach 12/22/14
			"Volunteer responding - We are only able to help with map issues. This should be reported to the local municipality. Please feel welcome to report any map issues you encounter. Thanks!", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"NotIdentified",

			"No user transponder (avoid tolls)",
			//"Volunteer responding - Waze is about getting you to your destination the fastest; however, it does not know if you have a toll transponder. Therefore, if you prefer to not have toll routes suggested, there is a feature under Settings > Navigation to avoid toll roads. Thanks!", //rickzabel Pesach 12/22/14
			//"Volunteer responding - Waze is about getting you to your destination via the fastest route. However, it does not know if you have a toll transponder. Therefore, if you prefer to not have toll routes suggested, there is a feature under Settings > Navigation to avoid toll roads. Thanks!", //rz 2/26/15 //karlcr9911 4/4/15
			//"Volunteer responding - Waze is about getting you to your destination via the fastest route. However, it does not know if you have a toll transponder. To avoid tolls, there is an option under Settings > Navigation or after clicking GO tap Routes and select one without gold coins (iphone) or toll (android). Thanks!", //a version of this was suggested by subs5 4/12/2015 //rickzabel 4/17/2015
			//"Volunteer responding -  While Waze attempts to route you to your destination efficiently, it does not know if you have a toll transponder. To avoid tolls, there is an option under Settings > Navigation or after clicking GO tap Routes and select one without gold coins (iphone) or toll (android). Thanks!", //rickzabel 4/17/2015
			"Volunteer responding -  While Waze attempts to route you to your destination efficiently, it does not know if you have a toll transponder. To avoid tolls, there is an option under Settings > Navigation or after clicking GO tap Routes and select one without the toll icon. Thanks!", //rickzabel 11/24/2016
			"NotIdentified",

			"No user transponder",
			//"Volunteer responding - Waze is about getting to your destination the fastest; however, it does not know if you have a toll transponder. As you travel, please feel welcome to report any map issues you encounter. Thanks!",//rickzabel Pesach 12/22/14
			//"Volunteer responding - Waze is about getting to your destination via the fastest route. However, it does not know if you have a toll transponder. As you travel, please feel welcome to report any map issues you encounter. Thanks!", //rickzabel 2/26/15 //t0cableguy 4/5/2015
			"Volunteer responding - While Waze attempts to route you to your destination efficiently, it does not know if you have a toll transponder.  We are very sorry to say that the volunteer map editors cannot be much help here. As you travel, please feel welcome to report any map issues you encounter. Thanks!", //rickzabel karlcr9911 4/18/2015
			"NotIdentified",

			"Not Using HOV",
			//"The map is setup correctly to support the HOV lane here. However the Waze Client App doesn't yet have the ability to know if you are in an HOV vehicle, it therefore assumes you do not meet the HOV criteria, and will only route you on roads open to all private vehicles.\nIf you are a qualified HOV vehicle and want to use the HOV lane, driving into the HOV should force Waze to recalculate your route. Once Waze realizes you are in the HOV lane, it should calculate the best route to your destination allowing you to stay in the HOV lane. If you have other questions or issues, please reply here, or send a new report at the location of the issue.\nThank you, and Happy Wazing", //peash 12/14/14
			"Waze does not have the ability to know you meet the HOV criteria. Driving into the HOV lane should force Waze to recalculate your route. Afterwards you should be allowed to stay in the HOV lane. Thanks!", //rickzabel 12/14/14
			"NotIdentified",

			"U-turns",
			//"Volunteer responding - Currently Waze will not tell you to make a \"U-turn\". It will route you in several left/right turns to effectively create a U-turn. This is a programming issue that cannot be changed by the volunteer map editors, but we understand that Waze is working on a fix. Thanks!",//rickzabel Pesach 12/22/14
			"Volunteer responding - Currently Waze will not tell you to make a \"U-turn\". It will route you in several left/right turns to effectively create a U-turn. This is a programming issue that cannot be changed by the volunteer map editors. We understand that Waze is working on a fix. Thanks!", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"NotIdentified",

			"Traffic - Stale Information",
			//"Volunteer map editors can't do anything about Waze's traffic reporting. Waze relies on data from people using Waze to assess traffic. In the case of a fresh accident or slowdown, Waze may not yet have any data on the situation. Once Waze has detected a traffic situation, it can remember it for awhile, sometimes long after the situation changes.",
			//"Waze relies on data from people using Waze to assess traffic. The volunteer map editors cannot edit conditions reported through the Waze app. In the case of a recent accident or slowdown, Waze may not have any data for this situation. Once Waze has detected a traffic situation it might remember it for a period of time after the situation cleared up.", // reworded - rickzabel 12/7/2014, karlcr9911 12/8/14
			//”Waze relies on data from users like you to assess traffic. Map editors cannot cannot remove traffic jams reported through the Waze app. Once Waze has detected a traffic jam it will remain active until enough users vote it off the map or users travel through the intersection at normal speed. You can help clear traffic jam reports by tapping “not there” in the app when the pins appear. Thanks!” //t0cableguy 07/12/2015
			"Map editors are unable to remove traffic jams. You can help clear traffic reports by tapping \"not there\" when prompted or by traveling through the intersection at normal speed.", // rickzabel 7/22/2015 //t0cableguy 7/22/2015
			"NotIdentified",

			"Traffic - Jams",
			//"To report traffic jam conditions, please use the Report -> Traffic Jam options in the Waze app. This will tell Waze about the problem in real-time. Traffic Jam reports can help route you and other Wazers around traffic problems.",
			"To report a traffic jams please use the Waze app by clicking the pin in the lower right and then clicking Traffic Jam. Traffic Jam reports can help route you and other Wazers around traffic problems in real-time. Thanks!", // reworded - rickzabel 12/7/2014, karlcr9911 12/8/14
			"NotIdentified",

			"Signal Avoidance Bug",
			//"I do not see any issues with the current turn restrictions in the area. This appears to be part of the known signal avoidance bug. Waze's developers are working on a fix for the issue but currently we do not have an ETA. Please feel free to take the turn until the issue is resolved. Thanks!",  // remove - rickzabel 12/7/2014  // added - rickzabel 12/7/2014
			//"There are no issues with the intersection’s turn restrictions. Waze's developers are working on a fix for this issue but we do not have an ETA. Please feel free use the signaled turn until the issue is resolved. Thanks!", // t0cableguy 12/7/14
			//"There are no issues with the intersection’s turn restrictions. Waze's developers are working on a fix for this issue but we do not have an ETA. Please feel free to use the turn until the issue is resolved. Thanks!", // rickzabel 12/9/14
			"There are no issues with the intersection’s turn restrictions. Waze's developers are working on a fix for this issue. We do not have an ETA. Please feel free to use the turn until the issue is resolved. Thanks!", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"NotIdentified",

			"Already included restrictions",
			"This restriction is already included in the map, Waze should not route through this illegal turn. If Waze ever gives you a route through a restricted turn, please send another Map Issue report at that time. Thanks!",
			"NotIdentified", //rickzabel Pesach 12/27/14

			"1000 mile limit",
			//"The search and navigation capabilities of Waze are limited to 1000 miles. When driving further than that distance you will need to select a target under that distance as your temporary destination.",//rz 2/26/15
			"The search and navigation capabilities of Waze are limited to 1000 miles. When driving further than that distance you will need to select a destination less than 1000 miles as your temporary destination.", //karlcr9911 4/5/15 //rickzabel 4/5/15
			"NotIdentified",

			"Temporary road blockage",
			//"Volunteer responding - if the road is completely blocked use the Report > Closure feature for you and others to be rerouted around it, otherwise please use Report > Traffic. At a minimum Waze is learning that that route is slower, and a faster route will become preferred.", //rickzabel Pesach 12/22/14
			"Volunteer responding - If the road is completely blocked, use the Report > Closure feature for you and others to be rerouted around it. Otherwise please use Report > Traffic. At a minimum Waze is learning that that route is slower, and a faster route will become preferred.", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"NotIdentified",

			"Temporary Road Closure",
			"Volunteer responding - For closures that last only a few days, the volunteer map editors cannot be much help. It takes at least that long for our edits to make it to the live map! When you encounter road closures in the future, please use the Report > Closure feature built into the Waze app. Thanks!",
			"NotIdentified",

			"Temporary Road Closure",
			//"How long is the road going to be closed? For closures of only a few days, we volunteer map editors can't be much help. It takes at least that long for our edits to make it to devices! When you encounter short-term road closures in the future, please use the Report->Closure feature in the Waze app. If this is a long-term closure please respond and let us know as much as you can. Thanks!",
			"Do you know how long the road is going to be closed? For closures that last only a few days, the volunteer map editors cannot be much help. It takes at least that long for our edits to make it to the live map! When you encounter short-term road closures in the future, please use the Report > Closure feature built into the Waze app. If this is a long-term closure please respond and let us know as much as you can. Thanks!", // reworded - rickzabel 12/7/2014, karlcr9911 12/8/14
			"Open",

			"Closure clean-up",
			"Due to daily changing closures we are closing out the old requests to concentrate on the newest ones. For closures that last only a few days, the volunteer map editors cannot be much help. It takes at least that long for our edits to make it to the live map! When you encounter short-term road closures in the future, please use the Report > Closure feature built into the Waze app. Thanks!", //rickzabel 12/28/14
			"NotIdentified",

			"Thanks for the reply",
			"Thank you for the reply! This request will be closed. As you travel, please feel welcome to report any map issues you encounter.",
			"NotIdentified", //rickzabel 12/27/14

			"No further communication",
			//"No further communication was received. This request will now be closed. As you travel, please feel welcome to report any map issues you encounter. Thanks!",  //rickzabel 12/7/14, karlcr9911 12/7/14 t0cableguy 12/8/14 // one sentence? rickzabel 12/7/14
			//"No further communication was received. This request will now be closed. As you travel, please feel welcome to report any map issues you encounter. Thanks!",
			"No further information was received and the request is being closed. As you travel, please feel welcome to report any map issues you encounter. Thanks!", //t0cableguy 12/8/14 //rickzabel 12/8/14 , karlcr9911 12/8/14
			"NotIdentified", // same comment different action based off UR status rickzabel 12/7/14, karlcr9911 12/7/14 // one sentence? rickzabel 12/7/14 t0cableguy 12/8/14

			"water non-editable",
			"This particular water feature is not editable by the volunteer editors, feel free to report this to support at https://support.google.com/waze/",
			"NotIdentified",

			"Clear TTS Cache",
			//"If you continue to have this problem you will need to clear your Text-to-Speech cache. Go to the navigation screen and type cc@tts in search field and hit search. You should get a pop up message that the TTS file has been cleared. It will take a few days for the file to build back up with all the spoken street names.",
			//"Please clear your Text-to-Speech cache. In the navigate search box type cc@tts in the search field and press search. A message that the TTS file has been cleared should appear. It will take a few days for the file to download the spoken street names. Thanks!", //t0cableguy 12/8/2014, karlcr9911 12/8/14
			//"Please clear your Text-to-Speech cache. In the navigate search box type cc@tts in the search field and press search. You will get a message that the TTS file has been cleared. It will take a few days for the the spoken street names to be downloaded. Thanks!", //rickzabel 12/9/14
			"Please clear your Text-to-Speech cache. In the navigate search box type cc@tts in the search field and press search. You will get a message that the TTS file has been cleared. Your TTS cache will be re-populated as you use routing.. Thanks!", //GizmoGuy411  t0cableguy rickzabel 2015-04-04
			"NotIdentified", //t0cableguy This should be a last chance option for fixing the issue.04-04-2015  //rickzabel 04-04-2015

			//"Camera report",
			//"Thanks for the report. To ensure proper placement, Cameras must be reported in the app.  REPORT > CAMERA (may have to scroll down for it) > SPEED/Red LIGHT > Submit”, //subs5 4/17/2015
			//"Thanks for the report. To ensure proper placement, Cameras must be reported in the app. REPORT > (scroll to) CAMERA > SPEED / Red LIGHT / Fake  > Send”, //GizmoGuy411 2015-04-17
			//"Volunteer responding, cameras must be reported from the app at / near the actual location using the Report > Camera option. Thank you!", //karlcr9911 rickzabel 4/17/2015
			//"NotIdentified",

			"<br>",
			"",
			"",

			"Problem appears corrected",
			"Just a reminder: The problem appears to be corrected. Please let us know if you are continuing to have the issue. If we do not hear from you in a few days we will close this report. Thanks!",
			"Open", //karlcr9911 12/7/14 t0cableguy 12/8/14 //rickzabel 12/8/14

			"Clears comment & sets UR status to Open",
			"",
			"Open",

			"Include Users Description",
			"Volunteer responding - You reported \"$URD\" and Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!",
			"Open",

			//selected segments requires the use of https://greasyfork.org/en/scripts/9232-wme-panel-swap
			"Include selected segments names",
			"Volunteer responding - You reported a problem near $SELSEGS, Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!",
			"Open",

			"Wrong Street Name",
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know which street name you think is wrong and what it should be? Thanks",
			"Open", //rickzabel Pesach 12/22/14


			"<br>",
			"",
			"",

			//Default URs  6 through 22 are all the different types of UR that a user can submit do not change them thanks
			"Incorrect turn", //6
			//"Would you please let us know what turn you are having a problem with? Thanks!",
			//"Volunteer responding to your report: Would you please let us know what turn you are having a problem with? Would you tell us your destination as you entered it into Waze? Thanks!",//rickzabel 12/7/14, karlcr9911 12/8/14
			"Volunteer responding - Would you please let us know what turn you are having a problem with? Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/9/14
			"Open",

			"Incorrect address", //7
			//"Waze did not send us enough information to fix your request. In order for us to help you we need to know a couple of things; What is the address as you entered it into Waze and what was the problem you were having with this address?",
			//"Volunteer responding to your report: Waze did not send us enough information to fix your request. Would you tell us your destination as you entered it into Waze? What is the problem you are having with this address? Thanks!", //rickzabel 12/8/14, karlcr9911 12/8/14
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you tell us your destination as you entered it into Waze? What is the problem you are having with this address? Thanks!", //rickzabel 12/8/14
			"Open",

			"Incorrect route", //8
			//"Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!",
			//"Volunteer responding to your report: Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!", // karlcr9911  12/8/14
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/9/14
			"Open",

			"Missing roundabout", //9
			"Volunteer responding - Would you tell us as much as possible about the roundabout you believe is missing? Thanks!",
			"Open",

			"General error", //10
			//"Waze did not send us enough information to fix your request. Would you please let us know what went wrong? Would you tell us your destination as you entered it into Waze? Thanks!",
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know what went wrong? Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/9/14
			"Open",

			"Turn not allowed", //11
			//"Would you please let us know what turn was not, or should not be, allowed and the street names at the intersection? Thanks!",
			//"Volunteer responding - Would you please let us know what turn was not, or should not be, allowed and the street names at the intersection? Thanks!", //rickzabel 12/9/14
			"Volunteer responding - Would you please let us know which turn was or should not be allowed and why? Please specify the street names at the intersection. Thanks!", //rickzabel 2/26/15
			"Open",

			"Incorrect junction", //12
			//"Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!",
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/9/14
			"Open",

			"Missing bridge overpass", //13
			//"Would you please let us know what overpass you believe is missing? When moving at highway speeds, Waze deliberately chooses not to display some nearby features to avoid cluttering the screen. Would you tell us as much as possible about the missing overpass. Thanks!",
			"Volunteer responding - Would you please let us know what overpass you believe is missing? When moving at highway speeds, Waze deliberately chooses not to display some nearby features to avoid cluttering the screen. Would you tell us as much as possible about the missing overpass. Thanks!", //rickzabel 12/9/14
			"Open",

			"Wrong driving direction", //14
			//"Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!",
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/9/14
			"Open",


			"Missing Exit", //15
			//"Waze did not send us enough information to fix your request. Would you please let us know as much as possible about the missing exit? Thanks!",
			"Volunteer responding - Waze did not send us enough information to fix your request. Would you please let us know as much as possible about the missing exit? Thanks!", //rickzabel 12/9/14
			"Open",

			"Missing Road", //16
			//"Would you tell us as much as possible about the road you believe is missing? Thanks!",
			"Volunteer responding - Would you tell us as much as possible about the road you believe is missing? Thanks!", //rickzabel 12/9/14
			"Open",


			"Missing Landmark", //18
			"Volunteer responding - Would you tell us as much as possible about the landmark you believe is missing? Thanks!",
			"Open",

			/*
			"Blocked Road", //19
			"Volunteer responding -",
			"Open",

			"Missing Street Name", //21
			"Volunteer responding -",
			"Open",

			"Incorrect Street Prefix or Suffix", ///22
			"Volunteer responding -",
			"Open",



			*/

			"Speed Limit", //23
			"Waze did not send us enough information to fix your request. Would you please tell us as much as possible about the issue regarding the speed limit? In the future please submit requests near the point where the speed limit changes. If the speed limit change is temporary due to construction, please advise and provide additional details. If you would like to see speed limits at all times while using the app, please go to Settings > Speedometer > Show speed limit. Thanks!",
			"Open", //rickzabel


			"<br>",
			"",
			"",
			//End of Default URs

			"User Followed Waze's route",
			//"It appears that you ended up going the route Waze suggested, what was the problem you were having? Would you tell us your destination as you entered it into Waze? Thanks!",
			//"It appears that you followed the Waze-suggested route. What problem did you encounter here? Would you tell us your destination as you entered it into Waze? Thanks!",  //karlcr9911 12/7/2014
			"Volunteer responding - It appears that you followed the route Waze suggested. Would you please let us know what went wrong with the route Waze gave you? Would you tell us your destination as you entered it into Waze? Thanks!", //reworded rickzabel 12/7/2014
			"Open",

			"Alley Interference",
			//"Waze doesn't tell volunteer editors where you were going, although it was probably adjacent to the alley. If you would, please supply your destination as you entered it into Waze it may be helpful in correcting the route. Thanks!",
			//"Waze does not let the volunteer editors know where you were going, although it was probably adjacent to the alley. If you would, please supply your destination as you entered it into Waze, it may be helpful in correcting the route. Thanks!", //rickzabel 12/7/14
			"Volunteer responding - Waze does not let the us know where you were going, although it was probably adjacent to the alley. Would you tell us your destination as you entered it into Waze? Thanks!", //rickzabel 12/9/14
			"Open",

			"Road Closed",
			//"Would you please let us know the following; What road is closed?; between which intersections is this road closed; Do you know how long this road is scheduled to be closed? Thanks!", //karlcr9911
			"Volunteer responding - Would you please let us know the following; What road is closed?; between which intersections is this road closed; Do you know how long this road is scheduled to be closed? Thanks!", //rickzabel 12/9/14
			"Open",

			"Area Entrances",
			"We have had problems with Google pins being placed in the center of large landmarks. Delete your previous search and do a new search for the location. Go to the bottom of the auto fill list to see more results and make sure you pick the Waze search engine.",
			"Open",

			"48 Hour Reply",
			//"Please allow 48 hours for changes to be reflected in the live map.",
			"We made some changes to the map, please allow up to 48 hours for the changes to be reflected on the live map.", //rickzabel 12/7/14 //t0cableguy 12/8/14, karlcr9911 12/8/14
			"Open",

			"Clear Saved Locations",
			//"You should remove the location from your favorites and recent searches and then re-search for the location to update the result.",
			//"To get an updated result you should remove the location from your favorites and recent searches and then re-search for the location.", //rickzabel 12/7/14
			"To get an updated result, remove the location from your navigation history and then search for the location again.", //t0cableguy 12/8/14, karlcr9911 12/8/14
			"Open",

			"Address - Incorrect Position",
			//"Thank you for your report. Would you please let us know what address you’re reporting the problem with? You can also use the Report -> Places feature in Waze to mark the location. It is helpful that after taking a picture, if you move near the location your are marking to save the place. Also, please do not submit pictures containing faces, license plates, or similar personal details. Thanks!", //i also prefer not to send messages with contractions "you’re" rickzabel 12/7/14
			//"What was the Address you had issues with? Please show us where the address you had issues is with the Report > Places feature in Waze. After taking a picture move as close to the entrance of the place you are adding before saving. Please do not submit images with personal details. Thanks!", //t0cableguy 12/7/14, karlcr9911 12/8/14
			//"What was the Address you had issues with? Please show us where the address you had issues is with the Report > Places feature in Waze. After taking a picture, move close to the entrance of the place you are adding, before saving. Please do not submit pictures containing faces, license plates, or personal details. Thanks!", //rickzabel 2/26/15
			"Can you tell us the address or if you can revisit visit the location, please show us the correct position by using the Report > Places feature. Before you save move as close as possible to the entrance. Please do not submit pictures containing faces, license plates, or personal details. Thanks!", //rickzabel t0cableguy 04-04-2015
			"Open",

			"Address - Missing from Map",
			//"Thank you for your report. Would you please let us know where the address you're reporting is? The live map doesn't have all the street numbers for that street and Waze is interpolating in error. You can also use the Report -> Places feature in Waze to mark the location. It is helpful that after taking a picture, if you move near the location you’re marking to save the place. Also, please do not submit pictures containing faces, license plates, or similar personal details. Thanks!", //rickzabel 12/7/14
			//"Volunteer responding -  Would you let us know the address that is missing? The live map does not have all the street numbers. You can also use the Report Places feature in Waze to mark the location. It is helpful that after taking a picture that you move near the location you’re marking to save the place. Also, please do not submit pictures containing faces, license plates, or personal details. Thanks!", //rickzabel 12/9/14
			//"Volunteer responding -  Would you let us know the address that is missing? The live map does not have all the street numbers. You can also use the Report Places feature in Waze to mark the location. It is helpful that after taking a picture that you move near the location you’re marking to save the place. Please do not submit pictures containing faces, license plates, or personal details. Thanks!", //rickzabel 2/26/15
			"Volunteer responding - Would you let us know the address that is missing? The available resources do not have the address available for your location. You can use the Report > Places feature in Waze to mark the location. Before you save move close as possible to the entrance. Do not submit pictures containing faces, license plates, or personal details. Thanks!", //rickzabel 4/5/2015 //t0cableguy 4/5/2015
			"Open",

			"Address - Bad Results",
			//"Thank you for your report. The search feature retrieves results from a number of locations, including Google. Scrolling to the bottom the Navigate screen, you'll see more results for 'name.' Select that and Waze will list locations Around You. From there, you can also select results from other search engines.",
			//"Search results in Waze are retrieved from numerous sources. After tapping search, Scroll to the bottom and you will see options for other search engines . Please try a different option as each one may provide better navigation", //t0cableguy 12/7/14, karlcr9911 12/8/14
			"Search results in Waze are retrieved from numerous sources. After tapping search, Scroll to the bottom and you will see options for other search engines. Please try a different option as another search engine might have the address you are looking for", //rickzabel 12/9/14
			"Open",

			"House Number Adjustment",
			//"I've forced Waze to re-register the house number for your destination. I believe this should correct your issue. Please allow 48 hours for changes to be reflected in the live map. If the location is in your saved searches or favorites, please remove them and search for them again to pick up the change in the live map. Please let me know if you continue to experience the problem. Thanks!",
			"I've forced Waze to re-register the house number for your destination. I believe this should correct your issue. Please allow up to 48 hours for changes to be reflected in the live map. If you have the location in your saved searches or favorites, please remove them and re-add the destination. Please let me know if you continue to experience this problem by submitting another error report. Thanks!", //rickzabel 12/7/14 //karlcr9911 12/8/14
			"Open",

			"Missing Bridges or Roads",
			//"The roads here have been pretty thoroughly mapped and we volunteers can't see anything missing that should ordinarily be there. Waze probably simply chose not to show you the feature in question. When moving at highway speeds, Waze deliberately chooses not to display some nearby features to avoid cluttering the screen. If you are certain a feature is missing from the map, please reply and tell us as much as possible about it. Thanks!",
			//"The roads for this area are thoroughly mapped and the volunteer editors can not find anything missing from the map. When you are moving, Waze deliberately chooses not to display some nearby features to avoid cluttering the screen. If you are certain a feature is missing from the map, please reply and tell us as much as possible about it. Thanks!", //reworded rickzabel 12/7/14  //karlcr9911 12/8/14
			"The roads for this area are thoroughly mapped and the volunteer editors cannot find anything missing from the map. When you are moving, Waze deliberately chooses not to display some nearby features to avoid cluttering the screen. If you are certain a feature is missing from the map, please reply and tell us as much as possible about it. Thanks!", //rickzabel karlcr9911 4/18/2015
			"Open",

			"Manual Refresh",
			//"You can try a manual refresh by going to Settings > Advanced > Data transfer > refresh maps.",
			//"Please try doing these options. Tap the Wazer icon > Settings > Advanced > Data transfer > Refresh Map Of My Area. Second you can try clearing Waze's app cache in your phone’s app manager. The final option is  to Uninstall and Reinstall the app.", //t0cableguy 12/7/14
			//"Please try doing these options. Tap the Wazer icon > Settings > Advanced > Data transfer > Refresh Map Of My Area. Second, you can try clearing Waze's app cache in your phone’s app manager. The final option is to reset the app by going to the navigation screen and type ##@resetapp in search field and hit search.", // to Uninstall and Reinstall the app. (avoid user to use cellular data) //carloslaso 12/7/14 //rickzabel //t0cableguy
			//"Please try doing these options. Tap the Wazer icon > Settings > Advanced > Data transfer > Refresh Map Of My Area. Secondly, you can try clearing Waze's app cache in your phone’s app manager. The final option is to reset the app by going to the navigation screen and type ##@resetapp in search field and hit search.", //GizmoGuy rickzabel 2/26/15
			"Please try doing these options. Tap the Search Icon > Settings gear icon > Display & Map > Data Transfer > Refresh map of my area. Secondly, you can try clearing Waze's app cache in your phone’s app manager. The final option is to reset the app by going to the navigation screen and type ##@resetapp in search field and hit search.", // rickzabel 11/24/16
			"Open",

			"Pave Road",
			//"Please use the pave function in the app to show us the path of the missing road. You can do this by tapping the bottom right Pin icon, then Map Issue, and selecting the Pave Road tab. Once you leave any mapped roads you can tap start paving. Please be sure to tap the steamroller and tap stop paving before driving back onto any roads that are mapped. If paving a parking lot, please only drive the main roads and perimeters, not each aisle and space. Thanks for your contribution to the map! Thanks!", //requested by t0cableguy
			//"Please use the pave function in the app to show us the path of the missing road. You can do this by tapping the bottom right Pin icon, then Map Issue, and selecting the Pave Road tab. Once you leave any mapped roads you can tapp paving. Please be sure to tap the steamroller and tap stop paving before driving back onto any roads that are mapped. If paving a parking lot please only drive the main roads and perimeters, not each aisle and space. Thanks for your contribution to the map! Thanks!",//rickzabel
			//"Please pave the road in the app. Tap the Pin icon > Map Issue > Pave Road tab. After leaving any mapped roads tap start paving. Once done tap the steamroller > stop paving. Thanks for your contribution to the map!", //shortened and voted for by t0cableguy 12/7/14, karlcr9911 12/8/14
			//"Please pave the road in the app. Tap the Pin icon > Map Issue > Pave Road tab. After leaving any mapped roads tap start paving. Once done tap the steamroller > stop paving. If you then tap the  Pin icon (Report) > Map Issue > Missing Road, you can enter text providing information about the new road (name, is it a private road, etc.). Thanks for your contribution to the map!",//addition suggested by SuperDave1426 12/08/14
			//We already have open communication if we are telling them to pave a road. It would be helpful to drop ur pins but we have open communication and the users know how to submit reports. We shouldn’t close the UR that is already open, so we don’t need another UR.  t0cableguy 12/8/14 I’m leaning more torward adding this though SD as a teaching tool. t0cableguy 12/8/14
			//"Volunteer responding - You can pave the road from the app by tapping the Pin icon > Map Issue > Pave Road tab. After leaving the paved road tap start paving. Once done tap the steamroller > stop paving. You can provide information about the new road such as it's name buy tapping on the Pin icon > Map Issue > Missing Road, and Thanks!", //rickzabel 12/8/14 t0cableguy 12/8/14
			//"Volunteer responding - You can pave the road from the app by tapping the Pin icon > Map Issue > Pave Road tab. After leaving the paved road tap start paving. Once done tap the steamroller > stop paving. You can provide information about the new road such as it's name by tapping on the Pin icon > Map Issue > Missing Road, and Thanks!", //rickzabel 2/26/15
			"Volunteer responding - You can pave the road from the app by tapping the Pin icon > Map Issue > Pave Road tab. After leaving the paved road, tap Start paving. Once done, tap the Steamroller > Stop paving. You can provide information about the new road such as its name by tapping on the Pin icon > Map Issue > Missing Road. Thanks!", //karlcr9911 4/5/15 //rickzabel 4/5/15 removed single quotes
			"Open",

			//"Blank Screen.",
			//"Please follow these instructions in the app. Tap the Wazer icon > Settings > Advanced > Data transfer > Refresh map of my area. Second you can try clearing Waze's app cache in your phone’s app manager. The final option is  to Uninstall and Reinstall the app.",
			//"Open", //requested by t0cableguy 12/7/14 in map refresh now t0cableguy 12/8/14

			"Unlock request",
			//"I have requested the rights to get this issue fixed. Thanks for your report. Thanks! ", //requested by t0cableguy 12/8/14
			//"Volunteer responding to your report: I have requested the rights to get this issue fixed. Thanks for your report.", //rikzabel 12/8/14  i usually dont say anything cause this is weird that they made a request for you to make a request…
			//"I have begun the process to get this issue fixed. Thanks for your report. Thanks! ",//reword t0cableguy 12/8/14
			//"I have begun the process to get this issue fixed. Thanks for your report!", //rickzabel 12/11/14
			"I have started the process to get this issue fixed. Thanks for your report!", //GizmoGuy, t0cableguy, rickzabel 1/14/2015
			"Open"
        ];

        //auto insertion config:
        //the position in the list that the reminder message is at. (counting titles, comments, and ur status)
        ReminderPosistion = 24;

        //the position of the close as Not Identified message that you have in the list (the first comment is the list is 0)
        CloseNotIdentifiedPosistion = 27;

        //Waze's default URs number to name conversion array
        //Thanks to SuperMedic

        def_names[6] = "Incorrect turn";
        def_names[7] = "Incorrect address";
        def_names[8] = "Incorrect route";
        def_names[9] = "Missing roundabout";
        def_names[10] = "General error";
        def_names[11] = "Turn not allowed";
        def_names[12] = "Incorrect junction";
        def_names[13] = "Missing bridge overpass";
        def_names[14] = "Wrong driving direction";
        def_names[15] = "Missing Exit";
        def_names[16] = "Missing Road";
        def_names[18] = "Missing Landmark";
        def_names[19] = "Blocked Road";
        def_names[21] = "Missing Street Name";
        def_names[22] = "Incorrect Street Prefix or Suffix";
		def_names[23] = "Speed Limit";  //speed limit ur type is number 23

        //zoom out links
        URC_Text[0] = "Zoom Out 0 & Close UR";
        URC_Text_tooltip[0] = "Zooms all the way out and closes the UR window";

        URC_Text[1] = "Zoom Out 2 & Close UR";
        URC_Text_tooltip[1] = "Zooms out to level 2 and closes the UR window (this is where I found most of the toolbox highlighting works)";

        URC_Text[2] = "Zoom Out 3 & Close UR";
        URC_Text_tooltip[2] = "Zooms out to level 3 and closes the UR window (this is where I found most of the toolbox highlighting works)";

        URC_Text_tooltip[3] = "Reload the map";

        URC_Text[4] = "UR count : ";
        URC_Text_tooltip[4] = "Number of URs Shown on screen";

        //tab names
        URC_Text[5] = "Comments";
        URC_Text[6] = "UR Filtering";
        URC_Text[7] = "Settings";

        //UR Filtering Tab
        URC_Text[8] = "Click here for Instructions";
		URC_Text_tooltip[8] = "Instructions for UR filtering";
		URC_URL[8] = "https://docs.google.com/presentation/d/1zwdKAejRbnkUll5YBfFNrlI2I3Owmb5XDIbRAf47TVU/";

        URC_Text[9] = "Enable URComments UR filtering";
        URC_Text_tooltip[9] = "Enable or disable URComments filtering";

        URC_Text[10] = "Enable UR pill counts";
        URC_Text_tooltip[10] = "Enable or disable the pill with UR counts";

        URC_Text[12] = "Hide Waiting";
        URC_Text_tooltip[12] = "Only show URs that need work (hide in-between states)";

        URC_Text[13] = "Only show my URs";
        //URC_Text_tooltip[13] = "Hide UR where there are zero comments from the logged in editor";
        URC_Text_tooltip[13] = "Hide URs where you have no comments";

        URC_Text[14] = "Show others URs past reminder + close";
        URC_Text_tooltip[14] = "Show URs that other commented on that have gone past the reminder and close day settings added together";

        URC_Text[15] = "Hide URs Reminder needed";
        URC_Text_tooltip[15] = "Hide URs where reminders are needed";

        URC_Text[16] = "Hide URs user replies";
        URC_Text_tooltip[16] = "Hide UR with user replies";

        URC_Text[17] = "Hide URs close needed";
        URC_Text_tooltip[17] = "Hide URs that need closing";

        URC_Text[18] = "Hide URs no comments";
        URC_Text_tooltip[18] = "Hide URs that have zero comments";

        URC_Text[19] = "hide 0 comments without descriptions";
        URC_Text_tooltip[19] = "Hide URs that do not have descriptions or comments";

        URC_Text[20] = "hide 0 comments with descriptions";
        URC_Text_tooltip[20] = "Hide URs that have descriptions and zero comments";

        URC_Text[21] = "Hide Closed URs";
        URC_Text_tooltip[21] = "Hide closed URs";

        URC_Text[22] = "Hide Tagged URs";
        URC_Text_tooltip[22] = "Hide URs that are tagged with URO+ style tags ex. [NOTE]";

        URC_Text[23] = "Reminder days: ";
        //URC_Text_tooltip[23] = "";

        URC_Text[24] = "Close days: ";
        //URC_Text_tooltip[] = "";

        //settings tab
        URC_Text[25] = "Auto set new UR comment";
        URC_Text_tooltip[25] = "Auto set the UR comment on new URs that do not already have comments";

        URC_Text[26] = "Auto set reminder UR comment";
        URC_Text_tooltip[26] = "Auto set the UR reminder comment for URs that are older than reminder days setting and have only one comment";

        URC_Text[27] = "Auto zoom in on new UR";
        URC_Text_tooltip[27] = "Auto zoom in when opening URs with no comments and when sending UR reminders";

        URC_Text[28] = "Auto center on UR";
        URC_Text_tooltip[28] = "Auto Center the map at the current map zoom when UR has comments and the zoom is less than 3";

        URC_Text[29] = "Auto click open, solved, not identified";
        URC_Text_tooltip[29] = "Suppress the message about recent pending questions to the reporter and then depending on the choice set for that comment Clicks Open, Solved, Not Identified";

        URC_Text[30] = "Auto save after a solved or not identified comment";
        URC_Text_tooltip[30] = "If Auto Click Open, Solved, Not Identified is also checked, this option will click the save button after clicking on a UR-Comment and then the send button";

        URC_Text[31] = "Auto close comment window";
        URC_Text_tooltip[31] = "For the user requests that do not require saving this will close the user request after clicking on a UR-Comment and then the send button";

        URC_Text[32] = "Auto reload map after comment";
        URC_Text_tooltip[32] = "Reloads the map after clicking on a UR-Comment and then send button. This does not apply to any messages that needs to be saved, since saving automatically reloads the map. Currently this is not needed but I am leaving it in encase Waze makes changes";

        URC_Text[33] = "Auto zoom out after comment";
        URC_Text_tooltip[33] = "After clicking on a UR-Comment in the list and clicking send on the UR the map zoom will be set back to your previous zoom";

        URC_Text[34] = "Auto switch to the UrComments tab";
        URC_Text_tooltip[34] = "Auto switch to the URComments tab when opening a UR, when the UR window is closed you will be switched to your previous tab";

        URC_Text[35] = "Close message - double click link (auto send)";
        URC_Text_tooltip[35] = "Add an extra link to the close comment when double clicked will auto send the comment to the UR windows and click send, and then will launch all of the other options that are enabled";

        URC_Text[36] = "All comments - double click link (auto send)";
        URC_Text_tooltip[36] = "Add an extra link to each comment in the list that when double clicked will auto send the comment to the UR windows and click send, and then will launch all of the other options that are enabled";

        URC_Text[37] = "Comment List";
        URC_Text_tooltip[37] = "This shows the selected comment list. There is support for a custom list. If you would like your comment list built into this script or have suggestions on the Comments team’s list, please contact me at rickzabel @waze or @gmail";

        URC_Text[38] = "Disable done / next buttons";
        URC_Text_tooltip[38] = "Disable the done / next buttons at the bottom of the new UR window";

        URC_Text[39] = "Unfollow UR after send";
        URC_Text_tooltip[39] = "Unfollow UR after sending comment";

        URC_Text[40] = "Auto send reminders";
        URC_Text_tooltip[40] = "Auto send reminders to my UR as they are on screen";

        URC_Text[41] = "Replace tag name with editor name";
        URC_Text_tooltip[41] = "When a UR has the logged in editors name in the description or any of the comments of the UR (not the name Waze automatically adds when commenting) replace the tag type with the editors name";

        URC_Text[42] = "(Double Click)"; //double click to close links
        URC_Text_tooltip[42] = "Double click here to auto send - ";

		URC_Text[43] = "Dont show tag name on pill";
        URC_Text_tooltip[43] = "Dont show tag name on pill where there is a URO tag";

        URC_Text[44] = "Your signature";
        URC_Text_tooltip[44] = "Here you can set your signature, after making a change, please refresh your page to update the texts";

        URC_Text[45] = "c"; // Comment initial
        URC_Text_tooltip[45] = "Comments";
        
        URC_Text[46] = "d"; // Day initial
        URC_Text_tooltip[46] = "Days";
        
        URC_USER_PROMPT[0] = "URComments - You either have a older version of the custom comments file or a syntax error either will keep the custom list from loading. Missing: ";

        URC_USER_PROMPT[1] = "URComments - You are missing the following items from your custom comment list: ";

        URC_USER_PROMPT[2] = "List can not be found. You can find the list and instructions at https://wiki.waze.com/wiki/User:Rickzabel/UrComments/";

        URC_USER_PROMPT[3] = "URComments you can not set close days to zero";

        URC_USER_PROMPT[4] = "URComments - To use the double click links you must have the Auto click open, solved, not identified option enabled";

        URC_USER_PROMPT[5] = "URComments - Aborting FilterURs2 because both filtering, counts, and auto reminders are disabled";

        URC_USER_PROMPT[6] = "URComments: Loading UR data has timed out, retrying."; //this message is shown across the top of the map in a orange box, length must be kept short

        URC_USER_PROMPT[7] = "URComments: Adding reminder message to UR: "; //this message is shown across the top of the map in a orange box, length must be kept short

        URC_USER_PROMPT[8] = "URComment's UR Filtering has been disabled because URO+\'s UR filters are active."; //this message is shown across the top of the map in a orange box, length must be kept short

        URC_USER_PROMPT[9] = "UrComments has detected that you have unsaved edits!\n\nWith the Auto Save option enabled and with unsaved edits you cannot send comments that would require the script to save. Please save your edits and then re-click the comment you wish to send.";

        URC_USER_PROMPT[10] = "URComments: Can not find the comment box! In order for this script to work you need to have a UR open."; //this message is shown across the top of the map in a orange box, length must be kept short

        URC_USER_PROMPT[11] = "URComments - This will send reminders at the reminder days setting. This only happens when they are visible on your screen. NOTE: when using this feature you should not leave any UR open unless you had a question that needed an answer from the wazer as this script will send those reminders."; //conformation message/ question

        //end CommentTeam's list

    //custom other languages lists from external list
    } else {

        try {

            var CustomListError = false;
            var CustomErrorListText = "";
            var CustomErrorListCount = 0;

            //custom list
            URCommentsArray = eval("window.Urcomments" + SelectedBoilerPlateCreator + "Array2");

            //the position in the list that the reminder message is at. (starting at 0 counting titles, comments, and ur status)
            ReminderPosistion = eval("window.Urcomments" + SelectedBoilerPlateCreator + "ReminderPosistion");

            //the position of the close as Not Identified message (starting at 0 counting titles, comments, and ur status)
            CloseNotIdentifiedPosistion = eval("window.Urcomments" + SelectedBoilerPlateCreator + "CloseNotIdentifiedPosistion");

            //copy the waze default titles into the active ?
            //Waze's default URs number to name conversion array
            //Thanks to SuperMedic

            def_names[6] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[6]"); //"Incorrect turn";
             //console.log("URC: comment list error ");
            def_names[7] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[7]"); //"Incorrect address";
            def_names[8] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[8]"); //"Incorrect route";
            def_names[9] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[9]"); //"Missing roundabout";
            def_names[10] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[10]"); //"General error";
            def_names[11] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[11]"); //"Turn not allowed";
            def_names[12] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[12]"); //"Incorrect junction";
            def_names[13] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[13]"); //"Missing bridge overpass";
            def_names[14] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[14]"); //"Wrong driving direction";
            def_names[15] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[15]"); //"Missing Exit";
            def_names[16] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[16]"); //"Missing Road";
            def_names[18] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[18]"); //"Missing Landmark";
            def_names[19] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[19]"); //"Blocked Road";
            def_names[21] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[21]"); //"Missing Street Name";
            def_names[22] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[22]"); //"Incorrect Street Prefix or Suffix";
			def_names[23] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "def_names[23]"); //"Speed limits";


            //try {
            URC_Text[0] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[0]");
            URC_Text_tooltip[0] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[0]");

            URC_Text[1] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[1]");
            URC_Text_tooltip[1] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[1]");

            URC_Text[2] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[2]");
            URC_Text_tooltip[2] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[2]");

            URC_Text[3] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[3]");
            URC_Text_tooltip[3] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[3]");

            URC_Text[4] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[4]");
            URC_Text_tooltip[4] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[4]");

            URC_Text[5] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[5]");
            URC_Text_tooltip[5] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[5]");

            URC_Text[6] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[6]");
            URC_Text_tooltip[6] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[6]");

            URC_Text[7] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[7]");
            URC_Text_tooltip[7] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[7]");

            URC_Text[8] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[8]");
            URC_Text_tooltip[8] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[8]");
			URC_URL[8] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_URL[8]");

            URC_Text[9] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[9]");
            URC_Text_tooltip[9] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[9]");

            URC_Text[10] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[10]");
            URC_Text_tooltip[10] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[10]");

            URC_Text[11] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[11]");
            URC_Text_tooltip[11] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[11]");

            URC_Text[12] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[12]");
            URC_Text_tooltip[12] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[12]");

            URC_Text[13] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[13]");
            URC_Text_tooltip[13] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[13]");

            URC_Text[14] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[14]");
            URC_Text_tooltip[14] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[14]");

            URC_Text[15] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[15]");
            URC_Text_tooltip[15] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[15]");

            URC_Text[16] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[16]");
            URC_Text_tooltip[16] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[16]");

            URC_Text[17] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[17]");
            URC_Text_tooltip[17] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[17]");

            URC_Text[18] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[18]");
            URC_Text_tooltip[18] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[18]");

            URC_Text[19] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[19]");
            URC_Text_tooltip[19] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[19]");

            URC_Text[20] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[20]");
            URC_Text_tooltip[20] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[20]");

            URC_Text[21] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[21]");
            URC_Text_tooltip[21] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[21]");

            URC_Text[22] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[22]");
            URC_Text_tooltip[22] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[22]");

            URC_Text[23] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[23]");
            URC_Text_tooltip[23] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[23]");

            URC_Text[24] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[24]");
            URC_Text_tooltip[24] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[24]");

            URC_Text[25] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[25]");
            URC_Text_tooltip[25] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[25]");

            URC_Text[26] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[26]");
            URC_Text_tooltip[26] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[26]");

            URC_Text[27] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[27]");
            URC_Text_tooltip[27] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[27]");

            URC_Text[28] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[28]");
            URC_Text_tooltip[28] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[28]");

            URC_Text[29] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[29]");
            URC_Text_tooltip[29] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[29]");

            URC_Text[30] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[30]");
            URC_Text_tooltip[30] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[30]");

            URC_Text[31] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[31]");
            URC_Text_tooltip[31] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[31]");

            URC_Text[32] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[32]");
            URC_Text_tooltip[32] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[32]");

            URC_Text[33] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[33]");
            URC_Text_tooltip[33] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[33]");

            URC_Text[34] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[34]");
            URC_Text_tooltip[34] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[34]");

            URC_Text[35] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[35]");
            URC_Text_tooltip[35] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[35]");

            URC_Text[36] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[36]");
            URC_Text_tooltip[36] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[36]");

            URC_Text[37] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[37]");
            URC_Text_tooltip[37] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[37]");

            URC_Text[38] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[38]");
            URC_Text_tooltip[38] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[38]");

            URC_Text[39] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[39]");
            URC_Text_tooltip[39] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[39]");

            URC_Text[40] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[40]");
            URC_Text_tooltip[40] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[40]");

            URC_Text[41] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[41]");
            URC_Text_tooltip[41] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[41]");

            URC_Text[42] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[42]");
            URC_Text_tooltip[42] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[42]");

			URC_Text[43] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[43]");
			URC_Text_tooltip[43] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[43]");
			
			URC_Text[44] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[44]");
			URC_Text_tooltip[44] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[44]");

            URC_Text[45] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[45]");
			URC_Text_tooltip[45] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[45]");

            URC_Text[46] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text[46]");
			URC_Text_tooltip[46] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_Text_tooltip[46]");

            URC_USER_PROMPT[0] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[0]");
            URC_USER_PROMPT[1] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[1]");
            URC_USER_PROMPT[2] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[2]");
            URC_USER_PROMPT[3] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[3]");
            URC_USER_PROMPT[4] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[4]");
            URC_USER_PROMPT[5] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[5]");
            URC_USER_PROMPT[6] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[6]");
            URC_USER_PROMPT[7] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[7]");
            URC_USER_PROMPT[8] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[8]");
            URC_USER_PROMPT[9] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[9]");
            URC_USER_PROMPT[10] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[10]");
            URC_USER_PROMPT[11] = eval("window.Urcomments" + SelectedBoilerPlateCreator + "URC_USER_PROMPT[11]");


        } catch (err) {
            alert("URC: All of the text in URC is now configurable within the custom comments file. Your comments file " + SelectedBoilerPlateCreator + " is outdated, has errors, or your language file is not installed please back up your comments. Then force update the comments file from greasyfork and paste your comments back into the custom comments file. Since there is an error the comments team's list will be chosen.");
            //console.log("URC: comment list error " + err);
            parent.location='mailto:incoming+WMEScripts/URComments-French@incoming.gitlab.com?subject=BEFR%20error&body=' + SelectedBoilerPlateCreator;
            localStorage.setItem('BoilerPlateCreators', 'CommentTeam');
            $("#sidepanel-Comments").html('');
            //reload the content
            ChangeLanguage = true;
            URComments_bootstrap();
            return false;
        }
    }
    URComments_init();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////
////// init
//////
////////////////////////////////////////////////////////////////////////////////////////////////////////////

function URComments_init() {
    //urcToConsole("Start init 1");

    //create the URComments object
    var URComments = {};


    URComments.init = function() {
        //if we are changing the language do not redraw the tab
		//alert(ChangeLanguage)
        if (ChangeLanguage === false) {

            //CSS
            //expand the UR textarea so we can verfiy what comment we clicked on. special thanks to SeekingSerenity
            var g = '.ur-comment-list .comment-list { bottom: 200px !important; } .ur-comment-list .new-comment-form textarea { height: 140px !important; } .ur-comment-list .new-comment-form { height: 200px !important; }';

            var wazeheight = $(".view-area").height();
            if (wazeheight > 500) {
                //betaeditor commetn textarea
                g = g + '.new-comment-form .new-comment-text { height: 140px !important; }';
            }

            //css for items in my tab that are in a label (uro presets)
            g = g + '#sidepanel-Comments label { cursor:pointer; margin:0px 0px 0px; vertical-align: middle;font-size: 10px;}';

            //css for checkboxes
            g = g + '#sidepanel-Comments .URCommentsCheckbox { text-decoration:none; cursor:pointer; color: #000000; margin:0px 0px 0px; vertical-align: middle; font-size: 12px;}';

            //css for our comments,
            g = g + '#sidepanel-Comments .URComments { text-decoration:none; cursor:pointer; color: #000000; font-size: 12px;}'; // margin-top: 5px;

            //css for our uro presets,
            g = g + '#sidepanel-Comments .URCommentsPresets { text-decoration:none; cursor:pointer; color: #000000; font-size: 10px;}';

            //css for our nav tabs,
            g = g + '#comments-tab22 ul { font-size: 12px; padding: 0px;}';

            //css for our nav tabs links,
            g = g + '#comments-tab22 a { padding: 3px !important ; margin-right: 0px !important;}';

            // keep the padding on our nav tabs
            g = g + '#comments-tab22 nav-tabs { padding: 0px !important;}';

            //css for non selected UR opacity
            g = g + ".olMap.problem-selected .map-problem:not(.selected) { opacity: .5 !important;}";

            //css to fix the beta editors UR window
            g = g + '.problem-edit .section .title { line-height: 15px !important;  }';

            g = g + '.problem-edit .header { line-height: 15px !important; padding: 0px 15px!important; }';
            g = g + '.problem-edit .section .content { padding: 5px !important;}';

            //css to undo some of the changes from maximizer
            if ($("#sidebar").width() < 300) {
                g = g + '#sidebar { max-width: 290px !important;}';
                g = g + '.show-sidebar .row-fluid .fluid-fixed {margin-left: 290px !important;}';
            }

            //move description up a div
            g = g + '.problem-edit .description { background-color: white; overflow-x: hidden;  overflow-y: auto;  max-height: 80px; border-bottom: 2px solid #e9e9e9;}';


            //append our css to the head
            $("head").append($('<style type="text/css">' + g + '</style>'));

            //urcToConsole("Start adding the URComments's tab");
            //add comments tab
            var b = $('<li><a href="#sidepanel-Comments" data-toggle="tab" id="CommentsTab">URC</a> </li> ');
            //i had to switch to first() becuase someone was reusing the nav tabs in another script and this would cause my tab to go inside theirs!
            //$("h2 + ul.nav-tabs").first().append(b);
			$("#user-info ul.nav-tabs").first().append(b);//production 10/29/2015
			$("#user-tabs ul.nav-tabs").first().append(b);//beta 10/29/2015

			var c = "";
			c = c + '<div class="tab-pane" id="sidepanel-Comments" >';
			$("#user-info div.tab-content").first().append(c);//production 10/29/2015
			$("#user-tabs div.tab-content").first().append(c);//beta 10/29/2015



        }
        //reset the var to change the language
        ChangeLanguage = false;

		//add the content to the comments tab
		//Comment tab header and zoom out button
		var c = "";
		c = c + '<div class="URComments"></div></div>';
		//$("#sidepanel-Comments").first().append(c);//production 10/29/2015
		$("#sidepanel-Comments").first().append(c);//beta 10/29/2015


        var c = "";
		c = c + '<div class="row middle-xs" style="margin-right: auto; margin-left: auto;">';
		c = c + '<div class="colxs-6" style= " width: auto;"><div style="text-align:center;"><img src="' + UrCommentsIcon + '" style="cursor:default;"><br /><div id="URCWazeReloadMap" title="' + URC_Text_tooltip[3] + '" data-original-title="" class="fa fa-repeat reload-button reload-button URComments" content="" style="font-size: 25px; position: relative; top: 10px;"></div>'// position: relative !important; left: 64px !important;
		c = c + '<div class="box">';
		c = c + '<br>';
		c = c + '<a id="URCommentZoomOutButton" class="URComments" Title="' + URC_Text_tooltip[0] + '">' + URC_Text[0] + '</a>';
		c = c + '<br>';
		c = c + '<a id="URCommentZoomOutButton2" class="URComments" Title="' + URC_Text_tooltip[1] + '">' + URC_Text[1] + '</a>';
		c = c + '<br>';
		c = c + '<a id="URCommentZoomOutButton3" class="URComments" Title="' + URC_Text_tooltip[2] + '">' + URC_Text[2] + '</a>';
		c = c + '<br>';
		c = c + '<span Title="' + URC_Text_tooltip[4] + '" id="URCount"></div>';
		c = c + '<br>';
		c = c + '</div>';
		c = c + '</div>';
		c = c + '</div>	';
        $(".URComments").append(c);

        //add the map zoom out handlers
        $("#URCommentZoomOutButton").click(URComments.SetZoomCloseUR(0, "CloseUR"));
        //$("#URCommentZoomOutButton").click(URComments.SetZoomCloseUR(1, "CloseUR"));
        $("#URCommentZoomOutButton2").click(URComments.SetZoomCloseUR(2, "CloseUR"));
        $("#URCommentZoomOutButton3").click(URComments.SetZoomCloseUR(3, "CloseUR"));

        //add the map reload handler
        $("#URCWazeReloadMap").click(URComments.AutoReloadMapOnComment);

        c = '<div id="comments-tab22" class="active" style="padding-top: 0px;">';
        c = c + '	<ul class="nav nav-tabs">';
        c = c + '		<li class="active"><a data-toggle="tab" href="#sidepanel-URComments-list">' + URC_Text[5] + '</a></li>';
        c = c + '		<li><a data-toggle="tab" href="#sidepanel-URComments-URO-Presets">' + URC_Text[6] + '</a></li>';
        c = c + '		<li><a data-toggle="tab" href="#sidepanel-URComments-settings">' + URC_Text[7] + '</a></li>';
        c = c + '	</ul>';
        c = c + '	<div class="tab-content">'; // style="padding: 10px 1px 1px 10px !important;"
        c = c + '		<div class="tab-pane active" id="sidepanel-URComments-list">';
        c = c + '		</div>';
        c = c + '		<div class="tab-pane" id="sidepanel-URComments-URO-Presets">';
        c = c + '		</div>';
        c = c + '		<div class="tab-pane" id="sidepanel-URComments-settings">';
        c = c + '		</div>';
        c = c + '	</div>';
        c = c + '</div>';

        //add the sub tabs to the scripts main tab
        $("#sidepanel-Comments").append(c);

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //////
        ////// Comments
        //////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////

        d = $('<a target="_blank" Title="' + URC_Text_tooltip[8] + '" href="' + URC_URL[8] + '">' + URC_Text[8] + '<a/><br><br>');
        $("#sidepanel-URComments-URO-Presets").append(d);

        //enable or disable urc filtering URCommentsFilterEnabled
        d = $('<label Title="' + URC_Text_tooltip[9] + '"><input type="checkbox" id="URCommentsFilterEnabled" class="URCommentsCheckbox"> ' + URC_Text[9] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsFilterEnabled").click(function() {
            $(localStorage.setItem('URCommentsFilterEnabled', URCommentsFilterEnabled.checked));

            //if(URCommentsFilterEnabled.checked == true){
            setTimeout(URComments.FilterURs('filterenabled'), 0);
            //}
        });

        var avdd = localStorage.getItem('URCommentsFilterEnabled');
        if (avdd === null) {
            avdd = true;
        }
        $("#URCommentsFilterEnabled").prop('checked', eval(avdd));

        //enable or disable ur pill counts
        d = $('<label Title="' + URC_Text_tooltip[10] + '"><input type="checkbox" id="URCommentsPillEnabled" class="URCommentsCheckbox"> ' + URC_Text[10] + '</input></label><br><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsPillEnabled").click(function() {
            $(localStorage.setItem('URCommentsPillEnabled', URCommentsPillEnabled.checked));

            //if(URCommentsPillEnabled.checked == true){
            setTimeout(URComments.FilterURs('filterenabled'), 0);
            //}
        });

        var avdd = localStorage.getItem('URCommentsPillEnabled');
        if (avdd === null) {
            avdd = true;
        }
        $("#URCommentsPillEnabled").prop('checked', eval(avdd));

        //hide inbetween ur
        d = $('<label Title="' + URC_Text_tooltip[12] + '"><input type="checkbox" id="URCommentsHideInbetween" class="URCommentsCheckbox"> ' + URC_Text[12] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideInbetween").click(function() {
            $(localStorage.setItem('URCommentsHideInbetween', URCommentsHideInbetween.checked));
            setTimeout(URComments.FilterURs('hideInbetween'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideInbetween');
        if (avdd === null) {
            avdd = true;
        }
        $("#URCommentsHideInbetween").prop('checked', eval(avdd));

        //hide UR that are not "mine"
        d = $('<label Title="' + URC_Text_tooltip[13] + '"><input type="checkbox" id="URCommentsHideNotMyUR" class="URCommentsCheckbox"> ' + URC_Text[13] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideNotMyUR").click(function() {
            $(localStorage.setItem('URCommentsHideNotMyUR', URCommentsHideNotMyUR.checked));
            setTimeout(URComments.FilterURs('URCommentsHideNotMyUR'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideNotMyUR');
        if (avdd === null) {
            avdd = true;
        }
        $("#URCommentsHideNotMyUR").prop('checked', eval(avdd));

        //show UR that have gone past the close day setting
        d = $('<label Title="' + URC_Text_tooltip[14] + '"><input type="checkbox" id="URCommentsShowPastClose" class="URCommentsCheckbox"> ' + URC_Text[14] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsShowPastClose").click(function() {
            $(localStorage.setItem('URCommentsShowPastClose', URCommentsShowPastClose.checked));
            setTimeout(URComments.FilterURs('URCommentsShowPastClose'), 0);
        });

        var avdd = localStorage.getItem('URCommentsShowPastClose');
        if (avdd === null) {
            avdd = true;
        }
        $("#URCommentsShowPastClose").prop('checked', eval(avdd));

        //hide reminders
        d = $('<label Title="' + URC_Text_tooltip[15] + '"><input type="checkbox" id="URCommentsHideReminderNeeded" class="URCommentsCheckbox"> ' + URC_Text[15] + '</input></label><br><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideReminderNeeded").click(function() {
            $(localStorage.setItem('URCommentsHideReminderNeeded', URCommentsHideReminderNeeded.checked));
            setTimeout(URComments.FilterURs('URCommentsHideReminderNeeded'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideReminderNeeded');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideReminderNeeded").prop('checked', eval(avdd));

        //hide replies
        d = $('<label Title="' + URC_Text_tooltip[16] + '"><input type="checkbox" id="URCommentsHideReplies" class="URCommentsCheckbox"> ' + URC_Text[16] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideReplies").click(function() {
            $(localStorage.setItem('URCommentsHideReplies', URCommentsHideReplies.checked));
            setTimeout(URComments.FilterURs('URCommentsHideReplies'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideReplies');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideReplies").prop('checked', eval(avdd));

        //hide older than 7 day
        d = $('<label Title="' + URC_Text_tooltip[17] + '"><input type="checkbox" id="URCommentsHideCloseNeeded" class="URCommentsCheckbox"> ' + URC_Text[17] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideCloseNeeded").click(function() {
            $(localStorage.setItem('URCommentsHideCloseNeeded', URCommentsHideCloseNeeded.checked));
            setTimeout(URComments.FilterURs('URCommentsHideCloseNeeded'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideCloseNeeded');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideCloseNeeded").prop('checked', eval(avdd));

        //hide initial (zero comments)
        d = $('<label Title="' + URC_Text_tooltip[18] + '"><input type="checkbox" id="URCommentsHideInital" class="URCommentsCheckbox"> ' + URC_Text[18] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideInital").click(function() {
            $(localStorage.setItem('URCommentsHideInital', URCommentsHideInital.checked));
            setTimeout(URComments.FilterURs('URCommentsHideInital'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideInital');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideInital").prop('checked', eval(avdd));

        //Hide UR that do not have descriptions
        d = $('<label Title="' + URC_Text_tooltip[19] + '"><input type="checkbox" id="URCommentsHideWithoutDescript" class="URCommentsCheckbox"> ' + URC_Text[19] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideWithoutDescript").click(function() {
            $(localStorage.setItem('URCommentsHideWithoutDescript', URCommentsHideWithoutDescript.checked));
            setTimeout(URComments.FilterURs('HideWithoutDescript'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideWithoutDescript');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideWithoutDescript").prop('checked', eval(avdd));

        //Hide UR that have descriptions
        d = $('<label Title="' + URC_Text_tooltip[20] + '"><input type="checkbox" id="URCommentsHideWithDescript" class="URCommentsCheckbox"> ' + URC_Text[20] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideWithDescript").click(function() {
            $(localStorage.setItem('URCommentsHideWithDescript', URCommentsHideWithDescript.checked));
            setTimeout(URComments.FilterURs('HideWithDescript'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideWithDescript');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideWithDescript").prop('checked', eval(avdd));

        //hide closed
        d = $('<label Title="' + URC_Text_tooltip[21] + '"><input type="checkbox" id="URCommentsHideClosed" class="URCommentsCheckbox"> ' + URC_Text[21] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideClosed").click(function() {
            $(localStorage.setItem('URCommentsHideClosed', URCommentsHideClosed.checked));
            setTimeout(URComments.FilterURs('URCommentsHideClosed'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideClosed');
        if (avdd === null) {
            avdd = true;
        }
        $("#URCommentsHideClosed").prop('checked', eval(avdd));

        //hide notes
        d = $('<label Title="' + URC_Text_tooltip[22] + '"><input type="checkbox" id="URCommentsHideNotes" class="URCommentsCheckbox"> ' + URC_Text[22] + '</input></label><br><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentsHideNotes").click(function() {
            $(localStorage.setItem('URCommentsHideNotes', URCommentsHideNotes.checked));
            setTimeout(URComments.FilterURs('URCommentsHideNotes'), 0);
        });

        var avdd = localStorage.getItem('URCommentsHideNotes');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsHideNotes").prop('checked', eval(avdd));

        //days used to filter UR (reminder days / close days)
        var d = $('<form>' + URC_Text[23] + '<input type="text" id="ReminderDays" style="width: 35px;"><br>' + URC_Text[24] + ' <input type="text" id="CloseDays" style="width: 35px;"></form><br><br><br><br><br><br>');
        $("#sidepanel-URComments-URO-Presets").append(d);

        //load reminder days
        $('#ReminderDays').val(localStorage.getItem('ReminderDays'));
        //load close days
        $('#CloseDays').val(localStorage.getItem('CloseDays'));
        //on load validation
        if ($('#ReminderDays').val() < 0) { //|| $('#ReminderDays').val() >= $('#CloseDays').val()
            $('#ReminderDays').val('0');
            $(localStorage.setItem('ReminderDays', $('#ReminderDays').val()));
        }
        if ($('#CloseDays').val() < 1) { // || $('#CloseDays').val() <= $('#ReminderDays').val()
            $('#CloseDays').val('7');
            $(localStorage.setItem('CloseDays', $('#CloseDays').val()));
        }

        //reminder days verification
        $("#ReminderDays").change(function() {
            $(localStorage.setItem('ReminderDays', $('#ReminderDays').val()));
            setTimeout(URComments.FilterURs('ReminderDaysChange'), 0);
        });

        //close days verification
        $("#CloseDays").change(function() {
            if ($('#CloseDays').val() < 1) { //|| $('#CloseDays').val() <= $('#ReminderDays').val()
                $('#CloseDays').val('7');
                alert(URC_USER_PROMPT[3]); //"URComments you can not set close days to zero days";
            } else {
                //save
                $(localStorage.setItem('CloseDays', $('#CloseDays').val()));
                setTimeout(URComments.FilterURs('CloseDaysChange'), 0);
            }
        });

        //start generating the comment list and mouse click handlers
        //urcToConsole("Start adding comments to the comment tab");
        //comments setup
        d = "";

        //CurrentIndex is used to keep count of total arrays pairs which is used on the div's id tags
        var CurrentIndex = 1;
        //urcToConsole("Create Div 1");

        //setup the comment color var
        var colorrr = "CC0000";
        var Title = "";
        var URCommentURLNote = "";
		var SelectedBoilerPlateCreator = localStorage.getItem('BoilerPlateCreators');
        //go over the array and generate comment divs
        for (var i = 0; i < URCommentsArray.length; i = i + 3) {
            //urcToConsole("Create div for - " + URCommentsArray[i] + " " + URCommentsArray[i + 2]);

            // make the URStatus lower case
            var URStatus = (URCommentsArray[i + 2]).toLowerCase();

            if (URStatus === "open") {
                //black
                colorrr = "#000000";
            } else if (URStatus === "solved") {
                //green
                colorrr = "#008F00";
            } else if (URStatus === "notidentified") {
                //orange
                colorrr = "#E68A00";
            } else {
                //red - not defined and that is a problem
                colorrr = "#CC0000";

            }
            //escaping titles and comments with escapeHtml(Comment) so we can display items with special char as html;
            //generate the comment links

            Title = URCommentsArray[i];
            var Comment = URComments.escapeHtml(URCommentsArray[i + 1]);

            //normal comment link
            d = '<div><a id="URComments-comment' + CurrentIndex + '" class="URComments" style="color:' + colorrr + '" Title="Title: ' + Title + ' Action: ' + URStatus + '; Comment: ' + Comment + ' ">' + Title + '</a>';
            //$("#sidepanel-Comments").append(d);

            if (URCommentsArray[i] === URCommentsArray[CloseNotIdentifiedPosistion] && localStorage.getItem('DBLClk7DCAutoSend') == "yes" || localStorage.getItem('DBLClkAll') == "yes") {
                if (URCommentsArray[i] !== "<br>") {
                    d = d + '<a id="URComments-commentDBLCLK' + CurrentIndex + '" class="URComments" style="color:' + colorrr + '" Title="' + URC_Text_tooltip[42] + Title + '"> ' + URC_Text[42] + '</a>'; //double click links

                }
            }

            d = d + '</div>';

            //add comment to list
            $("#sidepanel-URComments-list").append(d);

            //set urID to zero so we don't freak out the functions expecting a UR ID
            urID = 0;

            //create the click function for each comment
            $("#URComments-comment" + CurrentIndex).click(URComments.AutoZoomIN(URCommentsArray[i], URCommentsArray[i + 1], URStatus, urID));

            //create the double click function for each comment
            if (URCommentsArray[i] !== "<br>" && URCommentsArray[i] === URCommentsArray[CloseNotIdentifiedPosistion] && localStorage.getItem('DBLClk7DCAutoSend') == "yes" || localStorage.getItem('DBLClkAll') == "yes") {
                //use this to click send automatically
                if (URCommentsArray[i] !== "<br>") {
                    $("#URComments-commentDBLCLK" + CurrentIndex).dblclick(URComments.AutoZoomIN(URCommentsArray[i], URCommentsArray[i + 1], URStatus, urID, "AutoSendComment"));
                }

            }

			//add a keyboardshortcut for each comment
			if (URCommentsArray[i] !== "<br>") {
				//WMEKSRegisterKeyboardShortcut('URC' + SelectedBoilerPlateCreator, 'URComments ' + SelectedBoilerPlateCreator, 'URC' + SelectedBoilerPlateCreator + 'Shortcut'+i, URCommentsArray[i], URComments.AutoZoomIN(URCommentsArray[i], URCommentsArray[i + 1], URStatus, urID), '-1'); //shortcut1
			}

            //inc the CurrentIndex
            CurrentIndex++;
        }

        //add 2 br to the end of the list for lower resolution monitors
        d = '<br><br>';
        $("#sidepanel-URComments-list").append(d);

		//load the saved keyboard shortcuts
		WMEKSLoadKeyboardShortcuts('URC' + SelectedBoilerPlateCreator);
		//before unloading WME save the keyboard shortcuts
		window.addEventListener("beforeunload", function() {
		WMEKSSaveKeyboardShortcuts('URC' + SelectedBoilerPlateCreator);
		}, false);











        ////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //////
        ////// URO+ Preset filters
        //////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////

        //urcToConsole("Start adding URO preset filters to the comment tab");

        /*
        //URO+ new ur with no description
        var d = $('<div><a id="URONewNoDescription" class="URCommentsPresets" Title="Use URO+ to only show new requests without descriptions">URO+ New UR without descriptions</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URONewNoDescription").click(URComments.UROClearClicked('URONewNoDescription'));

        //URO+ new ur
        d = $('<div><a id="URCommentURONEW" class="URCommentsPresets" Title="Use URO+ to only show new requests or ones that have replies from the requestor">URO+ New requests / UR replies</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        $("#URCommentURONEW").click(URComments.UROClearClicked('UroShowNew'));

        //show no responses for reminders
        d = $('<div><a id="URCommentURO4DayFollowUp" class="URCommentsPresets" Title="Use URO+ to only show URs that need a reminders message sent to them">URO+ Reminder message</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentURO4DayFollowUp").click(URComments.UROClearClicked('URO4DayFollowUp'));

        //show no responses for 7 days needs closing
        d = $('<div><a id="URCommentURO7Day" class="URCommentsPresets" Title="Use URO+ to only show URs that are older than 7 days and need to be closed">URO+ 7 Day</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentURO7Day").click(URComments.UROClearClicked('URO7Day'));

        //show no responses for 8 days needs closing
        d = $('<div><a id="URCommentURO8Day" class="URCommentsPresets" Title="Use URO+ to only show URs that are older than 8 days and need to be closed">URO+ 8 Day</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentURO8Day").click(URComments.UROClearClicked('URO8Day'));

        //show no responses for 10 days needs closing
        d = $('<div><a id="URCommentURO10Day" class="URCommentsPresets" Title="Use URO+ to only show URs that are older than 10 days and need to be closed">URO+ 10 Day</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentURO10Day").click(URComments.UROClearClicked('URO10Day'));

        //show no responses for 24 Hour Notice now needs closing
        d = $('<div><a id="URCommentURO24Hr" class="URCommentsPresets" Title="URO+ 8 day 24 Hour Notice. the idea behind this one is that on day 7 you will send 24 hour notices and then 24 hours later come back with this preset to find the ones that need closing">24 Hour Notice expermintal</a></div>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentURO24Hr").click(URComments.UROClearClicked('URO24Hr'));
		*/
        //URO+ clear
        //var d = $('<div><a id="URCommentUROclearUROFiltrs" class="URCommentsPresets" Title="Clears all of the checks boxes in URO’s URs tab, except for Do not apply state/age filters to tagged URs and if you have Only My URs enabled in URComments">URO+ Clear UR Filters</a></div>');
        //$("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        //$("#URCommentUROclearUROFiltrs").click(URComments.UROClearClicked('UROclearUROFiltrs'));

        /*
        //the predefined presets only show comments that the current user has commented on
        d = $('<label Title="Use URO+ to only Show URs with comments from me"><input type="checkbox" id="URCommentUROOnlyMyUR" class="URCommentsCheckbox"> Only My URs</input></label><br>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentUROOnlyMyUR").click(URComments.OnlyMyUR);

        //the predefined presets only show comments that the current user has commented on
        d = $('<label Title="Use URO+ to hide tagged pins. This setting will not be saved."><input type="checkbox" id="URCommentUROHideTagged" class="URCommentsCheckbox"> Temporarily hide tagged pins</input></label><br><br>');
        $("#sidepanel-URComments-URO-Presets").append(d);
        //create the callback function
        $("#URCommentUROHideTagged").click(URComments.HideTagged("trash"));
		*/

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //////
        ////// Draw Options
        //////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////

        //Auto Set ur comment on new URs
        d = $('<label Title="' + URC_Text_tooltip[25] + '"><input type="checkbox" id="UrCommentAutoSetNewComment" class="URCommentsCheckbox"> ' + URC_Text[25] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentAutoSetNewComment").click(URComments.AutoSetNewComment);

        //Auto Set ur reminder on new URs
        d = $('<label Title="' + URC_Text_tooltip[26] + '"><input type="checkbox" id="UrCommentAutoSet4dayComment" class="URCommentsCheckbox"> ' + URC_Text[26] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentAutoSet4dayComment").click(URComments.UrCommentAutoSet4dayComment);

        //auto zoom in for new with no comments
        d = $('<label Title="' + URC_Text_tooltip[27] + '"><input type="checkbox" id="UrCommentNewZoomIn" class="URCommentsCheckbox"> ' + URC_Text[27] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentNewZoomIn").click(URComments.NewZoomIn);

        //auto center at current zoom for UR with comments
        d = $('<label Title="' + URC_Text_tooltip[28] + '"><input type="checkbox" id="UrCommentWithCommentRecenter" class="URCommentsCheckbox"> ' + URC_Text[28] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentWithCommentRecenter").click(URComments.WithCommentRecenter);

        //Auto Click open solved not Identified
        d = $('<label Title="' + URC_Text_tooltip[29] + '"><input type="checkbox" id="URCommentAutoClickURStatus" class="URCommentsCheckbox"> ' + URC_Text[29] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#URCommentAutoClickURStatus").click(URComments.AutoClickURStatus);

        //UrCommentSaveAfterComment
        d = $('<label Title="' + URC_Text_tooltip[30] + '"><input type="checkbox" id="UrCommentSaveAfterComment" class="URCommentsCheckbox"> ' + URC_Text[30] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentSaveAfterComment").click(URComments.SaveAfterComment);

        //auto close after sending comment replies
        d = $('<label Title="' + URC_Text_tooltip[31] + '"><input type="checkbox" id="UrCommentAutoCloseComment" class="URCommentsCheckbox"> ' + URC_Text[31] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentAutoCloseComment").click(URComments.AutoCloseComment);

        //auto reload map after sending comment replies
        //d = $('<label Title="' + URC_Text_tooltip[32] + '"><input type="checkbox" id="UrCommentAutoReloadAfterComment" class="URCommentsCheckbox"> ' + URC_Text[32] + '</input></label><br>');
        //$("#sidepanel-URComments-settings").append(d);
        //create the callback function
        //$("#UrCommentAutoReloadAfterComment").click(URComments.AutoReloadAfterComment);

        //zoom out map after sending comment replies
        d = $('<label Title="' + URC_Text_tooltip[33] + '"><input type="checkbox" id="UrCommentZoomOutAfterComment" class="URCommentsCheckbox"> ' + URC_Text[33] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentZoomOutAfterComment").click(URComments.ZoomOutAfterComment);

        //Auto switch to the URComments tab after page load
        d = $('<label Title="' + URC_Text_tooltip[34] + '"><input type="checkbox" id="UrCommentAutoSwitchToURCommentsTab" class="URCommentsCheckbox"> ' + URC_Text[34] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentAutoSwitchToURCommentsTab").click(URComments.AutoSwitchToURCommentsTab);

        //Double clicking the 7 day close comment will auto send the 7day close comment
        d = $('<label Title="' + URC_Text_tooltip[35] + '"><input type="checkbox" id="UrCommentDBLClk7DCAutoSend" class="URCommentsCheckbox"> ' + URC_Text[35] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentDBLClk7DCAutoSend").click(URComments.DBLClk7DCAutoSend);

        //Double clicking comments will auto send comments
        d = $('<label Title="' + URC_Text_tooltip[36] + '"><input type="checkbox" id="UrCommentDBLClkAll" class="URCommentsCheckbox"> ' + URC_Text[36] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        //create the callback function
        $("#UrCommentDBLClkAll").click(URComments.DBLClkAll);

        //go over  BoilerPlateCreatorsArray and generate the select
        d = '<font style="font-size: 12px;">' + URC_Text[37] + ' <select id="BoilerPlateCreators" style="font-size: 12px; margin-top: 5px;" title="' + URC_Text_tooltip[37] + '">';
        for (i = 0; i < BoilerPlateCreatorsArray.length; i = i + 1) {
            //urcToConsole("BoilerPlateCreatorsArray " + BoilerPlateCreatorsArray[i]);
            d = d + '<option style="font-size 12px;" value="' + BoilerPlateCreatorsArray[i] + '">' + BoilerPlateCreatorsArray[i] + '</option>';
        }
        d = d + "</select> </font><br><br>";
        $("#sidepanel-URComments-settings").append(d);
        //create call back for the select
        $("#BoilerPlateCreators").change(URComments.BoilerPlateCreatorsFunction);

        //UrCommentDisableURDoneBtn
        d = $('<label Title="' + URC_Text_tooltip[38] + '"><input type="checkbox" id="UrCommentDisableURDoneBtn" class="URCommentsCheckbox"> ' + URC_Text[38] + '</input></label><br>');
        //$("#sidepanel-URComments-list").append(d);
        $("#sidepanel-URComments-settings").append(d);
        $("#UrCommentDisableURDoneBtn").click(function() {
            $(localStorage.setItem('UrCommentDisableURDoneBtn', UrCommentDisableURDoneBtn.checked));
        });

        var avdd = localStorage.getItem('UrCommentDisableURDoneBtn');
        if (avdd === null) {
            avdd = true;
        }
        $("#UrCommentDisableURDoneBtn").prop('checked', eval(avdd));

        //URCommentURUnfollow
        d = $('<label Title="' + URC_Text_tooltip[39] + '"><input type="checkbox" id="URCommentURUnfollow" class="URCommentsCheckbox"> ' + URC_Text[39] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        $("#URCommentURUnfollow").click(function() {
            $(localStorage.setItem('URCommentURUnfollow', URCommentURUnfollow.checked));
        });

        var avdd = localStorage.getItem('URCommentURUnfollow');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentURUnfollow").prop('checked', eval(avdd));

        //when on screen auto send my own reminders
        d = $('<label Title="' + URC_Text_tooltip[40] + '"><input type="checkbox" id="URCommentsAutoSendMyReminders" class="URCommentsCheckbox"> ' + URC_Text[40] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        $("#URCommentsAutoSendMyReminders").click(function() {

            if (URCommentsAutoSendMyReminders.checked == true) {
                var r = confirm(URC_USER_PROMPT[11]); //"URComments This will send reminders at the reminder days setting. This only happens when they are in your visible area. NOTE: when using this feature you should not leave any UR open unless you had a question that needed an answer from the wazer as this script will send those reminders. "

                //this is where we reuse the r var this makes the nested ifs much more simple
                if (r === true) {
                    setTimeout(URComments.FilterURs('URCommentsAutoSendMyReminders'), 0);
                } else {
                    $("#URCommentsAutoSendMyReminders").prop('checked', false);

                }
            }
            $(localStorage.setItem('URCommentsAutoSendMyReminders', URCommentsAutoSendMyReminders.checked));
        });

        var avdd = localStorage.getItem('URCommentsAutoSendMyReminders');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsAutoSendMyReminders").prop('checked', eval(avdd));

        d = $('<label Title="' + URC_Text_tooltip[41] + '"><input type="checkbox" id="URCommentsReplaceTagWithEditorName" class="URCommentsCheckbox"> ' + URC_Text[41] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        $("#URCommentsReplaceTagWithEditorName").click(function() {
            $(localStorage.setItem('URCommentsReplaceTagWithEditorName', URCommentsReplaceTagWithEditorName.checked));
            setTimeout(URComments.FilterURs('URCommentsReplaceTagWithEditorName'), 0);
        });

        var avdd = localStorage.getItem('URCommentsReplaceTagWithEditorName');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsReplaceTagWithEditorName").prop('checked', eval(avdd));





		d = $('<label Title="' + URC_Text_tooltip[43] + '"><input type="checkbox" id="URCommentsDontShowTaggedText" class="URCommentsCheckbox"> ' + URC_Text[43] + '</input></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        $("#URCommentsDontShowTaggedText").click(function() {
            $(localStorage.setItem('URCommentsDontShowTaggedText', URCommentsDontShowTaggedText.checked));
            setTimeout(URComments.FilterURs(URCommentsDontShowTaggedText), 0);
        });

        var avdd = localStorage.getItem('URCommentsDontShowTaggedText');
        if (avdd === null) {
            avdd = false;
        }
        $("#URCommentsDontShowTaggedText").prop('checked', eval(avdd));

        d = $('<label Title="' + URC_Text_tooltip[44] + '"><br>' + URC_Text[44] + ' <textarea id="Signature" style="height: 130px; width: 270px;"></textarea></label><br>');
        $("#sidepanel-URComments-settings").append(d);
        
        //load Signature
        $('#Signature').val(localStorage.getItem('Signature'));
        
        //Signature saving
        $("#Signature").change(function() {
            $(localStorage.setItem('Signature', $('#Signature').val()));
            setTimeout(URComments.FilterURs('SignatureChange'), 0);
        });

        



















        //urcToConsole("Tab Complete");

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //////
        ////// Load and set saved options
        //////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////

        //URComments tab is loaded load options to last state
        //here we also check to see if the options have ever been set (new user) if not we enable them all on script load
        //enabling them will trigger a click of the option which will cause the option to be saved

        //OnlyMyUR have the predefined pre-sets only show comments that the current user has commented on
        if (localStorage.getItem('OnlyMyUR') == "yes") {
            $("#URCommentUROOnlyMyUR").trigger('click');
        }

        //auto set new urs comment
        if (localStorage.getItem('AutoSetNewComment') == "yes" || !localStorage.getItem('AutoSetNewComment')) {
            $("#UrCommentAutoSetNewComment").trigger('click');
        }

        //auto set 4day urs comment
        if (localStorage.getItem('UrCommentAutoSet4dayComment') == "yes" || !localStorage.getItem('UrCommentAutoSet4dayComment')) {
            $("#UrCommentAutoSet4dayComment").trigger('click');
        }

        //UrCommentAutoCloseComment
        if (localStorage.getItem('UrCommentAutoCloseComment') == "yes" || !localStorage.getItem('UrCommentAutoCloseComment')) {
            $("#UrCommentAutoCloseComment").trigger('click');
        }

        //AutoReloadAfterComment
        //if (localStorage.getItem('AutoReloadAfterComment') == "yes") {
        //    $("#UrCommentAutoReloadAfterComment").trigger('click');
        //}

        //NewZoomIn
        if (localStorage.getItem('NewZoomIn') == "yes" || !localStorage.getItem('NewZoomIn')) {
            $("#UrCommentNewZoomIn").trigger('click');
        }

        //auto recenter ur without comments
        if (localStorage.getItem('WithCommentRecenter') == "yes" || !localStorage.getItem('WithCommentRecenter')) {
            $("#UrCommentWithCommentRecenter").trigger('click');
        }

        // URComments load and set settings and check boxes
        if (localStorage.getItem('AutoClickURStatus') == "yes" || !localStorage.getItem('AutoClickURStatus')) {
            $("#URCommentAutoClickURStatus").trigger('click');
            if (localStorage.getItem('DBLClk7DCAutoSend') == "yes" || localStorage.getItem('DBLClkAll') == "yes") {
                $('#URCommentAutoClickURStatus').prop('checked', true);
                localStorage.setItem('AutoClickURStatus', 'yes');
            }
        }

        //UrCommentSaveAfterComment
        if (localStorage.getItem('SaveAfterComment') == "yes" || !localStorage.getItem('SaveAfterComment')) {
            $("#UrCommentSaveAfterComment").trigger('click');
        }

        //AutoZoomOutAfterComment
        if (localStorage.getItem('ZoomOutAfterComment') == "yes" || !localStorage.getItem('ZoomOutAfterComment')) {
            $("#UrCommentZoomOutAfterComment").trigger('click');
        }

        //AutoSwitchToURCommentsTab
        if (localStorage.getItem('AutoSwitchToURCommentsTab') == "yes" || !localStorage.getItem('AutoSwitchToURCommentsTab')) {
            $("#UrCommentAutoSwitchToURCommentsTab").trigger('click');
        }

        //UrCommentDBLClk7DCAutoSend
        if (localStorage.getItem('DBLClk7DCAutoSend') == "yes") {
            $("#UrCommentDBLClk7DCAutoSend").prop('checked', true);
            $("#AutoClickURStatus").prop('checked', true);
            localStorage.setItem('AutoClickURStatus', 'yes');
        }

        //UrCommentDBLClkAll
        if (localStorage.getItem('DBLClkAll') == "yes") {
            $("#UrCommentDBLClkAll").prop('checked', true);
            $("#AutoClickURStatus").prop('checked', true);
            localStorage.setItem('AutoClickURStatus', 'yes');
        }

        //set the users BoilerPlateCreators choice in the select
        var SelectedBoilerPlateCreator = localStorage.getItem('BoilerPlateCreators');
        $("#BoilerPlateCreators").val(SelectedBoilerPlateCreator);
        //end getting boilerplatecreators

        //check to see if the option to auto switch to the URComments tab is enabled
        //if (UrCommentAutoSwitchToURCommentsTab.checked) {
        //    //make UR Comments tab active
        //    $('#CommentsTab').trigger('click');
        //}

        if (URCommentUpdateMessage === "yes") {
            //alert the user in  URComment version updates
            if (localStorage.getItem('URCommentVersion') === URCommentVersion) {
                urcToConsole("Version - " + URCommentVersion);
            } else {
                alert(URCommentVersionUpdateNotes);
                localStorage.setItem('URCommentVersion', URCommentVersion);
            }
        }

        //set the background of the last used URO preset
        //URComments.UROPresetHighlight(localStorage.getItem('UROCurrentPeset'));

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //////
        ////// Launch background task(s)
        //////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////

        //start looking for opened UR's window
        setTimeout(URComments.LookForOpenedUR, 1000);

        //reset URO the hiding of tagged pin
        //setTimeout(URComments.HideTagged("startup"), 10000);

        setTimeout(URComments.URCLoadUpdateRequestsEvents, 0);

        //enable exp road $( ".toggler label span:contains('Roads experimental')" ).click();// turn on experimental roads layer
        //$(".toggler label span:contains('Me!')").click(); //auto enable wme me!
        //end of URCommentsinit
    };

    ///////////////////////////////////////////////////////////////////////////////////
    //////
    ////// Background task(s)
    //////
    ///////////////////////////////////////////////////////////////////////////////////

    //look for the UR window to be open
    URComments.LookForOpenedUR = function() {
        //urcToConsole("look for open UR window " + (new Date()).getTime());
        //check for an open UR and that the UR's text area is shown

		//test urc messages
		//var dateNow = new Date();
		//TrickRemove = dateNow.getTime();
		//URComments.ShowWMEMessage("test " + TrickRemove , 10000);

		//relaunch checking for open ur - moved this up here so the script would keep trying if I had an error
        setTimeout(URComments.LookForOpenedUR, 500); //line 892

        var urID = 0;

        urID = $(".update-requests .selected").data("id");

		/*
		768		807
		900		974
		1050	1156
		1080	941
		*/

/*
		//try to resize the ur window to the browser size
		if(urID > 0 && typeof urID !== 'undefined') {

			if(window.innerHeight <= 810){  			//*768
					$('.problem-edit .conversation.section .comment-list').css('max-height', '110px');


			} else { 									//default wme setting
					//$('.problem-edit .conversation.section .comment-list').css('max-height', '500px');
						$('.problem-edit .conversation.section .comment-list').css('max-height', window.innerHeight - 700 +'px');
				}
		}

			//comment area
			$('.problem-edit .conversation.section .comment-list').css('max-height', '100%');

		}
		*/

        if (urID > 0 && typeof urID !== 'undefined') {

            //new or same ur (re))open(ed) so now we can do stuff; this prevents this function to continuously applying settings to a ur
            if (UrCommentLasturID !== urID && $(".new-comment-text").length !== 0) {
                //urcToConsole("Found open UR - " + urID);

                //grab the current UR ID for next time
                UrCommentLasturID = urID;

                //url to open a UR
                //https://www.waze.com/editor/?zoom=5&lat=34.024522&lon=-118.297005&mapUpdateRequest=3710607&env=usa
                //https://www.waze.com/editor/?zoom=5&mapUpdateRequest=4271288&env=usa

                //auto expand ur comments list and text area (verify that this is not for the old WME)
                if ($('#edit-request .comment-view-shown').length === 0) {
                    setTimeout(function() {
                        $('#edit-request .toggle-comment-view').trigger('click');
                    }, 0);
                }

                //beta editor auto expand ur comments list and text area
                if ($("#panel-container .problem-edit .conversation").length !== 0) {
                    $("#panel-container .problem-edit .conversation").removeClass('collapsed'); //beta editor auto expand UR Comment box
                }

                //beta editor auto expand ur comments more info
                if ($("#panel-container .problem-edit .more-info").length !== 0) {
                    $("#panel-container .problem-edit .more-info").removeClass('collapsed'); //beta editor auto expand UR Comment box
                }

                /*
				//disable the stupid new done button
                if ($("#panel-container .content .done").length > 0 && UrCommentDisableURDoneBtn.checked === true) {
                    $("#panel-container .content .done").attr('disabled', true);
                    $("#panel-container .content .done").html('(Done) Disabled by URComments');
                }

				//is the done/next disabled box checked
				if(UrCommentDisableURDoneBtn.checked === true) {
					if ($("#panel-container .content .next").length > 0) {
						//disable the stupid new next button
						$("#panel-container .content .next").attr('disabled', true);
						$("#panel-container .content .next").html('(Next) Disabled by URComments');
					} else if ($("#panel-container .content .done").length > 0) {
						//disable the stupid new done button
						$("#panel-container .content .done").attr('disabled', true);
						$("#panel-container .content .done").html('(Done) Disabled by URComments');
					}

				}*/


				//disable the stupid buttons at the bottom of the UR window done / next
				if ($("#panel-container .content .navigation .btn-block").length > 0 && UrCommentDisableURDoneBtn.checked === true) {
                    $("#panel-container .content .navigation .btn-block").attr('disabled', true);
                    $("#panel-container .content .navigation .btn-block").html('Disabled by URComments');
				}

                //complaints about editors not reading the description so I am moving the description up a div
                var desc = $(".body .description").html();
                if (desc != undefined) {
                    //move the description up a div
                    $(".problem-edit .header").after('<div class="description section">' + desc + '</div>');
                    $(".problem-edit .body .description").remove();
                }

                //jump to bottom
                //$('.problem-edit .comment-list').scrollTop($('.conversation-view .comment-list')[0].scrollHeight);
               // $('.problem-edit .problem-data').scrollTop($('.conversation-view .comment-list')[0].scrollHeight);
				$('.top-section').scrollTop($('.top-section')[0].scrollHeight);


				//attach an even listener to the UR center button to take us to the UR
				$('#panel-container > div > div > div.header > a.focus > i').click(URComments.CrossHairsClicked(urID, 5));







				//auto fill  in comment
                //check what type of message to insert into the ur
                reporter_comment = W.model.updateRequestSessions.objects[urID].comments;
                i = reporter_comment.length;

                //urcToConsole("LookForOpenedUR number of comments: " + i);

                //if number of comment is zero assume this is a new ur
                if (i === 0) {
                    //initial, zero comments

                    //urcToConsole("LookForOpenedUR no comments");

                    if (UrCommentAutoSetNewComment.checked === true) {
                        //urcToConsole("LookForOpenedUR no comments2");
                        //this will be on of the types of UR that a user can choose from when submitting a UR

                        var urType = W.model.mapUpdateRequests.objects[urID].attributes.type;

                        //urcToConsole("LookForOpenedUR Found open UR - " + urID + " " + def_names[urType]);

                        //loop trough the comment array for a comment that matches the request type.
                        for (var ii = 0; ii < URCommentsArray.length; ii = ii + 3) {
                            if (URCommentsArray[ii].toLowerCase() === def_names[urType].toLowerCase()) {
                                urcToConsole("LookForOpenedUR Matched Comment: " + def_names[urType]);
                                setTimeout(URComments.AutoZoomIN(URCommentsArray[ii], URCommentsArray[ii + 1], URCommentsArray[ii + 2], urID), 0);
                            }
                        }
                    }

                } else {
                    //4DAY OR 7DAY section

                    LastCommentorUserID = reporter_comment[reporter_comment.length - 1].userID;
                    //urcToConsole("LookForOpenedUR LastCommentorUserID: " + LastCommentorUserID);

                    //uro days old
                    var commentDaysOld = URComments.uroGetCommentAge(W.model.updateRequestSessions.objects[urID].comments[i - 1]);
                    //urcToConsole("LookForOpenedUR Days old: " + commentDaysOld);

                    //if (i === 1 && commentDaysOld >= 4 && LastCommentorUserID > 1 && UrCommentAutoSet4dayComment.checked === true) {
                    var ReminderDays = $('#ReminderDays').val();
                    //urcToConsole("LookForOpenedUR ReminderDays: " + ReminderDays);

                    if (i === 1 && ReminderDays > 0 && commentDaysOld >= ReminderDays && LastCommentorUserID > 1 && UrCommentAutoSet4dayComment.checked === true) {
                        //4day - 1 comment, last comment less than 4 days, last comment is not from reporter
                        urcToConsole("LookForOpenedUR 4day");

                        //4 day ur 1 comment
                        setTimeout(URComments.AutoZoomIN(URCommentsArray[ReminderPosistion], URCommentsArray[ReminderPosistion + 1], URCommentsArray[ReminderPosistion + 2], urID), 0);
                    }
                    //don't allow auto filling of the close message because it clicks the not identified option and causes trouble when the Ur window is shut/closed the next save will mark it as not identified, without a comment.

                }

                var WazeCurrentZoom = "";
                WazeCurrentZoom = URComments.GetWazeMapZoomLevel();

				//urcToConsole("zoomD " + WazeCurrentZoom + " " + UrCommentNewZoomIn.checked);

                if (i === 0 && UrCommentNewZoomIn.checked === true) {
                    //zoom in new
                    //predefined zoom threshold for auto zoom
                    var zoom = 4;

                    //do not zoom back out if we are already zoomed in and just happen to be re-clicking on a UR.
                    if (WazeCurrentZoom < zoom) {
						//urcToConsole("zoom in 1");
                        URComments.gotoURById(urID, 5);
                    }
                } else if (UrCommentWithCommentRecenter.checked === true) {
                    //re-center on urs that are not zoom in
                    if (WazeCurrentZoom < 3) {
                        //alert(WazeCurrentZoom);
						//urcToConsole("Auto center 1");
                        URComments.gotoURById(urID, WazeCurrentZoom);
                    }

                }

                //auto switch to ur comments tab
                if (UrCommentAutoSwitchToURCommentsTab.checked) {
                    //grab the active tab
                    PreviousTab = $("#user-tabs > ul > li.active > a");
					//grab the active tabs scroll posistion
					PreviousTabPosistion = $('#sidebar').scrollTop();
					$('#sidebar').scrollTop( 0 ); //set scoll pos


                    //make UR Comments tab active
                    $('#CommentsTab').trigger('click');
                }
            }


        } else {
            //reset the id if a ur is not open so we can set the tab for the same ur
            UrCommentLasturID = "";
            urID = "";
            //switch tab back
            if (UrCommentAutoSwitchToURCommentsTab.checked) {
                //verify that we had found a tab
                if (PreviousTab !== null) {
                    //click back on the previous tab
                    $(PreviousTab).trigger('click');
					$('#sidebar').scrollTop( PreviousTabPosistion ); //set scoll pos
                    //clear out the previous tab holder
                    PreviousTab = null;
					PreviousTabPosistion = null;
                }
            }
            //urcToConsole("LookForOpenedUR Looking for ur...");
        }

    };

    ////////////////////////////////////////////////////////////////////////////
    //////
    ////// Save Options on click
    //////
    ////////////////////////////////////////////////////////////////////////////

    //use uro to only show urs that I have commented on
    URComments.OnlyMyUR = function() {

        //try to save the state of the check box
        if (URCommentUROOnlyMyUR.checked) {
            localStorage.setItem('OnlyMyUR', 'yes');
        } else {
            localStorage.setItem('OnlyMyUR', 'no');
        }

        //only show my ur 'OnlyMyUR'
        if (URCommentUROOnlyMyUR.checked && !_cbHideAnyComments.checked) {
            $("#_cbHideAnyComments").trigger('click');

        } else if (!URCommentUROOnlyMyUR.checked && _cbHideAnyComments.checked) {
            $("#_cbHideAnyComments").trigger('click');
        }

    };
    /*
        //URCommentUROHideTagged
        //use uro to Hide Tagged pins
        URComments.HideTagged = function(when) {
            return function() {
                //urcToConsole("URCommentUROHideTagged");
                URComments.TaggedPinsAray = [
                    "_cbFilterRoadworks",	//
                    "_cbFilterConstruction",//
                    "_cbFilterClosure",		//
                    "_cbFilterEvent",		//
                    "_cbFilterNote"		//
                ];

                //go over the array and clear all of the URO+ check boxes
                for (var URComments_URO_Index = 0; URComments_URO_Index < URComments.TaggedPinsAray.length; URComments_URO_Index = URComments_URO_Index + 1) {
                    if(when==="startup") {
                        if ($('#' + URComments.TaggedPinsAray[URComments_URO_Index]).is(":checked")) {
                            $('#URCommentUROHideTagged').prop('checked', true);
                        }


                    } else {
                        //urcToConsole("URCommentUROHideTagged " + URComments.TaggedPinsAray[URComments_URO_Index]);

                        if ($('#' + URComments.TaggedPinsAray[URComments_URO_Index]).length <= 0) {
                            alert("there was an error finding URO's hide tagged pins setting please verify these settings are in the correct state");
                            return false;
                        }


                        if (URCommentUROHideTagged.checked && !$('#' + URComments.TaggedPinsAray[URComments_URO_Index]).is(":checked")) {
                            $('#' + URComments.TaggedPinsAray[URComments_URO_Index]).trigger('click');
                        } else if (!URCommentUROHideTagged.checked && $('#' + URComments.TaggedPinsAray[URComments_URO_Index]).is(":checked")) {
                            $('#' + URComments.TaggedPinsAray[URComments_URO_Index]).trigger('click');
                        }
                    }
                }
            };
        };
    */

    URComments.AutoClickURStatus = function() {
        //try to save the state of the check box
        if (URCommentAutoClickURStatus.checked) {
            localStorage.setItem('AutoClickURStatus', 'yes');
            //alert("yes");
        } else {
            localStorage.setItem('AutoClickURStatus', 'no');
            //alert("no");
            //turn off save after send
            if (!URCommentAutoClickURStatus.checked && UrCommentSaveAfterComment.checked) {
                $('#UrCommentSaveAfterComment').prop('checked', false);
                localStorage.setItem('SaveAfterComment', 'no');
            }

            if (UrCommentDBLClk7DCAutoSend.checked == true || UrCommentDBLClkAll.checked == true) {
                $('#URCommentAutoClickURStatus').prop('checked', true);
                alert(URC_USER_PROMPT[4]); //"URComments to use the double click links you must have the autoset UR status option enabled"
                localStorage.setItem('AutoClickURStatus', 'yes');
            }
        }
    };

    URComments.SaveAfterComment = function() {
        //try to save the state of the check box
        if (UrCommentSaveAfterComment.checked) {
            localStorage.setItem('SaveAfterComment', 'yes');
            //alert("yes");
        } else {
            localStorage.setItem('SaveAfterComment', 'no');
            //alert("no");
        }
        //when save if on turn on auto click status
        if (UrCommentSaveAfterComment.checked && !URCommentAutoClickURStatus.checked) {
            $('#URCommentAutoClickURStatus').prop('checked', true);
            localStorage.setItem('AutoClickURStatus', 'yes');
        }
    };

    URComments.AutoCloseComment = function() {
        //try to save the state of the check box
        if (UrCommentAutoCloseComment.checked) {
            localStorage.setItem('UrCommentAutoCloseComment', 'yes');
            //alert("yes");
        } else {
            localStorage.setItem('UrCommentAutoCloseComment', 'no');
            //alert("no");
        }
        //alert ( localStorage.getItem('UrCommentAutoCloseComment') );
    };

    // UrCommentAutoReloadAfterComment
    //URComments.AutoReloadAfterComment = function() {
        // UrCommentAutoReloadAfterComment
        //try to save the state of the check box
    //    if (UrCommentAutoReloadAfterComment.checked) {
    //        localStorage.setItem('AutoReloadAfterComment', 'yes');
            //alert("yes");
     //   } else {
     //       localStorage.setItem('AutoReloadAfterComment', 'no');
            //alert("no");
      //  }
    //};

    URComments.ZoomOutAfterComment = function() {
        if (UrCommentZoomOutAfterComment.checked) {
            localStorage.setItem('ZoomOutAfterComment', 'yes');
            //alert("yes");
        } else {
            localStorage.setItem('ZoomOutAfterComment', 'no');
            //alert("no");
        }
    };

    URComments.AutoSetNewComment = function() {
        //add reply instructions to replies
        //try to save the state of the check box
        if (UrCommentAutoSetNewComment.checked) {
            localStorage.setItem('AutoSetNewComment', 'yes');
            //alert(" AutoSetNewComment yes");
        } else {
            localStorage.setItem('AutoSetNewComment', 'no');
            //alert("AutoSetNewComment no");
        }
    };

    URComments.UrCommentAutoSet4dayComment = function() {
        //add reply instructions to replies
        //try to save the state of the check box
        if (UrCommentAutoSet4dayComment.checked) {
            localStorage.setItem('UrCommentAutoSet4dayComment', 'yes');
            //alert(" UrCommentAutoSet4dayComment yes");
        } else {
            localStorage.setItem('UrCommentAutoSet4dayComment', 'no');
            //alert("UrCommentAutoSet4dayComment no");
        }
    };

    URComments.NewZoomIn = function() {
        //add reply instructions to replies
        //try to save the state of the check box
        if (UrCommentNewZoomIn.checked) {
            localStorage.setItem('NewZoomIn', 'yes');
            //alert(" NewZoomIn yes");
        } else {
            localStorage.setItem('NewZoomIn', 'no');
            //alert("NewZoomIn no");
        }

    };

    URComments.WithCommentRecenter = function() {
        //add reply instructions to replies
        //try to save the state of the check box
        if (UrCommentWithCommentRecenter.checked) {
            localStorage.setItem('WithCommentRecenter', 'yes');
            //alert(" WithCommentRecenter yes");
        } else {
            localStorage.setItem('WithCommentRecenter', 'no');
            //alert("WithCommentRecenter no");
        }

    };

    URComments.AutoSwitchToURCommentsTab = function() {
        // AutoSwitchToURCommentsTab
        //try to save the state of the check box
        if (UrCommentAutoSwitchToURCommentsTab.checked) {
            localStorage.setItem('AutoSwitchToURCommentsTab', 'yes');
            //alert("yes");
        } else {
            localStorage.setItem('AutoSwitchToURCommentsTab', 'no');
            //alert("no");
        }
    };

    //UrCommentDBLClk7DCAutoSend
    URComments.DBLClk7DCAutoSend = function() {
        if (UrCommentDBLClk7DCAutoSend.checked) {
            //save the selection
            localStorage.setItem('DBLClk7DCAutoSend', 'yes');

            $('#URCommentAutoClickURStatus').prop('checked', true);
            localStorage.setItem('AutoClickURStatus', 'yes');

        } else {
            localStorage.setItem('DBLClk7DCAutoSend', 'no');
        }

        //clear the html from the tabs
        $("#sidepanel-Comments").html('');
        //reload the content
        ChangeLanguage = true;

        //setTimeout(URComments_bootstrap, 20);
        URComments_bootstrap();

    };

    //UrCommentDBLClkAll
    URComments.DBLClkAll = function() {
        if (UrCommentDBLClkAll.checked) {
            localStorage.setItem('DBLClkAll', 'yes');

            $('#URCommentAutoClickURStatus').prop('checked', true);
            localStorage.setItem('AutoClickURStatus', 'yes');
        } else {
            localStorage.setItem('DBLClkAll', 'no');
        }

        //clear the html from the tabs
        $("#sidepanel-Comments").html('');
        //reload the content
        ChangeLanguage = true;

        //setTimeout(URComments_bootstrap, 20);
        URComments_bootstrap();
    };

    ///////////////////////////////////////////////////////////////////////
    //////
    //////  UR Comment functions
    //////
    ///////////////////////////////////////////////////////////////////////

    URComments.escapeHtml = function(a) {
        a = a.replace(/&/g, "&amp;");
        a = a.replace(/</g, "&lt;");
        a = a.replace(/>/g, "&gt;");
        a = a.replace(/"/g, "&quot;");
        a = a.replace(/'/g, "&#039;");
        return a;
    };

    //$( "#update-request-panel .solution p").html()
    URComments.StringSwap = function(a) {

        if ($("#update-request-panel .solution p").length > 0) {
            a = a.replace("$URD", $("#update-request-panel .solution p").html());
            //remove stupid waze spaces
            //a = $(".new-comment-text").val()
            a = a.replace(/          /g, "");
            a = a.replace(/        /g, "");
            a = a.replace(/(\r\n|\n)/gm, "");
        } else if ($(".description .content").length > 0) {
            a = a.replace("$URD", $(".description .content").html());
            a = a.replace(/          /g, "");
            a = a.replace(/        /g, "");
            a = a.replace(/(\r\n|\n)/gm, "");
			a = a.replace("$USERNAME", W.model.loginManager.user.userName);
        } else if (a.indexOf("$URD") >= 0) {
            //a = "";
			a = a.replace(" \"$URD\"", "");
        }

        //selected segments
		var streetName = "";
		//console.log("urc string swap");
        if (W.selectionManager.getSelectedFeatures().length >= 1 && W.selectionManager.getSelectedFeatures().length <= 2) {
            for (var i = 0; i < W.selectionManager.getSelectedFeatures().length; i++) {
                if (W.selectionManager.getSelectedFeatures()[i].model.CLASS_NAME == "W.Feature.Vector.Segment") {
                    var primaryStreetID = W.selectionManager.getSelectedFeatures()[i].model.attributes.primaryStreetID;
                    if (i == 0) {
                        streetName = W.model.streets.objects[primaryStreetID].name;
                    } else {
                        streetName = "the intersection of " + streetName + " and " + W.model.streets.objects[primaryStreetID].name;
                    }
                }
            }
            //console.log(streetName);
            a = a.replace("$SELSEGS", streetName);
        }
		
        return a;
    };

    //gets the total number of comments on a ur
    TotalNumberOfComments = function(urID) {
        //urcToConsole("reporterComments");
        return ($(wazeModel.updateRequestSessions.objects[urID].comments).length);
    };

    //sorry URO if i was going to use you to sort Urs i needed to use the same dates you do! Thanks! ;)
    URComments.uroGetCommentAge = function(commentObj) {
        if (commentObj.createdOn === null) return -1;
        return URComments.uroDateToDays(commentObj.createdOn);
    };

    URComments.uroDateToDays = function(dateToConvert) {
        var dateNow = new Date();
        var elapsedSinceEpoch = dateNow.getTime();
        var elapsedSinceEvent = elapsedSinceEpoch - dateToConvert;
        dateNow.setHours(0);
        dateNow.setMinutes(0);
        dateNow.setSeconds(0);
        dateNow.setMilliseconds(0);
        var elapsedSinceMidnight = elapsedSinceEpoch - dateNow.getTime();
        if (elapsedSinceEvent < elapsedSinceMidnight) {
            // event occurred today...
            return 0;
        } else {
            // event occurred at some point prior to midnight this morning, so return a minimum value of 1...
            return 1 + Math.floor((elapsedSinceEvent - elapsedSinceMidnight) / 86400000);
        }
    };

    URComments.onScreen = function(obj) {

        //geometry was removed from W.model.mapUpdateRequests.objects[id]
        //but can be found in W.model.mapUpdateRequests.objects[id].geometry

        if (obj.geometry) {
            return (W.map.getExtent().intersectsBounds(obj.geometry.getBounds()));
        }
        return false;
    };

    URComments.URCLoadUpdateRequestsEvents = function() {
        /*
				W.model.mapUpdateRequests.events.register("objectschanged", null, uroFilterURs_onObjectsChanged);
         W.model.mapUpdateRequests.events.register("objectsadded", null, uroFilterURs_onObjectsAdded);
         W.model.mapUpdateRequests.events.register("objectsremoved", null, uroFilterURs_onObjectsRemoved);

         W.model.updateRequestSessions.events.register("objectschanged", null, uroUREvent_onObjectsChanged);
         W.model.updateRequestSessions.events.register("objectsadded", null, uroUREvent_onObjectsAdded);
         W.model.updateRequestSessions.events.register("objectsremoved", null, uroUREvent_onObjectsRemoved);
				*/

        window.HideUR = "stopped";
        //W.model.mapUpdateRequests.events.register("objectschanged", null, URComments.urcUREvent_onObjectsAdded('mapUpdateRequests objectschanged')); //needed
		//W.model.updateRequestSessions.events.register("objectsadded", null, URComments.urcUREvent_onObjectsAdded('updateRequestSessions objectsadded'));

		//from Cardyin 5/26/2016
        W.model.mapUpdateRequests.on("objectschanged", URComments.urcUREvent_onObjectsAdded('mapUpdateRequests objectschanged')); //needed
        W.model.updateRequestSessions.on("objectsadded", URComments.urcUREvent_onObjectsAdded('updateRequestSessions objectsadded')); //needed













        //W.model.updateRequestSessions.events.register("objectschanged", null, URComments.urcUREvent_onObjectsAdded('updateRequestSessions objectschanged')); // this launches every time a UR is opened
         //needed


        W.map.events.register("moveend", null, URComments.urcUREvent_onObjectsAdded('moveend')); //needed
        W.map.events.register("zoomend", null, URComments.urcUREvent_onObjectsAdded('zoomend')); //needed
        //W.map.events.register("mouseup", null,  URComments.urcUREvent_onObjectsAdded('mouseup'));

        //urcToConsole("UR events added");

        //setTimeout(URComments.urcUREvent_onObjectsAdded('pageload'), 1000);
        setTimeout(URComments.urcUREvent_onObjectsAdded('pageload'), 50);
    };


    URComments.urcUREvent_onObjectsAdded = function(a) {
        return function() {

            //check if filtering or the pill count are enabled other wise abort this function
            //URCommentsFilterEnabled URCommentsPillEnabled
            if (URCommentsFilterEnabled.checked === false && URCommentsPillEnabled.checked === false && URCommentsAutoSendMyReminders.checked === false) {
                //urcToConsole(URC_USER_PROMPT[5]); //"aborting FilterURs2 becasue both filtering, counts, and auto reminders are disabled"
                return;
            }

            //urcToConsole("urcUREvent_onObjectsAdded " + a + " " + window.HideUR);

            if (a == "timedout" && window.HideUR == "running") { //|| a === "list is empty retry"){
                window.HideUR = "stopped";
                a = "timedout";
                URComments.ShowWMEMessage(URC_USER_PROMPT[6], 5000); //"URComments: Loading UR data has timed out, retrying."
            }

            if (window.HideUR === "stopped" && a !== "timedout") {
                clearTimeout(window.buffertedtimeout);
                clearTimeout(window.buffertedtimeout2);

                //urcToConsole("set time-out to filter UR and time-out check " + a + " " + window.HideUR);

                //certain events need to be launched a bit later then others
                if (a == "moveend" || a == "zoomend") {
                    window.buffertedtimeout = setTimeout(URComments.FilterURs(a), 2000);
                } else {
                    window.buffertedtimeout = setTimeout(URComments.FilterURs(a), 500);
                }

                window.HideUR = "running";
                window.BufferFillterURCommand = false;
                window.buffertedtimeout2 = setTimeout(URComments.urcUREvent_onObjectsAdded("timedout"), 30000);
            } else {
                //urcToConsole("aborted: " + a + " " + window.HideUR);
            }

        };
    };

    URComments.FilterURs = function(a, b) {
        return function() {

            //urcToConsole("Start Filtering URs - " + a);
            for (var i = 0; i < W.map.layers.length; i++) {
                if (W.map.layers[i].uniqueName == 'update_requests') window.uroURLayerIdx = i;
                //if(W.map.layers[i].uniqueName == 'problems') uroProblemLayerIdx = i;
                //if(W.map.layers[i].name == 'Spotlight') uroMaskLayer = i;
                //if(W.map.layers[i].uniqueName == 'speed_cameras') uroCamLayer = i;
                //if(W.map.layers[i].name.indexOf('W.Control.SelectHighlightFeature') !== -1) uroRootContainer = W.map.layers[i].div.id;
                //if(W.map.layers[i].uniqueName == 'area_managers') uroAMLayerIdx = i;
                //if(W.map.layers[i].uniqueName == 'landmarks') uroPlacesRoot = W.map.layers[i].id + '_vroot';
                //if(W.map.layers[i].name == 'Node Connections') uroTurnsLayerIdx = i;
            }

            var CloseDays = $('#CloseDays').val();
            //check that all visible urs are loaded
            var idList = [];
            var allID = "";
            var PushNeededCount = 0;

            for (var urID in W.model.mapUpdateRequests.objects) {

                if (W.model.updateRequestSessions.objects[urID] == null) {
                    idList.push(urID);
                    PushNeededCount = PushNeededCount + 1;
                }

                if (PushNeededCount > 500) {
                    //urcToConsole('trash grabbing updateRequestSessions with IDs ' + idList);
                    W.model.updateRequestSessions.get(idList);
                    idList = [];
                    PushNeededCount = 0;
                    //urcToConsole('over 1k ur');
                }
            }

            if (idList.length > 0) {
                //urcToConsole('trash grabbing updateRequestSessions with IDs ' + idList);
                W.model.updateRequestSessions.get(idList);
            }

            //abort filtering URs if the list is empty
            if (Object.keys(W.model.updateRequestSessions.objects).length === 0) {
                window.HideUR = "stopped";
                //urcToConsole("no Ur in active sessions");
                setTimeout(URComments.urcUREvent_onObjectsAdded("list is empty retry"), 5000);
                return;
            }

            var urdescription = "";
            var EditorID = W.model.loginManager.user.id; //editor's id number
            var ReminderReload = false;
            var TotalVisibleURCount = 0;
            var CountOfIdInList = 0;
            var DelayTimeoutCountOfIdInList = 0;

            for (var id1 in W.model.mapUpdateRequests.objects) {
                TotalVisibleURCount = TotalVisibleURCount + 1;
                if (URComments.onScreen(W.model.mapUpdateRequests.objects[id1])) {
                    allID = allID + id1 + ",";
                    CountOfIdInList = CountOfIdInList + 1;
                }

                if (CountOfIdInList >= 500) {
                    //urcToConsole("reached 500 UR requesting list: " + DelayTimeoutCountOfIdInList);
                    //play with putting a timeout between each group requested
                    setTimeout(URComments.FilterURs2(a, allID, TotalVisibleURCount), DelayTimeoutCountOfIdInList);

                    CountOfIdInList = 0;
                    allID = "";
                    DelayTimeoutCountOfIdInList = DelayTimeoutCountOfIdInList + 1000;
                }
            }

            //urcToConsole("reached end of UR list requesting list: " + DelayTimeoutCountOfIdInList);
            $("#URCount").html(URC_Text[4] + TotalVisibleURCount);
            setTimeout(URComments.FilterURs2(a, allID, TotalVisibleURCount), 0);
        };
    };


    URComments.FilterURs2 = function(a, allID, TotalVisibleURCount) {
        return function() {
            urcToConsole("FilterURs2 TotalVisibleURCount: " + TotalVisibleURCount);

            var CloseDays = ($('#CloseDays').val() * 1);
            var ReminderDays = ($('#ReminderDays').val() * 1);
            var ClosePlussReminderDays = CloseDays + ReminderDays;
            var urdescription = "";
            var EditorID = W.model.loginManager.user.id; //editor's id number
            var ReminderReload = false;
            var LoggedInEditor = W.model.loginManager.user.userName;
            var openingUR;
            //r = require("Waze/Feature/Vector/ProblemResolution");

            if (allID !== "") {
                //this is the link that works but I think it is grabbing a cached version of the page var urSessionURL = 'https://www.waze.com/2tes-live/app/MapProblems/UpdateRequests?ids=' + allID;

                //https://www.waze.com/Descartes-live/app/MapProblems/UpdateRequests?ids=4284449
				var urSessionURL = 'https://' + window.location.host + W.Config.api_base + '/MapProblems/UpdateRequests?ids=' + allID + "&time=" + (new Date()).getTime();

                urcToConsole("urSessionURL: " + a + " " + urSessionURL);

                // https://www.waze.com/Descartes-live/app/MapProblems/UpdateRequests?ids=3678676
                var LastCommentorUserID = "0";

                //urcToConsole("trash36");
                $.ajax({
                    dataType: "json",
                    //dataType: 'jsonp',
                    url: urSessionURL,

                    success: function(json) {
                        try {

                            for (jsnObj = 0; jsnObj < $(json.updateRequestSessions.objects).length; jsnObj++) {
                                var urDetail = json.updateRequestSessions.objects[jsnObj];
                                var id = urDetail.id;
                                var skip = false;
                                var urStyle = 'shown';
                                var i = 0;
                                var Marked = "";
                                var UrcURType = "";
                                var urdescription = W.model.mapUpdateRequests.objects[id].attributes.description;

                               // if (urDetail.comments.length === 0) {
									//type 14 is a UR
                                    var InitialurType = W.model.mapUpdateRequests.objects[id].attributes.type;
                                //}

								urcToConsole("InitialurType: " + InitialurType + " " + id);

                                var NumberOfComments = urDetail.comments.length;
                                var CountsBGColor = "#FFFF99"; //light yellow

                                if (NumberOfComments > 0) {
                                    var reporterResponse = false;
                                    var lastCommentDateTime = 0;
                                    var LastComment = "";

                                    for (i = 0; i < urDetail.comments.length; i++) {
                                        if (urDetail.comments[i].userID == -1) {
                                            reporterResponse = true;
                                        }
                                        lastCommentDateTime = urDetail.comments[i].createdOn;
                                        LastCommentorUserID = urDetail.comments[i].userID;
                                        LastComment = urDetail.comments[i].text;
                                        //only white if logged in editor has the last editor comment
                                        if (LastCommentorUserID > 1) {
                                            if (LastCommentorUserID === EditorID) {
                                                CountsBGColor = "white";
                                            } else {
                                                CountsBGColor = "#FFFF99"; //light yellow
                                            }
                                        }
//NOTE, ROADWORKS, CONSTRUCTION, CLOSURE, EVENT,

                                        var Commenttext = urDetail.comments[i].text;
                                        //urcToConsole(Commenttext + " " + id);
                                        if (Commenttext.indexOf("NOTE]") >= 0 || Commenttext.indexOf("ROADWORKS]") >= 0 || Commenttext.indexOf("CONSTRUCTION]") >= 0 || Commenttext.indexOf("CLOSURE]") >= 0 || Commenttext.indexOf("EVENT]") >= 0 || Commenttext.indexOf(LoggedInEditor) >= 0) {
                                            //urcToConsole("skipped1 URO+ tagged in comments urid: " + id + "with comment text " + Commenttext);
                                            skip = true;
                                        }

                                        if (Commenttext.indexOf(LoggedInEditor) >= 0 && URCommentsReplaceTagWithEditorName.checked === true) {
                                            Marked = LoggedInEditor;
                                        } else if (Commenttext.indexOf("NOTE]") >= 0) {
                                            Marked = "Note";
                                        } else if (Commenttext.indexOf("ROADWORKS]") >= 0) {
                                            Marked = "Roadworks";
                                        } else if (Commenttext.indexOf("CONSTRUCTION]") >= 0) {
                                            Marked = "Construction";
                                        } else if (Commenttext.indexOf("CLOSURE]") >= 0) {
                                            Marked = "Closure";
                                        } else if (Commenttext.indexOf("EVENT]") >= 0) {
                                            Marked = "Event";
                                        }

										if(URCommentsDontShowTaggedText.checked === true && Marked !== ""){
											Marked = "DontShowTaggedText";
										}


                                        //urcToConsole("Marked " + Marked);

                                    }

                                    //if (LastCommentorUserID === EditorID) {
                                    //	CountsBGColor = "white";
                                    //}

                                    //urcToConsole("LastComment: " + LastComment + " " + id);
                                }

                                var lastCommentAge = URComments.uroDateToDays(lastCommentDateTime);
                                //urcToConsole('Responder: reporter response for ' + id + ' = ' + reporterResponse + ', last comment on ' + lastCommentDateTime + ', comment age in days = ' + lastCommentAge + ' number of comments = ' + i);

                                //urdescription = W.model.mapUpdateRequests.objects[id].attributes.description;
                                //urcToConsole("urdescription: " + urdescription + " " + id);

                                if (urdescription) {
                                    //urcToConsole("urdescription present: " + urdescription + " " + id);
                                    //skip tagged URs
                                    if (urdescription.indexOf("NOTE]") >= 0 || urdescription.indexOf("ROADWORKS]") >= 0 || urdescription.indexOf("CONSTRUCTION]") >= 0 || urdescription.indexOf("CLOSURE]") >= 0 || urdescription.indexOf("EVENT]") >= 0 || urdescription.indexOf(LoggedInEditor) >= 0) {
                                        //urcToConsole("skipped2 URO+ tagged in description urid: " + id + "with comment text " + urdescription);
                                        skip = true;
                                    }

                                    if (urdescription.indexOf(LoggedInEditor) >= 0 && URCommentsReplaceTagWithEditorName.checked === true) {
                                        Marked = LoggedInEditor;
									} else if (urdescription.indexOf("NOTE]") >= 0) {
                                        Marked = "Note";
                                    } else if (urdescription.indexOf("ROADWORKS]") >= 0) {
                                        Marked = "Roadworks";
                                    } else if (urdescription.indexOf("CONSTRUCTION]") >= 0) {
                                        Marked = "Construction";
                                    } else if (urdescription.indexOf("CLOSURE]") >= 0) {
                                        Marked = "Closure";
                                    } else if (urdescription.indexOf("EVENT]") >= 0) {
                                        Marked = "Event";
                                    } else if (urdescription.indexOf("WSLM]") >= 0) {
                                        Marked = "WSLM";
                                    }


									if(URCommentsDontShowTaggedText.checked === true && Marked !== ""){
										Marked = "DontShowTaggedText";
									}

                                    if (URCommentsHideWithDescript.checked == true && NumberOfComments <= 0) {
                                        UrcURType = UrcURType + " WithDescription";
                                        //urcToConsole("UrcURType WithDescription: " + id);
                                    }
                                    //urcToConsole("skipped2 tagged in description urid: " + id + "with comment text " + Commenttext);
                                } else {
                                    if (URCommentsHideWithoutDescript.checked == true && NumberOfComments <= 0) {
                                        UrcURType = UrcURType + " WithoutDescription";
                                        //urcToConsole("UrcURType WithoutDescription: " + id);
                                    }
                                }

                                if (W.model.mapUpdateRequests.objects[id].attributes.open === false) {
                                    skip = true;
                                    //  UrcURType = "IsClosed";

                                }

                                //urcToConsole("just before skipping, skip is " + skip + " " + id);
                                //W.model.mapUpdateRequests.objects[id].type == "mapUpdateRequest"
                                if (skip === false && W.model.mapUpdateRequests.objects[id].type == "mapUpdateRequest") {

                                    // && URComments.onScreen(W.model.mapUpdateRequests.objects[id])

                                    if (NumberOfComments > 0) {

                                        //4 day UR if there is only one comment, if the comment is less or equal to the editors setting, and if the last comment was not made by the driver
                                        if (NumberOfComments === 1 && ReminderDays > 0 && lastCommentAge >= ReminderDays && LastCommentorUserID > 1) {
                                            //urcToConsole("URComments2 - 4day URID: " + id);
                                            //direct link to a UR https://www.waze.com/editor/?zoom=5&lat=41.586201000000024&lon=-88.060863&layers=1957&mapUpdateRequest=4048801

                                            if (URCommentsHideReminderNeeded.checked == true) {
                                                UrcURType = UrcURType + " NeedsReminder";
                                            }

                                            if (LastCommentorUserID === EditorID && URCommentsAutoSendMyReminders.checked == true && $('[data-id="' + id + '"]').hasClass('ReminderSent') === false && EditorID > 0) {
                                                //urcToConsole("reminder needed UR: " + LastComment + " " + id);

                                                W.model.updateRequestSessions.objects[id].addComment(URCommentsArray[ReminderPosistion + 1]);

                                                //toggleFollowConversation true or false
                                                if ($("#URCommentURUnfollow").is(":checked")) {
                                                    setTimeout(URComments.toggleFollowConversation(id), 0);
                                                }

                                                URComments.ShowWMEMessage(URC_USER_PROMPT[7] + id, 2500); //"URComments: Adding reminder message to UR: "

                                                //attempting to stop double reminders from being sent by adding a class that we can check for before sending the reminder
                                                $('[data-id="' + id + '"]').addClass('ReminderSent');

                                                //set to hide if hide in between states is checked
                                                if (URCommentsHideInbetween.checked == true) {
                                                    UrcURType = UrcURType + " InBetweenStates";
                                                }

                                            }


                                            //7 day if the number of comments are greater than or equal to 1, days past are more then 7, the last comment was not from the driver, and number of comments are less than 2

                                        } else if ((NumberOfComments >= 2 && lastCommentAge >= CloseDays && LastCommentorUserID > 1) || (NumberOfComments >= 1 && ReminderDays == 0 && lastCommentAge >= CloseDays && LastCommentorUserID > 1)) {
                                            //urcToConsole("close needed UR: " + LastComment + " " + id);

                                            //hide or show UR that need closing
                                            if (URCommentsHideCloseNeeded.checked == true && UrcURType === "") {
                                                UrcURType = UrcURType + " NeedsClose";
                                            }

											//everyones stale 2 comment URS


                                        } else if (LastCommentorUserID > 0) {
                                            //in between states waiting for replies or time to elapse
                                            //urcToConsole("hiding ur 2: " + id);
                                            if (URCommentsHideInbetween.checked == true) {
                                                UrcURType = UrcURType + " InBetweenStates";
                                            }
                                        }

                                        //last comment was a user reply; change the pin color to blue or peach
                                        if (LastCommentorUserID < 1) {
                                            if (CountsBGColor == "white") {
                                                CountsBGColor = "#79B5C7"; //light blue
                                            } else {
                                                CountsBGColor = "#FFCC99"; //peach
                                            }

                                            if (URCommentsHideReplies.checked == true) {
                                                UrcURType = UrcURType + " HasUserReplies";
                                            }

                                        } else if (lastCommentAge > ClosePlussReminderDays && CountsBGColor !== "white") {
                                            CountsBGColor = "#FF8B8B"; //light red
                                        }

                                        //yellow at close days workaround
                                        //urcToConsole("yellow at close days workaround " + CountsBGColor + " NumberOfComments: " +NumberOfComments + "lastCommentAge: " +lastCommentAge + " CloseDays" + CloseDays + " LastCommentorUserID: " + LastCommentorUserID + "urid: " + id);
                                        //alert("yellow at close days workaround " + CountsBGColor + " NumberOfComments: " +NumberOfComments + "lastCommentAge: " +lastCommentAge + " CloseDays" + CloseDays + " ReminderDays: " + ReminderDays + " LastCommentorUserID: " + LastCommentorUserID + "urid: " + id);

                                        if (CountsBGColor == "#FFFF99" && NumberOfComments >= 1 && lastCommentAge >= ClosePlussReminderDays && LastCommentorUserID > 1) {
                                            CountsBGColor = "#FF8B8B"; //light red
                                        }
                                        /*
                                        if (CountsBGColor == "#FFFF99") {
                                        	if (ReminderDays === 0 && NumberOfComments >= 1 && lastCommentAge >= CloseDays && LastCommentorUserID > 1) {
                                        		CountsBGColor = "#FF8B8B"; //light red
                                        	} else if (ReminderDays > 0 && NumberOfComments >= 1 && lastCommentAge >= CloseDays && LastCommentorUserID > 1) {
                                        		CountsBGColor = "#CC00FF"; //light red
                                        	}
                                        }
                                        */




                                    }
                                    //zero comments
                                } else {
                                    //urcToConsole("skipped UR: " + id);
                                }
                                //skipped
                                //urcToConsole("check for urcounts class; comment count " + i );
                                //urcToConsole("trash58");

                                if (lastCommentAge === undefined) {
                                    lastCommentAge = "?";
                                }

                                var Message = "";

								if (Marked == "DontShowTaggedText" ){
									Message = i + UrCommentsTextPic + " " + lastCommentAge + UrCommentsTimePic;
                                    CountsBGColor = "#CCCCCC"; //light grey
								} else if (Marked !== "") {
                                    Message = Marked + " " + i + UrCommentsTextPic;
                                    CountsBGColor = "#CCCCCC"; //light grey
                                } else {
                                    Message = i + UrCommentsTextPic + " " + lastCommentAge + UrCommentsTimePic;
                                }

                                //urcToConsole("message " + Message);
                                //urcToConsole("Marked " + Marked);


                                //if the ur is tagged or has more than 0 comments reorder the ur stacking
                                if (Marked !== "" || i > 0) {

                                    var MessageOffset = Message.length;
                                    MessageOffset = MessageOffset - (UrCommentsTextPic.length-3 )
                                    MessageOffset = MessageOffset - (UrCommentsTimePic.length-4 )
                                    if (MessageOffset < 10) {
                                        MessageOffset = MessageOffset * 1.4;
                                    } else {
                                        MessageOffset = MessageOffset * 2.3;
                                    }
                                    MessageOffset = "-" + MessageOffset + "px";
                                    //urcToConsole("message " + Message);
                                    if (CountsBGColor == "#CCCCCC") { //light grey
                                        $('[data-id="' + id + '"]').css({
                                            'z-index': '999'
                                        });
                                    } else if (CountsBGColor == "white" || CountsBGColor == "#79B5C7") {
                                        $('[data-id="' + id + '"]').css({
                                            'z-index': '998'
                                        });
                                        //).style.visibility
                                    } else if (CountsBGColor == "#FF8B8B") { //light red
                                        $('[data-id="' + id + '"]').css({
                                            'z-index': '997'
                                        });
                                    }
                                    if (URCommentsPillEnabled.checked === true) {
                                        //add URC bubble
                                        if ($('[data-id="' + id + '"] .URCounts').hasClass('URCounts') === false) {
                                            $('[data-id="' + id + '"]').append($("<div>").css("clear", "both")
                                                .css("margin-bottom", "10px")

                                                .append($("<div>").html(Message)
                                                    .css("color", "black")
                                                    .css("background", CountsBGColor)
                                                    .css("position", "absolute")
                                                    .css("top", "30px")
                                                    .css("right", MessageOffset)
                                                    .css("font-size", "14px")

                                                    .css("display", "block")
                                                    .css("width", "auto")
                                                    .css("white-space", "nowrap")
                                                    .css("padding-left", "5px")
                                                    .css("padding-right", "5px")

                                                    .css("border", "1px solid")
                                                    .css("border-radius", "25px")

                                                    .addClass('URCounts')
                                                )
                                            );

                                        } else {
                                            $('[data-id="' + id + '"] .URCounts').html(Message);
                                            $('[data-id="' + id + '"] .URCounts').css("background", CountsBGColor);
                                            $('[data-id="' + id + '"] .URCounts').css("right", MessageOffset);
                                        }

                                        //end of URC bubble
                                    }
                                }


                                //console.log(a);

                                //URC UR Filtering

                                var uroURFiltersActive = false; // var used to keep track if we actually need to show / hide the UR pins

                                if (sessionStorage.UROverview_hasActiveURFilters == undefined) {
                                    //condsole.log("old version of URO, need to use existing UI-parsing test...");

                                    //these are all of the tags that URO uses to filter URs. If any of the settings are enabled set a var to let URO do the filterenabled
                                    if ($("#_cbFilterWazeAuto").is(":checked") || $("#_cbFilterIncorrectTurn").is(":checked") || $("#_cbFilterIncorrectAddress").is(":checked") || $("#_cbFilterIncorrectRoute").is(":checked") || $("#_cbFilterMissingRoundabout").is(":checked") || $("#_cbFilterGeneralError").is(":checked") || $("#_cbFilterTurnNotAllowed").is(":checked") || $("#_cbFilterIncorrectJunction").is(":checked") || $("#_cbFilterMissingBridgeOverpass").is(":checked") || $("#_cbFilterWrongDrivingDirection").is(":checked") || $("#_cbFilterMissingExit").is(":checked") || $("#_cbFilterMissingRoad").is(":checked") || $("#_cbFilterBlockedRoad").is(":checked") || $("#_cbFilterMissingLandmark").is(":checked") || $("#_cbFilterUndefined").is(":checked") || $("#_cbFilterRoadworks").is(":checked") || $("#_cbFilterConstruction").is(":checked") || $("#_cbFilterClosure").is(":checked") || $("#_cbFilterEvent").is(":checked") || $("#_cbFilterNote").is(":checked") || $("#_cbInvertURFilter").is(":checked") || $("#_cbFilterOpenUR").is(":checked") || $("#_cbFilterClosedUR").is(":checked") || $("#_cbFilterSolved").is(":checked") || $("#_cbFilterUnidentified").is(":checked") || $("#_cbEnableMinAgeFilter").is(":checked") || $("#_cbEnableMaxAgeFilter").is(":checked") || $("#_cbURDescriptionMustBePresent").is(":checked") || $("#_cbURDescriptionMustBeAbsent").is(":checked") || $("#_cbEnableKeywordMustBePresent").is(":checked") || $("#_cbEnableKeywordMustBeAbsent").is(":checked") || $("#_cbCaseInsensitive").is(":checked") || $("#_cbHideMyComments").is(":checked") || $("#_cbHideAnyComments").is(":checked") || $("#_cbHideIfLastCommenter").is(":checked") || $("#_cbHideIfNotLastCommenter").is(":checked") || $("#_cbHideIfReporterLastCommenter").is(":checked") || $("#_cbHideIfReporterNotLastCommenter").is(":checked") || $("#_cbEnableMinCommentsFilter").is(":checked") || $("#_cbEnableMaxCommentsFilter").is(":checked") || $("#_cbHideMyFollowed").is(":checked") || $("#_cbHideMyUnfollowed").is(":checked") || $("#_cbEnableCommentAgeFilter2").is(":checked") || $("#_cbEnableCommentAgeFilter").is(":checked") || $("#_cbURUserIDFilter").is(":checked") || $("#_cbURResolverIDFilter").is(":checked")) {
                                        uroURFiltersActive = true; //at least one of URO's UR checkboxes were enabledPlugin
                                    }
                                } else if (sessionStorage.UROverview_hasActiveURFilters == "true") {
                                    //console.log("new version of URO is actively filtering UR markers...");
                                    uroURFiltersActive = true; //twisters URO active filter bit is set to true
                                }


                                if (uroURFiltersActive === true && URCommentsFilterEnabled.checked === true) {
                                    URComments.ShowWMEMessage(URC_USER_PROMPT[8], 5000); //"URComment's UR Filtering has been disabled because URO\'s UR filters are active."
                                    $('#URCommentsFilterEnabled').prop('checked', false);
									$(localStorage.setItem('URCommentsFilterEnabled', URCommentsFilterEnabled.checked));
                                }

                                if (URCommentsFilterEnabled.checked == true && uroURFiltersActive === false) {
                                    //check if we should hide URO stype tagged UR
                                    if (URCommentsHideNotes.checked == true && Marked !== "") {
                                        UrcURType = UrcURType + " IsTagged";
                                    } else if (Marked !== "" && UrcURType !== "IsClosed") {
                                        UrcURType = UrcURType + " 1";
                                    }

                                    //check if not "my" ur
                                    //if(URCommentsHideNotMyUR.checked == true && NumberOfComments > 0 && lastCommentAge <= CloseDays ){
                                    if (URCommentsHideNotMyUR.checked == true && NumberOfComments > 0) {
                                        //light red, peach, light yellow
                                        //if(CountsBGColor == "#FF8B8B" || CountsBGColor == "#FFCC99" || CountsBGColor == "#FFFF99"){
                                        if (CountsBGColor == "#FFCC99" || CountsBGColor == "#FFFF99" || CountsBGColor == "#FF8B8B") {
											UrcURType = UrcURType + " NotMyUR";
										}
                                    }
                                    //URCommentsShowPastClose
                                    //check if not "my" ur
                                    if (URCommentsShowPastClose.checked == true && NumberOfComments > 0 && lastCommentAge > ClosePlussReminderDays) {
                                        //light red, peach, light yellow
										//if(CountsBGColor == "#FF8B8B" || CountsBGColor == "#FFCC99" || CountsBGColor == "#FFFF99"){
                                        if (CountsBGColor == "#FFCC99" || CountsBGColor == "#FFFF99" || CountsBGColor == "#FF8B8B") {
											if(UrcURType.indexOf("HasUserReplies") < 0){
												UrcURType = " ShowPastClose";
											}
										}
                                    }

                                    //initial UR no comments
                                    if (urDetail.comments.length === 0 && URCommentsHideInital.checked == true) {
                                        UrcURType = UrcURType + " initial";
                                    }


                                    //urcToConsole('UrcURType: ' + UrcURType);

                                    //show or hide URs|| NumberOfComments > 3 || NumberOfComments < 3

                                    if (W.model.mapUpdateRequests.objects[id].attributes.open === false) {
                                        if (URCommentsHideClosed.checked == true) {
                                            UrcURType = UrcURType + " IsClosed";
                                        } else {
                                            UrcURType = UrcURType + " ClosedNotHiden";
                                        }
                                    }

                                    if (UrcURType.indexOf("IsTagged") > 0) { //|| NumberOfComments > 2
                                        //urcToConsole('UR is tagged and set to be hidden');
                                        urStyle = 'hidden';

                                    } else if (UrcURType.indexOf("InBetweenStates") > 0 || UrcURType.indexOf("NeedsReminder") > 0 || UrcURType.indexOf("NeedsClose") > 0 || UrcURType.indexOf("initial") > 0 || UrcURType.indexOf("HasUserReplies") > 0 || UrcURType.indexOf("IsClosed") > 0 || UrcURType.indexOf("NotMyUR") > 0 || UrcURType.indexOf("WithoutDescription") > 0 || UrcURType.indexOf("WithDescription") > 0 ) {
                                        urStyle = 'hidden';
                                    } else {
                                        urStyle = 'visible';
                                    }
									//console.log("id: " + id + " UrcURType: " + UrcURType + " urStyle: " + urStyle + " Marked: " + Marked);

                                    //W.map.layers[uroURLayerIdx].markers[id].icon.imageDiv.style.visibility = urStyle;
                                    $('[data-id="' + id + '"]').css("visibility", urStyle);
                                    //urcToConsole('next ur ' + id);

                                    //when filtering is disable and URO filters are disabled reshow all the UR
                                } else if (URCommentsFilterEnabled.checked == false && uroURFiltersActive === false) {
                                    //urcToConsole('UR filtering is disabled showing all ur ' + id);
                                    urStyle = 'visible';
                                    // W.map.layers[uroURLayerIdx].markers[id].icon.imageDiv.style.visibility = urStyle;
                                    $('[data-id="' + id + '"]').css("visibility", urStyle);
                                }


                            }
                            window.HideUR = "stopped";
                            //urcToConsole('rem done filtering UR, Total UR: ' + TotalVisibleURCount);

                            //URComments.ShowWMEMessage("URComments: Machete808Count: " + window.Machete808Count,600000);
                            //alert(CountsBGColor);

                        } catch (e) {

                            setTimeout(URComments.FilterURs('error retry'), 1000);
                            //urcToConsole('Responder: error obtaining UR response = ' + e);
                            //window.HideUR = "stopped";
                        }
                    }
                });
                urcToConsole("" + a + " total visible: " + TotalVisibleURCount); // + " allID " + allID);
                //window.HideUR = "stopped";

            } else {
                //urcToConsole("no UR aborting");
                window.HideUR = "stopped";
            }

        };
    };

    URComments.OpenNextUR = function(message, delay) {
        return function() {
            setTimeout(URComments.OpenNextUR(a, allID, TotalVisibleURCount), 0);

        };
    };

    URComments.ShowWMEMessage = function(message, delay) {
        //if ($("#URCMapNote").length <= 0){

		//delay = 10000;

		var dateNow = new Date();
        TrickRemove = dateNow.getTime();

        //var message = "URComments UR Filtering has been disabled because URO\'s UR filters are active.";
        //var message = "URComments: Can not find the comment box! In order for this script to work you need to have a user request open."
        //var message = "URComments: Adding reminder message to UR: 4239896"
        //delay = 10000;
		//message = "test";
        var width = message.length * 10;

		//message holder div
        var c = '<div id="URCMessage" style="width: 100%; font-size: 15px; font-weight: bold; margin-left: auto; margin-right: auto; position: absolute; top: 0px; left: 10px; z-index: 1000;"></div>';
        $("#map").append(c);

		//message div
		var d = '<div id="URCMapNote' + TrickRemove + '" style="width: ' + width + 'px; font-size: 15px; font-weight: bold; margin-left: auto; margin-right: auto; background-color: orange;"><center><b>' + message + '</b></center></div>';
		$("#URCMessage").append(d);

		//remove messages after the duration has passed
        $("#URCMapNote" + TrickRemove).show().delay(delay).queue(function(n) {
            $(this).remove();
            n();
        });
        //}
    };



    /*
    CountsBGColor = "#FFFF99"; //light yellow = UR that are waiting for the last editor but still has time before the Close days setting ex 7 days
    CountsBGColor = "#CCCCCC"; //light grey = URO styled notes ex [NOTE]
    CountsBGColor = "#FFCC99"; //peach = another editor before the close days has gone by has user reply
    CountsBGColor = "#FF8B8B"; //light red = past the close days setting and is now able to be taken over by another editor
    CountsBGColor = "white"; = UR that "belong to the editor logged in that need work
    CountsBGColor = "#79B5C7"; //light blue = UR that "belong to the editor logged in that have user replies


    White = The editor logged in has comments on the UR and the UR needs work
    light blue = The editor logged in has comments on the UR and the UR's last comment was a user reply
    light red = past the close days setting and is now able to be taken over by another editor

    light yellow = UR that are waiting for the another editor to send a reminder or to be closed but still has time before the Close days setting (ex 7 days)
    peach = UR that another editor had commented on but the last comment is a user reply

    light grey = URO styled notes ex [NOTE]

    */



    //save what comment list is selected and then build the tab
    URComments.BoilerPlateCreatorsFunction = function() {

		if (BoilerPlateCreators.value !== "---User's Lists---") {

			//unset all the previuos lists kb shortcuts
			var ScriptName = 'URC' + localStorage.getItem('BoilerPlateCreators');
			for (var name in W.accelerators.Actions) {
				if (W.accelerators.Actions[name].group == ScriptName) {
					W.accelerators.Actions[name].enabled = false;
				}
			}


            //save the selection
            localStorage.setItem('BoilerPlateCreators', BoilerPlateCreators.value);

            //clear the html from the tabs
            $("#sidepanel-Comments").html('');
            //reload the content
            ChangeLanguage = true;

            //setTimeout(URComments_bootstrap, 20);
            URComments_bootstrap();
        } else {
            $("#BoilerPlateCreators").val(localStorage.getItem('BoilerPlateCreators'));
        }
    };


    URComments.URCommentZoomOutcheck = function(Title, URStatus) {
        return function() {
            //urcToConsole("zoom out URCommentZoomOutcheck");

            //this is the new place for zooming out and will still be happening while the comment is sending
            //zoom out option - if the user option is set to reload map after posting a comment reply
            if (UrCommentZoomOutAfterComment.checked === true) {
                //urcToConsole("zoom out ZoomOutAfterComment enabled");
                setTimeout(URComments.SetZoomCloseUR(ReturnToCurrentZoom, "LeaveOpen"), 0);
            } else {
                //alert("autozoomout not checked");
            }
            setTimeout(URComments.URCommentSendBtnClicked(Title, URStatus), 20);
        };
    };

    URComments.URCommentSendBtnClicked = function(Title, URStatus) {

        //waze is weird and after clicking send button the close button had to be refound, which takes a few seconds for the new close button to be drawn
        // so we wait 1500 milliseconds before looking for the close button
        //since we are passing vars to the next function we have to pass this to handler function so it doesn't happen on click

        //the above is still true but what i have found is that it sometimes takes a while from clicking send to the comment actually posting. there was time when i closed the comment before it actually posted and it would have to be redone. so added a check and a timeout and recheck if the textarea isn't empty. afterwards we can re-grab and click the close button
        return function() {
            //grab the close button to compare to later
            CloseButtonHolder = $(".problem-panel-navigation button.close-button");

            //check to see if the comments went through before saving or closing the comment
            if ($(".new-comment-text").val() !== "" && $(".new-comment-text").val() !== undefined) {
                //urcToConsole('the send button was clicked, Waiting for the comment to send. ' + PauseCount);
                //urcToConsole("current comment = " + $(".new-comment-text").val());
                //urcToConsole("current comment = ");
                PauseCount++;
                setTimeout(URComments.URCommentSendBtnClicked(Title, URStatus), 20);
            } else {
                //urcToConsole('The comment went through, jumping to CloseDelayHack2');
                PauseCount = "1";

                //check if we want to unfollow
                if ($("#URCommentURUnfollow").is(":checked") && $("#follow-on").is(":checked")) {
                    //$('#follow-on').trigger('click');
                    //setTimeout(URComments.URCommentSendBtnClicked(Title, URStatus), 20);
                    var urID = $(".update-requests .selected").data("id");
                    //urcToConsole("toggleFollowConversation id " + urID);
                    //W.model.updateRequestSessions.objects[urID].toggleFollowConversation('false');
                    setTimeout(URComments.toggleFollowConversation(urID), 500);
                }
                //delay this command for uro not to freakout on refreshing uro bubble ur count
                setTimeout(URComments.CloseDelayHack2(Title, URStatus), 100);

            }
        };
    };


    URComments.toggleFollowConversation = function(urID) {
        return function() {
            //urcToConsole("toggleFollowConversation id " + urID);
            W.model.updateRequestSessions.objects[urID].toggleFollowConversation('false');
        };
    };


    //this checks to see if the Waze's save button is waiting to be clicked.
    //currently unused
    URComments.WazeSaveWaiting = function() {
        if ($(".WazeControlSave").hasClass('ItemInactive')) {
            return true;
        } else {
            return false;
        }
    };

    URComments.CloseDelayHack2 = function(Title, URStatus) {
        return function() {
            //urcToConsole("CloseDelayhack2 " + Title + " " + URStatus);

            PauseCount = "1";
            //urcToConsole("New close button");
            //wrap the code in the finding of the new close button

            //now that we found the new close button and send was clicked

            //lets check if we should click close or save
            //when clicking save you dint need to click close

            //this checks to see if the Waze's save button is waiting to be clicked.
            //URComments.WazeSaveWaiting()

            if (URStatus.toLowerCase() === "solved" || URStatus.toLowerCase() === "notidentified") {
                //urcToConsole("CloseDelayhack2 Solved or NotIdentified- Clicking Save");
                //this clicks the waze save btn
                if (URCommentAutoClickURStatus.checked === true && UrCommentSaveAfterComment.checked === true) {
                    //click save
                    //$('#toolbar #edit-buttons .WazeControlSave').trigger('click');

					//from Cardyin 5/26/2016
					$('.toolbar-button.waze-icon-save').trigger('click');
                } else if (UrCommentAutoCloseComment.checked) {
                    //$(".problem-panel-navigation button.close-button").trigger('click');
					$("#panel-container > div > div > div.top-section > a").trigger('click');
				}

            } else {
                //when not saving you have to click close.
                //urcToConsole("CloseDelayhack2 since we are not saving click the close button");
                if (UrCommentAutoCloseComment.checked) {
                    //urcToConsole("CloseDelayhack2 auto close option checked");


                    //normal editor
                    if ($("#panel-container > div > div > div.top-section > a").length !== 0) {
						$("#panel-container > div > div > div.top-section > a").trigger('click');
                    }

                    //beta editor
                    if ($(".problem-edit .header .close-panel").length !== 0) {
                        //urcToConsole("zoom out CloseDelayHack2 beta editor");
                        $(".problem-edit .header .close-panel").trigger('click');
                        //setTimeout(function() {
                        //    $('a .close-popover').trigger('click');
                        // }, 2000);
                    }

                    //since saving above reloads the map we need this reload only to happen when we dont click save
                    //auto reload map for non save urs
                    //if (UrCommentAutoReloadAfterComment.checked) {
                    //    setTimeout(URComments.AutoReloadMapOnComment, 500);
                    //}
                }
            }

            //urcToConsole("end of saving or closing comment");
            //}

            //this is the new place for zooming out and will still be happening while the comment is sending
            //zoom out option - if the user option is set to reload map after posting a comment reply
            if (UrCommentZoomOutAfterComment.checked === true) {
                //urcToConsole("zoom out CloseDelayHack2");
                setTimeout(URComments.SetZoomCloseUR(ReturnToCurrentZoom, "LeaveOpen"), 0);
            } else {
                //alert("autozoomout not checked");
            }

            setTimeout(URComments.urcUREvent_onObjectsAdded('URCommentsReload'), 0);

        };
    };

    URComments.SetZoomCloseUR = function(a, b) {
        //this sets the map zoom; 0 is all the way out; 10 is all the way in but next to useless (the map and sat views disappear);
        //the closest zoom that shows the sat and map is zoom 9
        return function() {
            //urcToConsole("Setting map zoom to: " + a + " with flag: " + b);
            //alert(a + " " + b);
            W.map.setCenter(W.map.getCenter(), a);
            //close ur if zooming out to
            if (b === "CloseUR") {
                //alert(b);

                //normal editor
                /*                if ($(".problem-panel-navigation button.close-button").length !== 0) {
                                    $(".problem-panel-navigation button.close-button").trigger('click');
                                }
                */
                //beta editor
                if ($(".problem-edit .header .close-panel").length !== 0) {
                    $(".problem-edit .header .close-panel").trigger('click');
                    // setTimeout(function() {
                    //    $('a .close-popover').trigger('click');
                    // }, 2000);
                }
            }
        };
    };

    URComments.AutoReloadMapOnComment = function() {
        //waze together with URO is buggy i have to close the comment window before reloading the map or the pin ends up getting stuck on for all URO filters and it takes a page reload to fix it.
        // to get URO to rescan urs that have been commented on you have to reload the map this also causes URO to hide the ones that no longer fit the current URO filters like when using my pre-sets
        //click the reload button for the map
		$(".controls-container .fa-repeat.reload-button").trigger('click');
    };

    URComments.ConfirmToConsole = function() {
        //over ride the default action of the standard confirm by writing confirm to a new function nconfirm, making a 'fake' confirm and then restoring confirm by copying the nconfirm back over confirm!
        nconfirm = confirm;
        confirm = function(msg) {
            //if ((I18n.translations[I18n.locale].update_requests.panel.confirm == msg) && (uroGetCBChecked('_cbDisablePendingQuestions') == true)) {
            //urcToConsole('URComment confirm redirected to console: ' + msg);
            return true;
        };
    };

    URComments.RestoreConfirmToConfirm = function() {
        //restore the normal action of confirm by writing nconfirm to back over confirm, so the site is able to send user messages outside of my script!
        confirm = nconfirm;
    };

    URComments.AutoZoomIN = function(Title, Comment, URStatus, urID, AutoSendComment) {
        return function() {
            urcToConsole("AutoZoomIN");
            var URCommentsUnsavedDetected = false;
            var URCommentsUnsaveCount = $(".WazeControlSave .counter").html();

            //detect unsaved changed if there are and the auto save option is on abort adding comments to the UR
            if (URCommentsUnsaveCount > 0 && $("#UrCommentSaveAfterComment").is(":checked") && URStatus.toLowerCase() !== "open") {
                URCommentsUnsavedDetected = true;
                alert(URC_USER_PROMPT[9]); //"UrComments has detected that you have unsaved changes!\n\nWith the Auto Save option enabled and with unsaved changes you cannot send comments that would require the script to save. Please save your changes and then re-click the comment you wish to send."
            }
            //URCommentsUnsavedDetected = true;

            //get urid for manually clicked comments
            if (urID === 0 || urID === "" || urID === undefined) {
                urID = $(".update-requests .selected").data("id");
            }

            //check to see if the auto zoom in option in enabled if it is start the zooming in process
            //urcToConsole("AutoZoomIN checking if we should zoom in based of if the Title is the same as the reminder title: " + Title + " pointer title: " + URCommentsArray[ReminderPosistion] + " urID: " + urID);
            //having OneOrTheOTher first is a hack to make the logic work
            var OneOrTheOTher = "no";

            if (UrCommentNewZoomIn.checked === true && Title !== URCommentsArray[ReminderPosistion] && Title !== URCommentsArray[CloseNotIdentifiedPosistion] && AutoSendComment !== "AutoSendComment") {
                OneOrTheOTher = "yes";
            }

            //alert(OneOrTheOTher);
            if (OneOrTheOTher === "yes" && URCommentsUnsavedDetected === false) {

                //urcToConsole("AutoZoomIN zooming to location");

                //predefined zoom threshold for auto zoom
                var zoom = 4;

                //do not zoom back out if we are already zoomed in and just happen to be re-clicking on a UR.
                //or we have the map set good for a 4-day reminder
                var WazeCurrentZoom = URComments.GetWazeMapZoomLevel();

                if (WazeCurrentZoom < zoom) {
                    URComments.gotoURById(urID, 5);
                }

                //setTimeout(URComments.AutoZoomIN2(Title, Comment, URStatus), 2500);
                setTimeout(URComments.PostURComment(Title, Comment, URStatus, AutoSendComment, urID), 1);

            } else if (URCommentsUnsavedDetected === false) {

                //auto zoom in is disabled jump to postURComment
                //alert("else");
                //urcToConsole("AutoZoomIN disabled to PostURComment id - " + urID);
                //we have to use set timeout here because we need the  return function() in PostURComment
                //for when we are zooming in and out for the reminder
                //since we are not zooming here jump rigth to PostURComment
                setTimeout(URComments.PostURComment(Title, Comment, URStatus, AutoSendComment, urID), 1);
            }

        };
    };


	URComments.CrossHairsClicked = function(urID, zoom) {
		return function() {
			setTimeout(URComments.gotoURById(urID, 5), 500);
		};
	};


    URComments.gotoURById = function(urID, zoom) {
        //alert(urID);
        //$('span[id="WME_AutoUR_Count"]').html((WMEAutoUR.Auto.index+1)+"/"+WMEAutoUR.Auto.UR_len);
        //save zoom so we can return this the current zoom level
        ReturnToCurrentZoom = URComments.GetWazeMapZoomLevel();

		var x;
		if(W.model.mapUpdateRequests.objects[urID].attributes.geometry.realX === undefined){ //uro fix
		   x = W.model.mapUpdateRequests.objects[urID].attributes.geometry.x;
		} else {
		   x = W.model.mapUpdateRequests.objects[urID].attributes.geometry.realX; //uro fix
		}
		//var x = W.model.mapUpdateRequests.objects[urID].attributes.geometry.x;
        var y = W.model.mapUpdateRequests.objects[urID].attributes.geometry.y;

        //urcToConsole("gotoURById: " + "x: " + x + "y: " + y + "zoom: " + zoom);

        W.map.setCenter([x, y], zoom);
        return;
    };

    URComments.GetWazeMapZoomLevel = function(Title, Comment, URStatus) {
        zoom = W.map.mapState.mapLocation.zoom;
        urcToConsole("Current Zoom: " + zoom);
        return zoom;
    };


    URComments.WaitForURtoOpen = function(Title, Comment, URStatus, urID, AutoSendComment) {
        return function() {
			urcToConsole("WaitForURtoOpen");
            if ($(".new-comment-text")[0]) {
                setTimeout(URComments.AutoZoomIN(Title, Comment, URStatus, urID, AutoSendComment), 500);
            } else {
                setTimeout(URComments.WaitForURtoOpen(Title, Comment, URStatus, urID, AutoSendComment), 200);
            }
        };
    };


    URComments.PostURComment = function(Title, Comment, URStatus, AutoSendComment, urID) {
        // the user clicked on a comment link
        return function() {
            //Swap out special text
            Comment = URComments.StringSwap(Comment);
            urcToConsole("attaching to send button " + Title + " - " + Comment + " - " + URStatus);

            //add event listener that runs most of the options = URCommentZoomOutcheck
            //$('.new-comment-form .new-comment-text + .btn-default').click(URComments.URCommentZoomOutcheck(Title, URStatus));

			$('.new-comment-form .send-button').click(URComments.URCommentZoomOutcheck(Title, URStatus));

            //check if the comment text area is present if not alert the user to open a UR
            if ($(".new-comment-text")[0]) {
                //urcToConsole('found comment box ' + Title + ' - ' + Comment);
                $(".new-comment-text").val(Comment).change();
                $('.new-comment-text').keyup();
               // $($('textarea.new-comment-text').get(0)).change();
                //click the Ur status
                setTimeout(URComments.CheckIfClickStatus(URStatus, AutoSendComment), 100);
            } else {
                //we were unable to find an open UR
                URComments.ShowWMEMessage(URC_USER_PROMPT[10], 5000); //"URComments: Can not find the comment box! In order for this script to work you need to have a user request open."
            }
        };
    };

    //this is part of the script that gets the maps position for the 4 day reminder map link
    getQueryString = function(link, name) {
        var pos = link.indexOf(name + '=') + name.length + 1;
        var len = link.substr(pos).indexOf('&');
        if (-1 == len) len = link.substr(pos).length;
        return link.substr(pos, len);
    };

    URComments.CheckIfClickStatus = function(URStatus, AutoSendComment) {
        return function() {
            urcToConsole("checking ur status function: " + URStatus + " " + AutoSendComment);

            if (URCommentAutoClickURStatus.checked === true) {
				urcToConsole("URCommentAutoClickURStatus = true");
                //bypass the confirm function so other site messages do not come up!
                URComments.ConfirmToConsole();

                //click the ur status options (Not identified solved, open)
                if ($("input[value='open']").length !== 0) {
					urcToConsole("open !== 0");
					
                    $(".problem-edit .body").scrollTop($(".problem-edit .body")[0].scrollHeight);
                    
					urcToConsole("scrollTop");
					
					if (URStatus.toLowerCase() == "notidentified") {
						urcToConsole("notidentified click");
                        //click Not identified
                        //$("#state-not-identified-9").trigger('click');
						$("input[value='not-identified']").trigger('click');
					} else if (URStatus.toLowerCase() == "solved") {
						urcToConsole("solved click");
                        //click solved
                        //$("#state-solved-8").trigger('click');
						$("input[value='solved']").trigger('click');
					} else {
						urcToConsole("open click");
                        //click back on open just encase the wrong reply was clicked previously
                        //$("#state-open-7").trigger('click');
						$("input[value='open']").trigger('click');
                    }
                }

                //restores confirm function so other site messages come up!
                URComments.RestoreConfirmToConfirm();
                //wait for the status to change
            }

            if (AutoSendComment === "AutoSendComment") {
				urcToConsole("AutoSendComment");
                setTimeout(URComments.URVerfiyStatusSet(URStatus, AutoSendComment), 1);
            }
        };
		urcToConsole("end of CheckIfClickStatus");
    };

    URComments.URVerfiyStatusSet = function(URStatus, AutoSendComment) {
        return function() {
            urcToConsole("URVerfiyStatusSet function: " + URStatus + " " + AutoSendComment);
            var URStatusOk = true;

            if (URCommentAutoClickURStatus.checked === true) {

                if (URStatus.toLowerCase() == "notidentified") {
                    //click Not identified
                    if ($("input[value='not-identified']").is(":checked") == false) {
                        URStatusOk = false;
                    }
                } else if (URStatus.toLowerCase() == "solved") {
                    //click solved
                    if ($("input[value='solved']").is(":checked") == false) {
                        URStatusOk = false;
                    }
                } else {
                    //click back on open just encase the wrong reply was clicked previously
                    if ($("input[value='open']").is(":checked") == false) {
                        URStatusOk = false;
                    }
                }

            }

            if (URStatusOk == true) {
                setTimeout(URComments.AutoClickSend(URStatus, AutoSendComment), 10);
            } else {
                //urcToConsole("UR Status has yet to change waiting 250ms");
                setTimeout(URComments.URVerfiyStatusSet(URStatus, AutoSendComment), 150);
            }

        };
    };

    URComments.AutoClickSend = function(URStatus, AutoSendComment) {
        return function() {
            //urcToConsole("checking if we are auto clicking the send button");
            if (AutoSendComment === "AutoSendComment") {
                //urcToConsole("Auto clicking the send button");
                //$('.new-comment-form .new-comment-text + .btn-default').trigger('click');
				$('.new-comment-form .send-button').trigger('click');


            }
        };
    };

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////
    //// on start-up keep checking the site to see if the me tab is loaded
    ////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////

    URComments.startcode = function() {
        // Check if WME is loaded, if not, waiting a moment and checks again. if yes init URComments
        //try {
		//look for the me tab instead if the buggy chat room!



			if($("#user-details").length){
				//urcToConsole("Found user-details window");
				URComments.init();
			} else {
				//console.log("not def");
				urcToConsole("Could not find user-details window");
				setTimeout(URComments.startcode, 2000);
			}



           /* var element = $("#user-details");
            //urcToConsole("Found user-details window");
            if (typeof element !== "undefined" && element.value !== '') {
                //urcToConsole("Test2");
                URComments.init();
                //urcToConsole("Test3");
            } else {
                setTimeout(URComments.startcode, 2000);
            }*/


        /* catch (err) {
            //urcToConsole(err);
            if (err === "TypeError: element is null" || err === "TypeError: element is null") {
                setTimeout(URComments.startcode, 2000);
            }
            setTimeout(URComments.startcode, 2000);
			*/
       // }
    };


    /*
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////    URO Preset Filters
    ////
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    //URO+ these are the tags of all of the items URO uses to filter URs
    URComments.UROCheckboxesArray = ["_cbFilterWazeAuto",
                                     "_cbFilterIncorrectTurn",				//
                                     "_cbFilterIncorrectAddress",			//
                                     "_cbFilterIncorrectRoute",				//
                                     "_cbFilterMissingRoundabout",			//
                                     "_cbFilterGeneralError", 				//
                                     "_cbFilterTurnNotAllowed",				//
                                     "_cbFilterIncorrectJunction",			//
                                     "_cbFilterMissingBridgeOverpass",		//
                                     "_cbFilterWrongDrivingDirection",		//
                                     "_cbFilterMissingExit",				//
                                     "_cbFilterMissingRoad",				//
                                     "_cbFilterBlockedRoad",				//
                                     "_cbFilterMissingLandmark",			//
                                     "_cbFilterUndefined",					//
                                     //"_cbFilterCryosphere",				//
                                     "_cbFilterRoadworks",					//
                                     "_cbFilterConstruction",				//
                                     "_cbFilterClosure",					//
                                     "_cbFilterEvent",						//
                                     "_cbFilterNote",						//
                                     "_cbInvertURFilter",					//
                                     "_cbFilterOpenUR", 					//
                                     "_cbFilterClosedUR",					//
                                     "_cbFilterSolved",						//
                                     "_cbFilterUnidentified",				//
                                     "_cbEnableMinAgeFilter",				//
                                     "_cbEnableMaxAgeFilter",				//
                                     "_cbURDescriptionMustBePresent",		//
                                     "_cbURDescriptionMustBeAbsent", 		//
                                     "_cbEnableKeywordMustBePresent", 		//
                                     "_cbEnableKeywordMustBeAbsent", 		//
                                     "_cbCaseInsensitive", 					//
                                     "_cbHideMyComments", 					//
                                     "_cbHideAnyComments", 					//
                                     "_cbHideIfLastCommenter", 				//
                                     "_cbHideIfNotLastCommenter", 			//
                                     "_cbHideIfReporterLastCommenter",		//
                                     "_cbHideIfReporterNotLastCommenter",	//
                                     "_cbEnableMinCommentsFilter", 			//
                                     "_cbEnableMaxCommentsFilter", 			//
                                     "_cbHideMyFollowed", 					//
                                     "_cbHideMyUnfollowed", 				//
                                     "_cbEnableCommentAgeFilter2", 			//
                                     "_cbEnableCommentAgeFilter", 			//
                                     "_cbNoFilterForTaggedURs",				//
                                     "_cbURUserIDFilter",					//Without comments from user
                                     "_cbURResolverIDFilter"				//Not resolved by user
                                    ];

    URComments.UROPresetHighlight = function(a) {
        if (a === "URONewNoDescription") {
            $('#URONewNoDescription').css('background-color', '#FFFF66');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '');
        }

        if (a === "UroShowNew") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '#FFFF66');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '');
        }
        if (a === "URO4DayFollowUp") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '#FFFF66');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '');
        }
        if (a === "URO7Day") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '#FFFF66');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '');
        }
        if (a === "URO8Day") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '#FFFF66');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '');
        }
        if (a === "URO10Day") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '#FFFF66');
            $('#URCommentURO24Hr').css('background-color', '');
        }
        if (a === "URO24Hr") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '#FFFF66');
        }
        if (a === "UROclearUROFiltrs") {
            $('#URONewNoDescription').css('background-color', '');
            $('#URCommentURONEW').css('background-color', '');
            $('#URCommentURO4DayFollowUp').css('background-color', '');
            $('#URCommentURO7Day').css('background-color', '');
            $('#URCommentURO8Day').css('background-color', '');
            $('#URCommentURO10Day').css('background-color', '');
            $('#URCommentURO24Hr').css('background-color', '');
        }

    };

    URComments.UROClearClicked = function(a) {
        return function() {

            URComments.UROPresetHighlight(a);

            //save the current preset so we can reaply the highlighting on startup
            localStorage.setItem('UROCurrentPeset', a);

            if ($("#sidepanel-uroverview").length) {
                //alert("test");
                //urcToConsole("URO clear");
                //this is the array used to store the URO id tags

                //go over the array and clear all of the URO+ check boxes
                for (var URComments_URO_Index = 0; URComments_URO_Index < URComments.UROCheckboxesArray.length; URComments_URO_Index = URComments_URO_Index + 1) {

                    if ($('#' + URComments.UROCheckboxesArray[URComments_URO_Index]).length <= 0) {
                        alert("there was an error finding URO's tag " + URComments.UROCheckboxesArray[URComments_URO_Index]);
                        return false;
                    }

                    if ($('#' + URComments.UROCheckboxesArray[URComments_URO_Index]).is(":checked")) {
                        //clicks the checkbox by if the checkbox is checked
                        $('#' + URComments.UROCheckboxesArray[URComments_URO_Index]).trigger('click');
                    } else {
                        //click check box if checkbox in unchecked
                        //$(document.getElementById(URComments.UROCheckboxesArray[ URComments_URO_Index ])).trigger('click');
                    }
                }

                // make it so uro+ doesnt filter tagged urs [NOTE]...
                $('#_cbNoFilterForTaggedURs').trigger('click');
                if (a === "UroShowNew") {
                    //urcToConsole("URO show new");
                    //If last comment made by UR reporter? chose no
                    $('#_cbHideIfReporterNotLastCommenter').trigger('click');
                }
                if (a === "URONewNoDescription") {
                    //only show no user description
                    $('#_cbURDescriptionMustBeAbsent').trigger('click');

                    //hide reporter did not leave the last comment
                    $('#_cbHideIfReporterNotLastCommenter').trigger('click');

                    //Hide With more than 1 comments
                    $('#_cbEnableMaxCommentsFilter').trigger('click');
                    $('#_inputFilterMaxComments').val(1);
                }
                if (a === "URO4DayFollowUp") {
                    //urcToConsole("URO 4 day");

                    //hide With less than 1 comments
                    $('#_inputFilterMinComments').val(1);
                    $('#_cbEnableMinCommentsFilter').trigger('click');

                    //Hide With more than 1 comments
                    $('#_inputFilterMaxComments').val(1);
                    $('#_cbEnableMaxCommentsFilter').trigger('click');

                    //Hide Last comment less than 4 days ago
                    $('#_inputFilterCommentDays2').val(4);
                    $('#_cbEnableCommentAgeFilter2').trigger('click');

                }
                if (a === "URO7Day") {
                    //urcToConsole("URO 7 day");

                    //hide With less than 1 comments
                    $('#_inputFilterMinComments').val(1); //1
                    $('#_cbEnableMinCommentsFilter').trigger('click');

                    //hide Last comment less than 7 days ago
                    $('#_inputFilterCommentDays2').val(7);//7
                    $('#_cbEnableCommentAgeFilter2').trigger('click');

                    //hide If last comment made by UR reporter?
                    $('#_cbHideIfReporterLastCommenter').trigger('click');
                }
                if (a === "URO8Day") {
                    //urcToConsole("URO 7 day");

                    //hide With less than 1 comments
                    $('#_inputFilterMinComments').val(1); //1
                    $('#_cbEnableMinCommentsFilter').trigger('click');

                    //hide Last comment less than 8 days ago
                    $('#_inputFilterCommentDays2').val(8);//8
                    $('#_cbEnableCommentAgeFilter2').trigger('click');

                    //hide If last comment made by UR reporter?
                    $('#_cbHideIfReporterLastCommenter').trigger('click');
                }
                if (a === "URO10Day") {
                    //urcToConsole("URO 10 day");

                    //hide With less than 1 comments
                    $('#_inputFilterMinComments').val(1); //1
                    $('#_cbEnableMinCommentsFilter').trigger('click');

                    //hide Last comment less than 8 days ago
                    $('#_inputFilterCommentDays2').val(10);//10
                    $('#_cbEnableCommentAgeFilter2').trigger('click');

                    //hide If last comment made by UR reporter?
                    $('#_cbHideIfReporterLastCommenter').trigger('click');
                }
                if (a === "URO24Hr") {

                    //alanoftheberg

                    //check "Hide URs less than days old" "8" days old
                    $('#_inputFilterMinDays').val(8);//8
                    $('#_cbEnableMinAgeFilter').trigger('click');


                    //check "yes" on "If last comment made by UR reporter?"
                    $('#_cbHideIfReporterLastCommenter').trigger('click');

                    //check "With less than" and put in "1" comments
                    $('#_inputFilterMinComments').val(1);//1
                    $('#_cbEnableMinCommentsFilter').trigger('click');

                    //check "Last comment more than"  "1" days ago
                    $('#_inputFilterCommentDays').val(1);//1
                    $('#_cbEnableCommentAgeFilter').trigger('click');

                }
                if (a === "UROclearUROFiltrs") {}

                //shared URO settings except clear
                if (a !== "UROclearUROFiltrs") {
                    $('#_cbFilterUnidentified').trigger('click');
                }

            } else {
                alert("UR Overview Plus (URO+) needs to be installed to use these URO Presets.");
            }
        };
    };
	*/

    URComments.startcode();
}
//URComments_bootstrap();
setTimeout(URComments_bootstrap, 3000);