function show_it(theURL) { newWindow=window.open(theURL,"","toolbar=no,titlebar=no,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes,width=640,height=434,left=10,top=20"); newWindow.focus(); } //thnx Владимир Палант http://xpoint.ru/forums/programming/javascript/misc/thread/21220.xhtml function escapeEx(str) { var ret = ''; for (i=0; i = 0x410 && n <= 0x44F) n -= 0x350; else if (n == 0x451) n = 0xB8; else if (n == 0x401) n = 0xA8; if ((n < 65 || n > 90) && (n < 97 || n > 122) && n < 256) { if (n < 16) ret += '%0'+n.toString(16); else ret += '%'+n.toString(16); } else ret += String.fromCharCode(n); } ret=ret.replace(/%2f/g,"/"); ret=ret.replace(/%2e/g,"."); //ret=ret.replace(/%30/g,"0"); ret=ret.replace(/%31/g,"1"); ret=ret.replace(/%32/g,"2"); ret=ret.replace(/%33/g,"3"); ret=ret.replace(/%34/g,"4"); ret=ret.replace(/%35/g,"5"); ret=ret.replace(/%36/g,"6"); ret=ret.replace(/%37/g,"7"); ret=ret.replace(/%38/g,"8"); ret=ret.replace(/%39/g,"9"); return ret; } function convertString(str) { var query=""; for (i=0;i=0x410 && n<=0x44F) // convert cyrillic letters n-=0x350; else if (n==0x451) n=0xB8; else if (n==0x401) n=0xA8; query=query+String.fromCharCode(n); } return escape(query); } /////////////////////////////////////////////////// function show_img(theURL,width,height,text) { newWindow=window.open("","","toolbar=no,titlebar=no,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes,width="+(Math.max(width+5,242+100))+",height="+(height+45)+",left=10,top=20"); newWindow.document.write(""+text+"
"+text+"
"); newWindow.focus(); } function show_dv(id) { document.getElementById('dv'+id).style.display=''; }; function hide_dv(id) { document.getElementById('dv'+id).style.display='none'; };