
        function show(object,x,y) {
                if (document.all) {
                        document.all[object].style.posLeft = x;
                        document.all[object].style.posTop = y;
                        }
                else if (document.getElementById && document.getElementById(eval("'"+object+"'"))){     
                                document.getElementById(object).style.posLeft = x;
                                document.getElementById(object).style.posTop = y;
                        }
                else if (document.layers && document.layers[object] != null) {
                        document.layers[object].left = x;
                        document.layers[object].top = y;
                }
                if (document.all)
                    document.all[object].style.visibility = 'visible';
                else if (document.getElementById && document.getElementById(eval("'"+object+"'")))
                        document.getElementById(object).style.visibility="visible";
                else if (document.layers && document.layers[object] != null)
                    document.layers[object].visibility = 'visible';
                     
        }

        function hide(object) {
            if (document.all)
                document.all[object].style.visibility = 'hidden';
            else if     (document.getElementById && document.getElementById(eval("'"+object+"'")))
                document.getElementById(object).style.visibility="hidden"; 
            else if (document.layers && document.layers[object] != null)
                document.layers[object].visibility = 'hidden';
        }       

        function myBlur(object){

                if (document.all){
                        if(object.blur)
                                object.blur();                  
                        document.selection.empty();
                }

                else{
                        if(object.blur)
                                object.blur();  

                }

        }
                
        function myBack(){
                if (history.length == 0)
                        window.close();
                else
                        history.back();
        }
                
        
        function replace(string,text,by) {
        // Replaces text with by in string
            var strLength = string.length;
            var txtLength = text.length;

            if ((strLength == 0) || (txtLength == 0)) return string;

            var i = string.indexOf(text);
            if ( (!i) && (text != string.substring(0,txtLength)) ) return string;
            if (i == -1) return string;

            var newstr = string.substring(0,i) + by;

            if (i+txtLength < strLength)
                newstr += replace(string.substring(i+txtLength,strLength),text,by);

            return newstr;
        }


        function printtextarea(fbitxt) {
        
          text = replace(document.form1.textarea1.value,'\n','<br>');
          winId = window.open('','newwin');
          with (winId.document) {
            write('<html>');
            write('<h3>'+fbitxt+'</h3>');
            write('<body onLoad="window.focus(); window.print(); window.close();" >'+text+'</body></html>');
            winId.document.close();         
                
          }     
        }               

                
        function clickIE() {
                var message="Function Disabled!";
                if (document.all){
                        return false;
                }
        }

        function clickNS(e) {
                var message="Function Disabled!";
                if(document.layers || (document.getElementById && !document.all )) {
                        if (e.which==2||e.which==3){ 
                                return false;
                        }
                }
        
        }



