User:Dl2000/DateFix-unusedpieces.js

//function Dl2_unambiguous_dates{ // var txt=document.editform.wpTextbox1; //// resolvable ambiguous date formats ////4-digit year universal //	txt.value=txt.value.replace(/([^\d])\s0?1\/0?1\/([12]\d{3})(?![\w\d-])/g, '$1 1 January $2'); //	txt.value=txt.value.replace(/([^\d])\s0?2\/0?2\/([12]\d{3})(?![\w\d-])/g, '$1 2 February $2'); //	txt.value=txt.value.replace(/([^\d])\s0?3\/0?3\/([12]\d{3})(?![\w\d-])/g, '$1 3 March $2'); //	txt.value=txt.value.replace(/([^\d])\s0?4\/0?4\/([12]\d{3})(?![\w\d-])/g, '$1 4 April $2'); //	txt.value=txt.value.replace(/([^\d])\s0?5\/0?5\/([12]\d{3})(?![\w\d-])/g, '$1 5 May $2'); //	txt.value=txt.value.replace(/([^\d])\s0?6\/0?6\/([12]\d{3})(?![\w\d-])/g, '$1 6 June $2'); //	txt.value=txt.value.replace(/([^\d])\s0?7\/0?7\/([12]\d{3})(?![\w\d-])/g, '$1 7 July $2'); //	txt.value=txt.value.replace(/([^\d])\s0?8\/0?8\/([12]\d{3})(?![\w\d-])/g, '$1 8 August $2'); //	txt.value=txt.value.replace(/([^\d])\s0?9\/0?9\/([12]\d{3})(?![\w\d-])/g, '$1 9 September $2'); //	txt.value=txt.value.replace(/([^\d])\s10\/10\/([12]\d{3})(?![\w\d-])/g, '$1 10 October $2'); //	txt.value=txt.value.replace(/([^\d])\s11\/11\/([12]\d{3})(?![\w\d-])/g, '$1 11 November $2'); //	txt.value=txt.value.replace(/([^\d])\s12\/12\/([12]\d{3})(?![\w\d-])/g, '$1 12 December $2'); // ////4-digit year UK style //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?1\/([12]\d{3})(?![\w\d-])/g, '$1 January $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?2\/([12]\d{3})(?![\w\d-])/g, '$1 February $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?3\/([12]\d{3})(?![\w\d-])/g, '$1 March $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?4\/([12]\d{3})(?![\w\d-])/g, '$1 April $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?5\/([12]\d{3})(?![\w\d-])/g, '$1 May $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?6\/([12]\d{3})(?![\w\d-])/g, '$1 June $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?7\/([12]\d{3})(?![\w\d-])/g, '$1 July $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?8\/([12]\d{3})(?![\w\d-])/g, '$1 August $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?9\/([12]\d{3})(?![\w\d-])/g, '$1 September $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/10\/([12]\d{3})(?![\w\d-])/g, '$1 October $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/11\/([12]\d{3})(?![\w\d-])/g, '$1 November $2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/12\/([12]\d{3})(?![\w\d-])/g, '$1 December $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?1\/([12]\d{3})(?![\w\d-])/g, '$1 January $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?2\/([12]\d{3})(?![\w\d-])/g, '$1 February $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?3\/([12]\d{3})(?![\w\d-])/g, '$1 March $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?4\/([12]\d{3})(?![\w\d-])/g, '$1 April $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?5\/([12]\d{3})(?![\w\d-])/g, '$1 May $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?6\/([12]\d{3})(?![\w\d-])/g, '$1 June $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?7\/([12]\d{3})(?![\w\d-])/g, '$1 July $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?8\/([12]\d{3})(?![\w\d-])/g, '$1 August $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?9\/([12]\d{3})(?![\w\d-])/g, '$1 September $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/10\/([12]\d{3})(?![\w\d-])/g, '$1 October $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/11\/([12]\d{3})(?![\w\d-])/g, '$1 November $2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/12\/([12]\d{3})(?![\w\d-])/g, '$1 December $2'); // //4-digit year US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 January $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 February $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 March $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 April $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 May $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 June $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 July $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 August $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 September $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 October $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 November $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([23]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 December $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?1\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 January $2,\'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 February $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 March $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 April $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 May $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 June $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 July $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 August $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 September $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 October $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 November $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/(1[3-9])\/([12]\d{3})(?![\w\d-])/g, '$1 December $2, $3'); // ////2-digit year ('00-'19) universal //	txt.value=txt.value.replace(/([^\d])\s0?1\/0?1\/([01]\d)(?![\w\d-])/g, '$1 1 January 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?2\/0?2\/([01]\d)(?![\w\d-])/g, '$1 2 February 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?3\/0?3\/([01]\d)(?![\w\d-])/g, '$1 3 March 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?4\/0?4\/([01]\d)(?![\w\d-])/g, '$1 4 April 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?5\/0?5\/([01]\d)(?![\w\d-])/g, '$1 5 May 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?6\/0?6\/([01]\d)(?![\w\d-])/g, '$1 6 June 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?7\/0?7\/([01]\d)(?![\w\d-])/g, '$1 7 July 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?8\/0?8\/([01]\d)(?![\w\d-])/g, '$1 8 August 20$2'); //	txt.value=txt.value.replace(/([^\d])\s0?9\/0?9\/([01]\d)(?![\w\d-])/g, '$1 9 September 20$2'); //	txt.value=txt.value.replace(/([^\d])\s10\/10\/([01]\d)(?![\w\d-])/g, '$1 10 October 20$2'); //	txt.value=txt.value.replace(/([^\d])\s11\/11\/([01]\d)(?![\w\d-])/g, '$1 11 November 20$2'); //	txt.value=txt.value.replace(/([^\d])\s12\/12\/([01]\d)(?![\w\d-])/g, '$1 12 December 20$2'); // ////2-digit year ('00-'19) UK style //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?1\/([01]\d)(?![\w\d-])/g, '$1 January 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?2\/([01]\d)(?![\w\d-])/g, '$1 February 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?3\/([01]\d)(?![\w\d-])/g, '$1 March 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?4\/([01]\d)(?![\w\d-])/g, '$1 April 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?5\/([01]\d)(?![\w\d-])/g, '$1 May 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?6\/([01]\d)(?![\w\d-])/g, '$1 June 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?7\/([01]\d)(?![\w\d-])/g, '$1 July 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?8\/([01]\d)(?![\w\d-])/g, '$1 August 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?9\/([01]\d)(?![\w\d-])/g, '$1 September 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/10\/([01]\d)(?![\w\d-])/g, '$1 October 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/11\/([01]\d)(?![\w\d-])/g, '$1 November 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/12\/([01]\d)(?![\w\d-])/g, '$1 December 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?1\/([01]\d)(?![\w\d-])/g, '$1 January 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?2\/([01]\d)(?![\w\d-])/g, '$1 February 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?3\/([01]\d)(?![\w\d-])/g, '$1 March 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?4\/([01]\d)(?![\w\d-])/g, '$1 April 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?5\/([01]\d)(?![\w\d-])/g, '$1 May 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?6\/([01]\d)(?![\w\d-])/g, '$1 June 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?7\/([01]\d)(?![\w\d-])/g, '$1 July 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?8\/([01]\d)(?![\w\d-])/g, '$1 August 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?9\/([01]\d)(?![\w\d-])/g, '$1 September 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/10\/([01]\d)(?![\w\d-])/g, '$1 October 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/11\/([01]\d)(?![\w\d-])/g, '$1 November 20$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/12\/([01]\d)(?![\w\d-])/g, '$1 December 20$2'); // ////2-digit year ('00-'19) US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 January $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 February $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 March $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 April $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 May $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 June $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 July $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 August $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 September $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 October $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 November $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([23]\d)\/([01]\d)(?![\w\d-])/g, '$1 December $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?1\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 January $2,20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 February $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 March $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 April $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 May $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 June $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 July $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 August $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 September $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 October $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 November $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/(1[3-9])\/([01]\d)(?![\w\d-])/g, '$1 December $2, 20$3'); // ////2-digit year ('50-'99) universal //	txt.value=txt.value.replace(/([^\d])\s0?1\/0?1\/([5-9]\d)(?![\w\d-])/g, '$1 1 January 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?2\/0?2\/([5-9]\d)(?![\w\d-])/g, '$1 2 February 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?3\/0?3\/([5-9]\d)(?![\w\d-])/g, '$1 3 March 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?4\/0?4\/([5-9]\d)(?![\w\d-])/g, '$1 4 April 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?5\/0?5\/([5-9]\d)(?![\w\d-])/g, '$1 5 May 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?6\/0?6\/([5-9]\d)(?![\w\d-])/g, '$1 6 June 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?7\/0?7\/([5-9]\d)(?![\w\d-])/g, '$1 7 July 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?8\/0?8\/([5-9]\d)(?![\w\d-])/g, '$1 8 August 19$2'); //	txt.value=txt.value.replace(/([^\d])\s0?9\/0?9\/([5-9]\d)(?![\w\d-])/g, '$1 9 September 19$2'); //	txt.value=txt.value.replace(/([^\d])\s10\/10\/([5-9]\d)(?![\w\d-])/g, '$1 10 October 19$2'); //	txt.value=txt.value.replace(/([^\d])\s11\/11\/([5-9]\d)(?![\w\d-])/g, '$1 11 November 19$2'); //	txt.value=txt.value.replace(/([^\d])\s12\/12\/([5-9]\d)(?![\w\d-])/g, '$1 12 December 19$2'); // ////2-digit year ('50-'99) UK style //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?1\/([5-9]\d)(?![\w\d-])/g, '$1 January 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?2\/([5-9]\d)(?![\w\d-])/g, '$1 February 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?3\/([5-9]\d)(?![\w\d-])/g, '$1 March 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?4\/([5-9]\d)(?![\w\d-])/g, '$1 April 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?5\/([5-9]\d)(?![\w\d-])/g, '$1 May 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?6\/([5-9]\d)(?![\w\d-])/g, '$1 June 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?7\/([5-9]\d)(?![\w\d-])/g, '$1 July 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?8\/([5-9]\d)(?![\w\d-])/g, '$1 August 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?9\/([5-9]\d)(?![\w\d-])/g, '$1 September 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/10\/([5-9]\d)(?![\w\d-])/g, '$1 October 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/11\/([5-9]\d)(?![\w\d-])/g, '$1 November 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/12\/([5-9]\d)(?![\w\d-])/g, '$1 December 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?1\/([5-9]\d)(?![\w\d-])/g, '$1 January 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?2\/([5-9]\d)(?![\w\d-])/g, '$1 February 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?3\/([5-9]\d)(?![\w\d-])/g, '$1 March 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?4\/([5-9]\d)(?![\w\d-])/g, '$1 April 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?5\/([5-9]\d)(?![\w\d-])/g, '$1 May 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?6\/([5-9]\d)(?![\w\d-])/g, '$1 June 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?7\/([5-9]\d)(?![\w\d-])/g, '$1 July 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?8\/([5-9]\d)(?![\w\d-])/g, '$1 August 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?9\/([5-9]\d)(?![\w\d-])/g, '$1 September 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/10\/([5-9]\d)(?![\w\d-])/g, '$1 October 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/11\/([5-9]\d)(?![\w\d-])/g, '$1 November 19$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/12\/([5-9]\d)(?![\w\d-])/g, '$1 December 19$2'); // ////2-digit year ('50-'99) US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 January $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 February $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 March $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 April $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 May $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 June $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 July $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 August $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 September $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 October $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 November $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([23]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 December $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?1\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 January $2,19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 February $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 March $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 April $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 May $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 June $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 July $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 August $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 September $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 October $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 November $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/(1[3-9])\/([5-9]\d)(?![\w\d-])/g, '$1 December $2, 19$3'); // ////universal 2-digit year //	txt.value=txt.value.replace(/([^\d])\s0?1\/0?1\/(\d{2})(?![\w\d-])/g, '$1 1 January \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?2\/0?2\/(\d{2})(?![\w\d-])/g, '$1 2 February \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?3\/0?3\/(\d{2})(?![\w\d-])/g, '$1 3 March \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?4\/0?4\/(\d{2})(?![\w\d-])/g, '$1 4 April \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?5\/0?5\/(\d{2})(?![\w\d-])/g, '$1 5 May \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?6\/0?6\/(\d{2})(?![\w\d-])/g, '$1 6 June \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?7\/0?7\/(\d{2})(?![\w\d-])/g, '$1 7 July \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?8\/0?8\/(\d{2})(?![\w\d-])/g, '$1 8 August \'$2'); //	txt.value=txt.value.replace(/([^\d])\s0?9\/0?9\/(\d{2})(?![\w\d-])/g, '$1 9 September \'$2'); //	txt.value=txt.value.replace(/([^\d])\s10\/10\/(\d{2})(?![\w\d-])/g, '$1 10 October \'$2'); //	txt.value=txt.value.replace(/([^\d])\s11\/11\/(\d{2})(?![\w\d-])/g, '$1 11 November \'$2'); //	txt.value=txt.value.replace(/([^\d])\s12\/12\/(\d{2})(?![\w\d-])/g, '$1 12 December \'$2'); // ////UK style //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?1\/(\d{2})(?![\w\d-])/g, '$1 January \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?2\/(\d{2})(?![\w\d-])/g, '$1 February \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?3\/(\d{2})(?![\w\d-])/g, '$1 March \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?4\/(\d{2})(?![\w\d-])/g, '$1 April \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?5\/(\d{2})(?![\w\d-])/g, '$1 May \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?6\/(\d{2})(?![\w\d-])/g, '$1 June \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?7\/(\d{2})(?![\w\d-])/g, '$1 July \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?8\/(\d{2})(?![\w\d-])/g, '$1 August \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/0?9\/(\d{2})(?![\w\d-])/g, '$1 September \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/10\/(\d{2})(?![\w\d-])/g, '$1 October \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/11\/(\d{2})(?![\w\d-])/g, '$1 November \'$2'); //	txt.value=txt.value.replace(/([^\w\d-][23]\d)\/12\/(\d{2})(?![\w\d-])/g, '$1 December \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?1\/(\d{2})(?![\w\d-])/g, '$1 January \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?2\/(\d{2})(?![\w\d-])/g, '$1 February \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?3\/(\d{2})(?![\w\d-])/g, '$1 March \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?4\/(\d{2})(?![\w\d-])/g, '$1 April \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?5\/(\d{2})(?![\w\d-])/g, '$1 May \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?6\/(\d{2})(?![\w\d-])/g, '$1 June \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?7\/(\d{2})(?![\w\d-])/g, '$1 July \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?8\/(\d{2})(?![\w\d-])/g, '$1 August \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/0?9\/(\d{2})(?![\w\d-])/g, '$1 September \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/10\/(\d{2})(?![\w\d-])/g, '$1 October \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/11\/(\d{2})(?![\w\d-])/g, '$1 November \'$2'); //	txt.value=txt.value.replace(/([^\w\d-]1[3-9])\/12\/(\d{2})(?![\w\d-])/g, '$1 December \'$2'); // ////US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 January $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 February $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 March $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 April $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 May $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 June $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 July $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 August $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 September $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 October $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 November $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([23]\d)\/(\d{2})(?![\w\d-])/g, '$1 December $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?1\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 January $2,\'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 February $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 March $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 April $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 May $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 June $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 July $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 August $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 September $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 October $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 November $2, \'$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/(1[3-9])\/(\d{2})(?![\w\d-])/g, '$1 December $2, \'$3'); // // //// Add a tag to the summary box // var txt=document.editform.wpSummary; //   var summary = "resolved ambiguous date formats"; //	if (txt.value.indexOf(summary) == -1) { //		if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) { //			txt.value += " | "; //		} //		txt.value += summary; //	} //  document.forms.editform.wpMinoredit.checked = true; //  document.editform.wpDiff.click; //} // ////// //function Dl2_US_slash_dates{ // var txt=document.editform.wpTextbox1; //// resolvable ambiguous date formats // ////4-digit year US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 January $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 February $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 March $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 April $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 May $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 June $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 July $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 August $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 September $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 October $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 November $2, $3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([0-3]\d)\/([12]\d{3})(?![\w\d-])/g, '$1 December $2, $3'); // ////2-digit year ('00-'19) US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 January $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 February $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 March $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 April $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 May $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 June $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 July $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 August $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 September $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 October $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 November $2, 20$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([0-3]\d)\/([01]\d)(?![\w\d-])/g, '$1 December $2, 20$3'); // ////2-digit year ('50-'99) US style //	txt.value=txt.value.replace(/([^\w\d-])0?1\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 January $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?2\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 February $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?3\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 March $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?4\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 April $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?5\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 May $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?6\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 June $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?7\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 July $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?8\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 August $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])0?9\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 September $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])10\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 October $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])11\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 November $2, 19$3'); //	txt.value=txt.value.replace(/([^\w\d-])12\/([0-3]\d)\/([5-9]\d)(?![\w\d-])/g, '$1 December $2, 19$3'); // ////removing leading zeroes //	txt.value=txt.value.replace(/([^\d][^\w\d])(Jan(?:uary|\.|)|Feb(?:ruary|\.|)|Mar(?:ch|\.|)|Apr(?:il|\.|)|May\.?|Jun(?:e|\.|)|Jul(?:y|\.|)|Aug(?:ust|\.|)|Sep(?:tember|\.|t\.|)|Oct(?:ober|\.|)|Nov(?:ember|\.|)|Dec(?:ember|\.|))\s0(\d),?\s([12]\d{3})([^\w\d][^\d]|\b)/gi, '$1$2 $3, $4$5'); //	txt.value=txt.value.replace(/([^\d][^\w\d])(Jan(?:uary|\.|)|Feb(?:ruary|\.|)|Mar(?:ch|\.|)|Apr(?:il|\.|)|May\.?|Jun(?:e|\.|)|Jul(?:y|\.|)|Aug(?:ust|\.|)|Sep(?:tember|\.|t\.|)|Oct(?:ober|\.|)|Nov(?:ember|\.|)|Dec(?:ember|\.|))\s0(\d)([^\w\d][^\d]|\b)/gi, '$1$2 $3$4'); // //// Add a tag to the summary box // var txt=document.editform.wpSummary; //   var summary = "resolved ambiguous date formats"; //	if (txt.value.indexOf(summary) == -1) { //		if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) { //			txt.value += " | "; //		} //		txt.value += summary; //	} //  document.forms.editform.wpMinoredit.checked = true; ////  document.editform.wpDiff.click; //} // //function Dl2_UK_slash_dates{ // var txt=document.editform.wpTextbox1; //// resolvable ambiguous date formats ////4-digit year UK style //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?1\/([12]\d{3})(?![\w\d-])/g, '$1 January $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?2\/([12]\d{3})(?![\w\d-])/g, '$1 February $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?3\/([12]\d{3})(?![\w\d-])/g, '$1 March $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?4\/([12]\d{3})(?![\w\d-])/g, '$1 April $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?5\/([12]\d{3})(?![\w\d-])/g, '$1 May $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?6\/([12]\d{3})(?![\w\d-])/g, '$1 June $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?7\/([12]\d{3})(?![\w\d-])/g, '$1 July $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?8\/([12]\d{3})(?![\w\d-])/g, '$1 August $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?9\/([12]\d{3})(?![\w\d-])/g, '$1 September $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/10\/([12]\d{3})(?![\w\d-])/g, '$1 October $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/11\/([12]\d{3})(?![\w\d-])/g, '$1 November $2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/12\/([12]\d{3})(?![\w\d-])/g, '$1 December $2'); // ////2-digit year ('00-'19) UK style //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?1\/([01]\d)(?![\w\d-])/g, '$1 January 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?2\/([01]\d)(?![\w\d-])/g, '$1 February 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?3\/([01]\d)(?![\w\d-])/g, '$1 March 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?4\/([01]\d)(?![\w\d-])/g, '$1 April 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?5\/([01]\d)(?![\w\d-])/g, '$1 May 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?6\/([01]\d)(?![\w\d-])/g, '$1 June 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?7\/([01]\d)(?![\w\d-])/g, '$1 July 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?8\/([01]\d)(?![\w\d-])/g, '$1 August 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?9\/([01]\d)(?![\w\d-])/g, '$1 September 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/10\/([01]\d)(?![\w\d-])/g, '$1 October 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/11\/([01]\d)(?![\w\d-])/g, '$1 November 20$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/12\/([01]\d)(?![\w\d-])/g, '$1 December 20$2'); // ////2-digit year ('50-'99) UK style //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?1\/([5-9]\d)(?![\w\d-])/g, '$1 January 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?2\/([5-9]\d)(?![\w\d-])/g, '$1 February 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?3\/([5-9]\d)(?![\w\d-])/g, '$1 March 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?4\/([5-9]\d)(?![\w\d-])/g, '$1 April 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?5\/([5-9]\d)(?![\w\d-])/g, '$1 May 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?6\/([5-9]\d)(?![\w\d-])/g, '$1 June 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?7\/([5-9]\d)(?![\w\d-])/g, '$1 July 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?8\/([5-9]\d)(?![\w\d-])/g, '$1 August 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/0?9\/([5-9]\d)(?![\w\d-])/g, '$1 September 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/10\/([5-9]\d)(?![\w\d-])/g, '$1 October 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/11\/([5-9]\d)(?![\w\d-])/g, '$1 November 19$2'); //	txt.value=txt.value.replace(/([^\w\d-][0-3]\d)\/12\/([5-9]\d)(?![\w\d-])/g, '$1 December 19$2'); // ////removing leading zeroes //	txt.value=txt.value.replace(/([^\d][^\w\d])0(\d)\s(Jan(?:uary|\.|)|Feb(?:ruary|\.|)|Mar(?:ch|\.|)|Apr(?:il|\.|)|May\.?|Jun(?:e|\.|)|Jul(?:y|\.|)|Aug(?:ust|\.|)|Sep(?:tember|\.|t\.|)|Oct(?:ober|\.|)|Nov(?:ember|\.|)|Dec(?:ember|\.|))\s([12]\d{3})([^\w\d][^\d]|\b)/gi, '$1$2 $3 $4$5'); //	txt.value=txt.value.replace(/([^\d][^\w\d])0(\d)\s(Jan(?:uary|\.|)|Feb(?:ruary|\.|)|Mar(?:ch|\.|)|Apr(?:il|\.|)|May\.?|Jun(?:e|\.|)|Jul(?:y|\.|)|Aug(?:ust|\.|)|Sep(?:tember|\.|t\.|)|Oct(?:ober|\.|)|Nov(?:ember|\.|)|Dec(?:ember|\.|))([^\w\d][^\d]|\b)/gi, '$1$2 $3$4'); // //// Add a tag to the summary box // var txt=document.editform.wpSummary; // var summary = "resolved slash-dates"; //	if (txt.value.indexOf(summary) == -1) { //		if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) { //			txt.value += " | "; //		} //		txt.value += summary; //	} //  document.forms.editform.wpMinoredit.checked = true; ////  document.editform.wpDiff.click; //} //

//function yyyymmdd_to_dmy(str) { //// This code adapted from User:Plastikspork/datetools.js //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?1-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 January $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?2-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 February $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?3-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 March $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?4-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 April $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?5-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 May $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?6-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 June $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?7-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 July $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?8-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 August $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?9-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 September $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)10-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 October $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)11-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 November $2'); //	str=str.replace(/(\|[ ]*(?:date|archivedate)[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)12-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 December $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?1-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 January $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?2-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 February $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?3-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 March $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?4-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 April $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?5-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 May $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?6-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 June $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?7-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 July $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?8-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 August $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)0?9-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 September $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)10-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 October $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)11-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 November $2'); //	str=str.replace(/(\|[ ]*accessdate[ ]*=[ ]*)(?:\[\[)?([1-2][0-9]{3})(?:\]\]-\[\[|-)12-(0[1-9]|[1-2][0-9]|30|31)(?:\]\])?/gi, '$1$3 December $2'); // return str; //}