var timeremovez = []; var timeremovez = text.match(/см\.\s(\d\d.\d\d.\d\d)/g); if (timeremovez!=null) { for (var i=0; i<timeremovez.length; i++) { var obj=parent.left.document;var div=obj.getElementsByTagName('div'); for (var k=0; k<div.length; k++) {if (div[k].innerHTML.search(timeremovez[i])>=0){timeremoveid=timeremovez[i].replace(/см\.\s|\:/g, "");text=text.replace(timeremovez[i],"<span onclick=\"parent.showdiv('"+timeremoveid+"',0);\">"+timeremovez[i]+"</span>"); div[k].id=timeremoveid;if (loaded==1&&mynick==tonick) showdiv(timeremoveid,0)}}; if(privatok==1){obj=parent.privat.document;var div=obj.getElementsByTagName('div');for (var n=0; n<div.length; n++) {if (div[n].innerHTML.search(timeremovez[i])>=0) {timeremoveid=timeremovez[i].replace(/см\.\s|\:/g, "");text=text.replace(timeremovez[i],"<span onclick=\"parent.showdiv('"+timeremoveid+"',1);\">"+timeremovez[i]+"</span>"); div[n].id=timeremoveid;if (loaded==1&&mynick==tonick) showdiv(timeremoveid,1)}}}}}
<script language="JavaScript" type="text/javascript"> var acol=new Array('001100','002200','003300','004400','005500','006600','007700','008800','009900','00aa00','00bb00','00cc00','00dd00','00ee00','00ff00','110011','220022','330033','440044','550055','660066','770077','880088','990099','aa00aa','bb00bb','cc00cc','dd00dd','ee00ee','ff00ff','221100','442200','663300','884400','aa5500','cc6600','ee7700','ff8800','220011','440022','660033','880044','aa0055','cc0066','ee0077','ff0088','002211','004422','006633','008844','00aa55','00cc66','00ee77','00ff88','112200','224400','336600','448800','55aa00','66cc00','77ee00','88ff00','110022','220044','330066','440088','5500aa','6600cc','7700ee','8800ff','001122','002244','003366','004488','0055aa','0066cc','0077ee','0088ff'); var print=""; print+='<select name="element" onchange="parent.sendto(\'[\'+this.value+\']\');this.style.backgroundColor=this.value;" >'; for ( var n=0; n<acol.length; n++) print+='<option value=' + acol[n]+ ' style=background-color:#'+acol[n]+' > </option>'; print+='</select> '; document.write(print); </script>