SafeNumChars = '1234567890-.' SafeCodeChars = 'abcdefghijklmnopqrstuvwxyz1234567890_-' SafeFileChars = 'abcdefghijklmnopqrstuvwxyz1234567890_-.+&!' function CheckSafe(Str, Range) { var OldStr = Str var NewStr = '' var x, Char for (x = 0; x < OldStr.length; x++) { Char = OldStr.slice(x, x+1).toLowerCase() if (Range.indexOf(Char) >= 0) NewStr = NewStr + Char } return NewStr } function CheckSafeKeypress(Range) { var Char = String.fromCharCode(event.keyCode).toLowerCase() Char = Char event.keyCode = Char.charCodeAt(0) if (Range.indexOf(Char) < 0) event.returnValue = false } function CheckSafePaste(Range) { window.clipboardData.setData("Text", CheckSafe(window.clipboardData.getData("Text"), Range)) } function CheckSafeDrop(Range) { event.dataTransfer.setData("Text", CheckSafe(event.dataTransfer.getData("Text"), Range)) } function URLEncode(s) { return encodeURI(s) s = s + '' var newS; var c; var x; newS = '' for (x=0; x < s.length; x++) { c = s.charAt(x) if ((c>='a')&&(c<='z')||(c>='A')&&(c<='Z')||(c>='0')&&(c<='9')) { newS = newS + '' + c } else { newS = newS + '%' + Hex(c.charCodeAt(0)) } } return newS } function ShowMenu() { var Result = '' var x, a, ExecuteIn var Delimiter = false var cMenu ExecuteIn = window.name if ((arguments.length==2)&&(arguments[0]=='Array')) { cMenu = arguments[1] } else { cMenu = arguments } for (x=0; x' + a[0] + '' Delimiter = false } else { Delimiter = true } } if (Result != '') { Result = '' + Result + '
' top.document.all.ContextMenuLayer.innerHTML = Result if (top.document.all.ContextMenuLayer.offsetWidth < 100) top.document.all.ContextMenuLayer.style.width = 100 top.document.all.ContextMenuLayer.style.display = '' top.document.all.ContextMenuLayer.style.top = event.screenY - top.window.screenTop - 4 if (top.document.all.ContextMenuLayer.offsetTop + top.document.all.ContextMenuLayer.offsetHeight > top.window.document.body.offsetHeight - 4) { top.document.all.ContextMenuLayer.style.top = top.window.document.body.offsetHeight - top.document.all.ContextMenuLayer.offsetHeight - 4 if (top.document.all.ContextMenuLayer.offsetTop < 1) { top.document.all.ContextMenuLayer.style.top = 1 } } top.document.all.ContextMenuLayer.style.left = event.screenX - top.window.screenLeft - 4 if (top.document.all.ContextMenuLayer.offsetLeft + top.document.all.ContextMenuLayer.offsetWidth > top.window.document.body.offsetWidth - 4) { top.document.all.ContextMenuLayer.style.left = top.window.document.body.offsetWidth - top.document.all.ContextMenuLayer.offsetWidth - 4 if (top.document.all.ContextMenuLayer.offsetLeft < 1) { top.document.all.ContextMenuLayer.style.left = 1 } } top.ContextMenuShow(true) top.document.all.ContextMenuLayer.focus() //top.ContextMenuShow(false) } event.returnValue=false } function ValueOfRadio(s) { var Radio = eval(s) var x for (x = 0; x < Radio.length; x++) { if (Radio[x].checked) { return Radio[x].value } } } function SetValueOfRadio(s, Value) { var Radio = eval(s) var x for (x = 0; x < Radio.length; x++) { if (Radio[x].value == Value) { Radio[x].checked = true } else { Radio[x].checked = false } } } function HTMLEncode(s) { return s var Result = s var re re = /&/g s = s.replace(re, '&') re = /\"/g s = s.replace(re, '"') re = />/g s = s.replace(re, '>') re = /" ); theDocument.writeln( "" ); theDocument.writeln( "Large picture" ); theDocument.writeln( "" ); theDocument.writeln( "<" + "!--" ); theDocument.writeln( "var isIE = ( navigator.userAgent.indexOf('MSIE') > 0 );" ); theDocument.writeln( "function imgLoaded() {" ); theDocument.writeln( " if ( isIE ) {" ); theDocument.writeln( " self.resizeTo( document.img1.width + 7, document.img1.height + 29 );" ); theDocument.writeln( " }" ); theDocument.writeln( " else {" ); theDocument.writeln( " self.resizeTo( document.img1.width, document.img1.height );" ); theDocument.writeln( " }" ); theDocument.writeln( "}" ); theDocument.writeln( "//" + "-->" ); theDocument.writeln( "" ); theDocument.writeln( "" ); theDocument.writeln( "" ); theDocument.writeln( "
" ); theDocument.writeln( "" ); theDocument.writeln( "
" ); theDocument.writeln( "" ); theDocument.writeln( "" ); theDocument.writeln( "" ); theDocument.close(); } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i