Wikireporter:Sp5uhe/formatowanie.js
Uwaga: aby zobaczyć zmiany po opublikowaniu, może zajść potrzeba wyczyszczenia pamięci podręcznej przeglądarki.
- Firefox / Safari: Przytrzymaj Shift podczas klikania Odśwież bieżącą stronę, lub naciśnij klawisze Ctrl+F5, lub Ctrl+R (⌘-R na komputerze Mac)
- Google Chrome: Naciśnij Ctrl-Shift-R (⌘-Shift-R na komputerze Mac)
- Internet Explorer / Edge: Przytrzymaj Ctrl, jednocześnie klikając Odśwież, lub naciśnij klawisze Ctrl+F5
- Opera: Naciśnij klawisze Ctrl+F5.
/*<pre><nowiki>*/
function format() {
var txt = document.editform.wpTextbox1.value;
txt = txt.replace(/\(ITA\)/gi, "{{ITA}}");
txt = txt.replace(/\(AFG\)/gi, "{{AFG}}");
txt = txt.replace(/\(ALB\)/gi, "{{ALB}}");
txt = txt.replace(/\(DZA\)/gi, "{{DZA}}");
txt = txt.replace(/\(AND\)/gi, "{{AND}}");
txt = txt.replace(/\(AGO\)/gi, "{{AGO}}");
txt = txt.replace(/\(ATG\)/gi, "{{ATG}}");
txt = txt.replace(/\(SAU\)/gi, "{{SAU}}");
txt = txt.replace(/\(ARG\)/gi, "{{ARG}}");
txt = txt.replace(/\(ARM\)/gi, "{{ARM}}");
txt = txt.replace(/\(AUS\)/gi, "{{AUS}}");
txt = txt.replace(/\(AUT\)/gi, "{{AUT}}");
txt = txt.replace(/\(AZE\)/gi, "{{AZE}}");
txt = txt.replace(/\(BHS\)/gi, "{{BHS}}");
txt = txt.replace(/\(BHR\)/gi, "{{BHR}}");
txt = txt.replace(/\(BGD\)/gi, "{{BGD}}");
txt = txt.replace(/\(BRB\)/gi, "{{BRB}}");
txt = txt.replace(/\(BEL\)/gi, "{{BEL}}");
txt = txt.replace(/\(BLZ\)/gi, "{{BLZ}}");
txt = txt.replace(/\(BEN\)/gi, "{{BEN}}");
txt = txt.replace(/\(BTN\)/gi, "{{BTN}}");
txt = txt.replace(/\(BLR\)/gi, "{{BLR}}");
txt = txt.replace(/\(MMR\)/gi, "{{MMR}}");
txt = txt.replace(/\(BOL\)/gi, "{{BOL}}");
txt = txt.replace(/\(BIH\)/gi, "{{BIH}}");
txt = txt.replace(/\(BWA\)/gi, "{{BWA}}");
txt = txt.replace(/\(BRA\)/gi, "{{BRA}}");
txt = txt.replace(/\(BRN\)/gi, "{{BRN}}");
txt = txt.replace(/\(BGR\)/gi, "{{BGR}}");
txt = txt.replace(/\(BFA\)/gi, "{{BFA}}");
txt = txt.replace(/\(BDI\)/gi, "{{BDI}}");
txt = txt.replace(/\(CHL\)/gi, "{{CHL}}");
txt = txt.replace(/\(CHN\)/gi, "{{CHN}}");
txt = txt.replace(/\(HRV\)/gi, "{{HRV}}");
txt = txt.replace(/\(CYP\)/gi, "{{CYP}}");
txt = txt.replace(/\(TCD\)/gi, "{{TCD}}");
txt = txt.replace(/\(MNE\)/gi, "{{MNE}}");
txt = txt.replace(/\(CZE\)/gi, "{{CZE}}");
txt = txt.replace(/\(DNK\)/gi, "{{DNK}}");
txt = txt.replace(/\(COD\)/gi, "{{COD}}");
txt = txt.replace(/\(DMA\)/gi, "{{DMA}}");
txt = txt.replace(/\(DOM\)/gi, "{{DOM}}");
txt = txt.replace(/\(DJI\)/gi, "{{DJI}}");
txt = txt.replace(/\(EGY\)/gi, "{{EGY}}");
txt = txt.replace(/\(ECU\)/gi, "{{ECU}}");
txt = txt.replace(/\(ERI\)/gi, "{{ERI}}");
txt = txt.replace(/\(EST\)/gi, "{{EST}}");
txt = txt.replace(/\(ETH\)/gi, "{{ETH}}");
txt = txt.replace(/\(FJI\)/gi, "{{FJI}}");
txt = txt.replace(/\(PHL\)/gi, "{{PHL}}");
txt = txt.replace(/\(FIN\)/gi, "{{FIN}}");
txt = txt.replace(/\(FRA\)/gi, "{{FRA}}");
txt = txt.replace(/\(GAB\)/gi, "{{GAB}}");
txt = txt.replace(/\(GMB\)/gi, "{{GMB}}");
txt = txt.replace(/\(GHA\)/gi, "{{GHA}}");
txt = txt.replace(/\(GRC\)/gi, "{{GRC}}");
txt = txt.replace(/\(GRD\)/gi, "{{GRD}}");
txt = txt.replace(/\(GEO\)/gi, "{{GEO}}");
txt = txt.replace(/\(GUY\)/gi, "{{GUY}}");
txt = txt.replace(/\(GTM\)/gi, "{{GTM}}");
txt = txt.replace(/\(GIN\)/gi, "{{GIN}}");
txt = txt.replace(/\(GNB\)/gi, "{{GNB}}");
txt = txt.replace(/\(GNQ\)/gi, "{{GNQ}}");
txt = txt.replace(/\(HTI\)/gi, "{{HTI}}");
txt = txt.replace(/\(SPA\)/gi, "{{ESP}}");
txt = txt.replace(/\(ESP\)/gi, "{{ESP}}");
txt = txt.replace(/\(NLD\)/gi, "{{NLD}}");
txt = txt.replace(/\(HND\)/gi, "{{HND}}");
txt = txt.replace(/\(IND\)/gi, "{{IND}}");
txt = txt.replace(/\(IDN\)/gi, "{{IDN}}");
txt = txt.replace(/\(IRQ\)/gi, "{{IRQ}}");
txt = txt.replace(/\(IRN\)/gi, "{{IRN}}");
txt = txt.replace(/\(IRL\)/gi, "{{IRL}}");
txt = txt.replace(/\(ISL\)/gi, "{{ISL}}");
txt = txt.replace(/\(ISR\)/gi, "{{ISR}}");
txt = txt.replace(/\(JAM\)/gi, "{{JAM}}");
txt = txt.replace(/\(JPN\)/gi, "{{JPN}}");
txt = txt.replace(/\(YEM\)/gi, "{{YEM}}");
txt = txt.replace(/\(JOR\)/gi, "{{JOR}}");
txt = txt.replace(/\(KHM\)/gi, "{{KHM}}");
txt = txt.replace(/\(CMR\)/gi, "{{CMR}}");
txt = txt.replace(/\(CAN\)/gi, "{{CAN}}");
txt = txt.replace(/\(QAT\)/gi, "{{QAT}}");
txt = txt.replace(/\(KAZ\)/gi, "{{KAZ}}");
txt = txt.replace(/\(KEN\)/gi, "{{KEN}}");
txt = txt.replace(/\(KGZ\)/gi, "{{KGZ}}");
txt = txt.replace(/\(KIR\)/gi, "{{KIR}}");
txt = txt.replace(/\(COL\)/gi, "{{COL}}");
txt = txt.replace(/\(COM\)/gi, "{{COM}}");
txt = txt.replace(/\(COG\)/gi, "{{COG}}");
txt = txt.replace(/\(KOR\)/gi, "{{KOR}}");
txt = txt.replace(/\(PRK\)/gi, "{{PRK}}");
txt = txt.replace(/\(CRI\)/gi, "{{CRI}}");
txt = txt.replace(/\(CUB\)/gi, "{{CUB}}");
txt = txt.replace(/\(KWT\)/gi, "{{KWT}}");
txt = txt.replace(/\(LAO\)/gi, "{{LAO}}");
txt = txt.replace(/\(LSO\)/gi, "{{LSO}}");
txt = txt.replace(/\(LBN\)/gi, "{{LBN}}");
txt = txt.replace(/\(LBR\)/gi, "{{LBR}}");
txt = txt.replace(/\(LBY\)/gi, "{{LBY}}");
txt = txt.replace(/\(LIE\)/gi, "{{LIE}}");
txt = txt.replace(/\(LTU\)/gi, "{{LTU}}");
txt = txt.replace(/\(LUX\)/gi, "{{LUX}}");
txt = txt.replace(/\(LVA\)/gi, "{{LVA}}");
txt = txt.replace(/\(MKD\)/gi, "{{MKD}}");
txt = txt.replace(/\(MDG\)/gi, "{{MDG}}");
txt = txt.replace(/\(MWI\)/gi, "{{MWI}}");
txt = txt.replace(/\(MDV\)/gi, "{{MDV}}");
txt = txt.replace(/\(MYS\)/gi, "{{MYS}}");
txt = txt.replace(/\(MLI\)/gi, "{{MLI}}");
txt = txt.replace(/\(MLT\)/gi, "{{MLT}}");
txt = txt.replace(/\(MAR\)/gi, "{{MAR}}");
txt = txt.replace(/\(MRT\)/gi, "{{MRT}}");
txt = txt.replace(/\(MUS\)/gi, "{{MUS}}");
txt = txt.replace(/\(MEX\)/gi, "{{MEX}}");
txt = txt.replace(/\(FSM\)/gi, "{{FSM}}");
txt = txt.replace(/\(MDA\)/gi, "{{MDA}}");
txt = txt.replace(/\(MCO\)/gi, "{{MCO}}");
txt = txt.replace(/\(MNG\)/gi, "{{MNG}}");
txt = txt.replace(/\(MOZ\)/gi, "{{MOZ}}");
txt = txt.replace(/\(NAM\)/gi, "{{NAM}}");
txt = txt.replace(/\(NRU\)/gi, "{{NRU}}");
txt = txt.replace(/\(NPL\)/gi, "{{NPL}}");
txt = txt.replace(/\(DEU\)/gi, "{{DEU}}");
txt = txt.replace(/\(GER\)/gi, "{{DEU}}");
txt = txt.replace(/\(NER\)/gi, "{{NER}}");
txt = txt.replace(/\(NGA\)/gi, "{{NGA}}");
txt = txt.replace(/\(NIC\)/gi, "{{NIC}}");
txt = txt.replace(/\(NOR\)/gi, "{{NOR}}");
txt = txt.replace(/\(NZL\)/gi, "{{NZL}}");
txt = txt.replace(/\(OMN\)/gi, "{{OMN}}");
txt = txt.replace(/\(PAK\)/gi, "{{PAK}}");
txt = txt.replace(/\(PLW\)/gi, "{{PLW}}");
txt = txt.replace(/\(PAN\)/gi, "{{PAN}}");
txt = txt.replace(/\(PNG\)/gi, "{{PNG}}");
txt = txt.replace(/\(PRY\)/gi, "{{PRY}}");
txt = txt.replace(/\(PER\)/gi, "{{PER}}");
txt = txt.replace(/\(POL\)/gi, "{{POL}}");
txt = txt.replace(/\(POR\)/gi, "{{PRT}}");
txt = txt.replace(/\(PRT\)/gi, "{{PRT}}");
txt = txt.replace(/\(ZAF\)/gi, "{{ZAF}}");
txt = txt.replace(/\(CAF\)/gi, "{{CAF}}");
txt = txt.replace(/\(CPV\)/gi, "{{CPV}}");
txt = txt.replace(/\(RUS\)/gi, "{{RUS}}");
txt = txt.replace(/\(ROU\)/gi, "{{ROU}}");
txt = txt.replace(/\(RWA\)/gi, "{{RWA}}");
txt = txt.replace(/\(KNA\)/gi, "{{KNA}}");
txt = txt.replace(/\(LCA\)/gi, "{{LCA}}");
txt = txt.replace(/\(VCT\)/gi, "{{VCT}}");
txt = txt.replace(/\(SLV\)/gi, "{{SLV}}");
txt = txt.replace(/\(WSM\)/gi, "{{WSM}}");
txt = txt.replace(/\(SMR\)/gi, "{{SMR}}");
txt = txt.replace(/\(SEN\)/gi, "{{SEN}}");
txt = txt.replace(/\(SRB\)/gi, "{{SRB}}");
txt = txt.replace(/\(SYC\)/gi, "{{SYC}}");
txt = txt.replace(/\(SLE\)/gi, "{{SLE}}");
txt = txt.replace(/\(SGP\)/gi, "{{SGP}}");
txt = txt.replace(/\(SVK\)/gi, "{{SVK}}");
txt = txt.replace(/\(SVN\)/gi, "{{SVN}}");
txt = txt.replace(/\(SOM\)/gi, "{{SOM}}");
txt = txt.replace(/\(LKA\)/gi, "{{LKA}}");
txt = txt.replace(/\(USA\)/gi, "{{USA}}");
txt = txt.replace(/\(SWZ\)/gi, "{{SWZ}}");
txt = txt.replace(/\(SDN\)/gi, "{{SDN}}");
txt = txt.replace(/\(SUR\)/gi, "{{SUR}}");
txt = txt.replace(/\(SYR\)/gi, "{{SYR}}");
txt = txt.replace(/\(SWI\)/gi, "{{CHE}}");
txt = txt.replace(/\(CHE\)/gi, "{{CHE}}");
txt = txt.replace(/\(SWE\)/gi, "{{SWE}}");
txt = txt.replace(/\(TJK\)/gi, "{{TJK}}");
txt = txt.replace(/\(THA\)/gi, "{{THA}}");
txt = txt.replace(/\(TZA\)/gi, "{{TZA}}");
txt = txt.replace(/\(TLS\)/gi, "{{TLS}}");
txt = txt.replace(/\(TGO\)/gi, "{{TGO}}");
txt = txt.replace(/\(TON\)/gi, "{{TON}}");
txt = txt.replace(/\(TTO\)/gi, "{{TTO}}");
txt = txt.replace(/\(TUN\)/gi, "{{TUN}}");
txt = txt.replace(/\(TUR\)/gi, "{{TUR}}");
txt = txt.replace(/\(TKM\)/gi, "{{TKM}}");
txt = txt.replace(/\(TUV\)/gi, "{{TUV}}");
txt = txt.replace(/\(UGA\)/gi, "{{UGA}}");
txt = txt.replace(/\(UKR\)/gi, "{{UKR}}");
txt = txt.replace(/\(URY\)/gi, "{{URY}}");
txt = txt.replace(/\(UZB\)/gi, "{{UZB}}");
txt = txt.replace(/\(VUT\)/gi, "{{VUT}}");
txt = txt.replace(/\(VAT\)/gi, "{{VAT}}");
txt = txt.replace(/\(VEN\)/gi, "{{VEN}}");
txt = txt.replace(/\(HUN\)/gi, "{{HUN}}");
txt = txt.replace(/\(GBR\)/gi, "{{GBR}}");
txt = txt.replace(/\(VNM\)/gi, "{{VNM}}");
txt = txt.replace(/\(ITA\)/gi, "{{ITA}}");
txt = txt.replace(/\(CIV\)/gi, "{{CIV}}");
txt = txt.replace(/\(MHL\)/gi, "{{MHL}}");
txt = txt.replace(/\(SLB\)/gi, "{{SLB}}");
txt = txt.replace(/\(STP\)/gi, "{{STP}}");
txt = txt.replace(/\(ZMB\)/gi, "{{ZMB}}");
txt = txt.replace(/\(ZWE\)/gi, "{{ZWE}}");
txt = txt.replace(/\(ARE\)/gi, "{{ARE}}");
txt = txt.replace(/\(CSK\)/gi, "{{CSK}}");
txt = txt.replace(/\(DDR\)/gi, "{{DDR}}");
txt = txt.replace(/\(BRD\)/gi, "{{BRD}}");
txt = txt.replace(/\(YUG1945\)/gi, "{{YUG1945}}");
txt = txt.replace(/\(YUG\)/gi, "{{YUG}}");
txt = txt.replace(/\(SCG\)/gi, "{{SCG}}");
txt = txt.replace(/\(SUN\)/gi, "{{SUN}}");
txt = txt.replace(/\(ZRA\)/gi, "{{ZRA}}");
txt = txt.replace(/\(DEU1867\)/gi, "{{DEU1867}}");
txt = txt.replace(/\(DEU1933\)/gi, "{{DEU1933}}");
txt = txt.replace(/\(RSA\)/gi, "{{ZAF}}");
txt = txt.replace(/\(ZAF\)/gi, "{{ZAF}}");
txt = txt.replace(/\(ZAF1928\)/gi, "{{ZAF1928}}");
txt = txt.replace(/\(ESP1938\)/gi, "{{ESP1938}}");
txt = txt.replace(/\(EGY1922\)/gi, "{{EGY1922}}");
txt = txt.replace(/\(CND\)/gi, "{{CND}}");
txt = txt.replace(/\(ROU1947\)/gi, "{{ROU1947}}");
txt = txt.replace(/\(IRN1964\)/gi, "{{IRN1964}}");
txt = txt.replace(/\(ITA1861\)/gi, "{{ITA1861}}");
txt = txt.replace(/\(HUN1867\)/gi, "{{HUN1867}}");
txt = txt.replace(/\(HUN1918\)/gi, "{{HUN1918}}");
txt = txt.replace(/\(HUN1949\)/gi, "{{HUN1949}}");
txt = txt.replace(/\(HUN1957\)/gi, "{{HUN1957}}");
txt = txt.replace(/\(ABK\)/gi, "{{ABK}}");
txt = txt.replace(/\(AKR\)/gi, "{{AKR}}");
txt = txt.replace(/\(AIA\)/gi, "{{AIA}}");
txt = txt.replace(/\(ATA\)/gi, "{{ATA}}");
txt = txt.replace(/\(ANT\)/gi, "{{ANT}}");
txt = txt.replace(/\(ABW\)/gi, "{{ABW}}");
txt = txt.replace(/\(AAT\)/gi, "{{AAT}}");
txt = txt.replace(/\(BAK\)/gi, "{{BAK}}");
txt = txt.replace(/\(BMU\)/gi, "{{BMU}}");
txt = txt.replace(/\(BAT\)/gi, "{{BAT}}");
txt = txt.replace(/\(IOT\)/gi, "{{IOT}}");
txt = txt.replace(/\(VGB\)/gi, "{{VGB}}");
txt = txt.replace(/\(CPT\)/gi, "{{CPT}}");
txt = txt.replace(/\(NCP\)/gi, "{{NCP}}");
txt = txt.replace(/\(RDE\)/gi, "{{RDE}}");
txt = txt.replace(/\(DHE\)/gi, "{{DHE}}");
txt = txt.replace(/\(FLK\)/gi, "{{FLK}}");
txt = txt.replace(/\(ATF\)/gi, "{{ATF}}");
txt = txt.replace(/\(SGS\)/gi, "{{SGS}}");
txt = txt.replace(/\(GIB\)/gi, "{{GIB}}");
txt = txt.replace(/\(NKR\)/gi, "{{NKR}}");
txt = txt.replace(/\(GRL\)/gi, "{{GRL}}");
txt = txt.replace(/\(GUM\)/gi, "{{GUM}}");
txt = txt.replace(/\(GGY\)/gi, "{{GGY}}");
txt = txt.replace(/\(GUF\)/gi, "{{GUF}}");
txt = txt.replace(/\(GLP\)/gi, "{{GLP}}");
txt = txt.replace(/\(HOW\)/gi, "{{HOW}}");
txt = txt.replace(/\(JMY\)/gi, "{{JMY}}");
txt = txt.replace(/\(JAR\)/gi, "{{JAR}}");
txt = txt.replace(/\(JRS\)/gi, "{{JRS}}");
txt = txt.replace(/\(JTN\)/gi, "{{JTN}}");
txt = txt.replace(/\(CYM\)/gi, "{{CYM}}");
txt = txt.replace(/\(KIN\)/gi, "{{KIN}}");
txt = txt.replace(/\(KOS\)/gi, "{{KOS}}");
txt = txt.replace(/\(MYT\)/gi, "{{MYT}}");
txt = txt.replace(/\(MNP\)/gi, "{{MNP}}");
txt = txt.replace(/\(MTQ\)/gi, "{{MTQ}}");
txt = txt.replace(/\(MID\)/gi, "{{MID}}");
txt = txt.replace(/\(MSR\)/gi, "{{MSR}}");
txt = txt.replace(/\(PRD\)/gi, "{{PRD}}");
txt = txt.replace(/\(NAV\)/gi, "{{NAV}}");
txt = txt.replace(/\(NIU\)/gi, "{{NIU}}");
txt = txt.replace(/\(NFK\)/gi, "{{NFK}}");
txt = txt.replace(/\(NCL\)/gi, "{{NCL}}");
txt = txt.replace(/\(SOR\)/gi, "{{SOR}}");
txt = txt.replace(/\(PSE\)/gi, "{{PSE}}");
txt = txt.replace(/\(PAL\)/gi, "{{PAL}}");
txt = txt.replace(/\(PCN\)/gi, "{{PCN}}");
txt = txt.replace(/\(PYF\)/gi, "{{PYF}}");
txt = txt.replace(/\(PRI\)/gi, "{{PRI}}");
txt = txt.replace(/\(REU\)/gi, "{{REU}}");
txt = txt.replace(/\(ESH\)/gi, "{{ESH}}");
txt = txt.replace(/\(SBT\)/gi, "{{SBT}}");
txt = txt.replace(/\(SMT\)/gi, "{{SMT}}");
txt = txt.replace(/\(SPM\)/gi, "{{SPM}}");
txt = txt.replace(/\(ASM\)/gi, "{{ASM}}");
txt = txt.replace(/\(SML\)/gi, "{{SML}}");
txt = txt.replace(/\(SVA\)/gi, "{{SVA}}");
txt = txt.replace(/\(SHN\)/gi, "{{SHN}}");
txt = txt.replace(/\(TWN\)/gi, "{{TWN}}");
txt = txt.replace(/\(TKL\)/gi, "{{TKL}}");
txt = txt.replace(/\(TCA\)/gi, "{{TCA}}");
txt = txt.replace(/\(WAK\)/gi, "{{WAK}}");
txt = txt.replace(/\(WLF\)/gi, "{{WLF}}");
txt = txt.replace(/\(BVT\)/gi, "{{BVT}}");
txt = txt.replace(/\(CXR\)/gi, "{{CXR}}");
txt = txt.replace(/\(IM\)/gi, "{{IM}}");
txt = txt.replace(/\(PFI\)/gi, "{{PFI}}");
txt = txt.replace(/\(ACI\)/gi, "{{ACI}}");
txt = txt.replace(/\(COK\)/gi, "{{COK}}");
txt = txt.replace(/\(VIR\)/gi, "{{VIR}}");
txt = txt.replace(/\(HMD\)/gi, "{{HMD}}");
txt = txt.replace(/\(CCK\)/gi, "{{CCK}}");
txt = txt.replace(/\(CSI\)/gi, "{{CSI}}");
txt = txt.replace(/\(FRO\)/gi, "{{FRO}}");
txt = txt.replace(/\(ATN\)/gi, "{{ATN}}");
txt = txt.replace(/\(ADY\)/gi, "{{ADY}}");
txt = txt.replace(/\(ALD\)/gi, "{{ALD}}");
txt = txt.replace(/\(ALT\)/gi, "{{ALT}}");
txt = txt.replace(/\(ANL\)/gi, "{{ANL}}");
txt = txt.replace(/\(ANG\)/gi, "{{ANG}}");
txt = txt.replace(/\(ENG\)/gi, "{{ENG}}");
txt = txt.replace(/\(ARA\)/gi, "{{ARA}}");
txt = txt.replace(/\(AST\)/gi, "{{AST}}");
txt = txt.replace(/\(AZO\)/gi, "{{AZO}}");
txt = txt.replace(/\(BAL\)/gi, "{{BAL}}");
txt = txt.replace(/\(BAS\)/gi, "{{BAS}}");
txt = txt.replace(/\(BAH\)/gi, "{{BAH}}");
txt = txt.replace(/\(BRE\)/gi, "{{BRE}}");
txt = txt.replace(/\(BUR\)/gi, "{{BUR}}");
txt = txt.replace(/\(KHA\)/gi, "{{KHA}}");
txt = txt.replace(/\(KMA\)/gi, "{{KMA}}");
txt = txt.replace(/\(CEC\)/gi, "{{CEC}}");
txt = txt.replace(/\(CHK\)/gi, "{{CHK}}");
txt = txt.replace(/\(CHU\)/gi, "{{CHU}}");
txt = txt.replace(/\(DAG\)/gi, "{{DAG}}");
txt = txt.replace(/\(EXT\)/gi, "{{EXT}}");
txt = txt.replace(/\(FVG\)/gi, "{{FVG}}");
txt = txt.replace(/\(FRI\)/gi, "{{FRI}}");
txt = txt.replace(/\(GAG\)/gi, "{{GAG}}");
txt = txt.replace(/\(GOT\)/gi, "{{GOT}}");
txt = txt.replace(/\(HKG\)/gi, "{{HKG}}");
txt = txt.replace(/\(ING\)/gi, "{{ING}}");
txt = txt.replace(/\(NIR\)/gi, "{{NIR}}");
txt = txt.replace(/\(SAK\)/gi, "{{SAK}}");
txt = txt.replace(/\(YNA\)/gi, "{{YNA}}");
txt = txt.replace(/\(KAB\)/gi, "{{KAB}}");
txt = txt.replace(/\(KAL\)/gi, "{{KAL}}");
txt = txt.replace(/\(KAC\)/gi, "{{KAC}}");
txt = txt.replace(/\(KAR\)/gi, "{{KAR}}");
txt = txt.replace(/\(KLE\)/gi, "{{KLE}}");
txt = txt.replace(/\(KAT\)/gi, "{{KAT}}");
txt = txt.replace(/\(KOM\)/gi, "{{KOM}}");
txt = txt.replace(/\(KOY\)/gi, "{{KOY}}");
txt = txt.replace(/\(CON\)/gi, "{{CON}}");
txt = txt.replace(/\(COR\)/gi, "{{COR}}");
txt = txt.replace(/\(LOR\)/gi, "{{LOR}}");
txt = txt.replace(/\(MAC\)/gi, "{{MAC}}");
txt = txt.replace(/\(MOR\)/gi, "{{MOR}}");
txt = txt.replace(/\(MEL\)/gi, "{{MEL}}");
txt = txt.replace(/\(NEN\)/gi, "{{NEN}}");
txt = txt.replace(/\(ORK\)/gi, "{{ORK}}");
txt = txt.replace(/\(PRO\)/gi, "{{PRO}}");
txt = txt.replace(/\(SHE\)/gi, "{{SHE}}");
txt = txt.replace(/\(SCO\)/gi, "{{SCO}}");
txt = txt.replace(/\(TAT\)/gi, "{{TAT}}");
txt = txt.replace(/\(TdC\)/gi, "{{TdC}}");
txt = txt.replace(/\(TUA\)/gi, "{{TUA}}");
txt = txt.replace(/\(UDM\)/gi, "{{UDM}}");
txt = txt.replace(/\(VAL\)/gi, "{{VAL}}");
txt = txt.replace(/\(WAL\)/gi, "{{WAL}}");
txt = txt.replace(/\(ALA\)/gi, "{{ALA}}");
txt = txt.replace(/\(EAZ\)/gi, "{{EAZ}}");
txt = txt.replace(/\(UMI\)/gi, "{{UMI}}");
txt = txt.replace(/\(SAM\)/gi, "{{SAM}}");
txt = txt.replace(/\(LIV\)/gi, "{{LIV}}");
txt = txt.replace(/\(LUS\)/gi, "{{LUS}}");
txt = txt.replace(/\(ROM\)/gi, "{{ROM}}");
txt = txt.replace(/\(TPE\)/gi, "{{TPE}}");
txt = txt.replace(/\(CIS\)/gi, "{{CIS}}");
txt = txt.replace(/\(CN\)/gi, "{{CN}}");
txt = txt.replace(/\(EUR\)/gi, "{{EUR}}");
txt = txt.replace(/\(UN\)/gi, "{{UN}}");
document.editform.wpTextbox1.value = txt;
}
$(function () {
if(document.forms.editform) {
editingTools = document.getElementById('toolbar');
if (editingTools != null) {
FormatTextButton = "<a href=\"javascript:format();\"><img src=\"http://upload.wikimedia.org/wikipedia/commons/0/0c/Button_P_template.png\" alt=\"Formatuj flagi\" title=\"Formatuj flagi\"></a>";
editingTools.innerHTML = editingTools.innerHTML + FormatTextButton;
}
}
});
/*</nowiki></pre>*/