﻿// JScript File
_editor_url = "htmlarea/";
  _editor_lang = "en";
  _width_multiplier = 12;
  _height_multiplier = 25;
  _editor_toolbar = [
	[ "fontname", "fontsize", "formatblock", "space",
	  "bold", "italic", "underline", "strikethrough", "separator",
	  "copy", "cut", "paste"],
	[ "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
	  "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator",
	  "forecolor", "hilitecolor", "separator",
	  "inserthorizontalrule", "createlink", "insertimage", "inserttable", "htmlmode", "separator",
	  "showhelp", "about" ]
	];
  var EW_HTMLArea = []; 
  //-------------------------------------------clickButton(e, buttonid)
  function clickButton(e, buttonid){ 
      
        var bt = document.getElementById(buttonid); 
        
        if (bt){ 
              if(navigator.appName.indexOf("Netscape")>(-1)){ 
                    if (e.keyCode == 13){ 
                          bt.click(); 
                          return false; 
                    } 
              } 
              if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                    if (event.keyCode == 13){ 
                          bt.click(); 
                          return false; 
                    } 
              } 
        }  else { alert('NOT There'); }
  } 
  //-------------------------------------------Set_ShowCalendar_click(strControl)
    function Set_ShowCalendar_click(strControl)
  {
    var txCtrl = strControl
    var tx = document.getElementById(txCtrl);
    tx.click();
    return true;
  }
  /*
  function NoWay()
  { 
    alert("Menu Disabled") ;
    event.cancelBubble = true ;
  }

function clickIE() { 
if (document.all) {return false} 
} 
function clickNS(e) { 
if (document.layers || (document.getElementById && !document.all)) { 
if (e.which==2 || e.which==3) {return false} 
} 
} 
if (document.layers) { 
document.captureEvents(Event.MOUSEDOWN); 
document.onmousedown=clickNS; 
} 
else { 
document.onmouseup=clickNS; 
document.oncontextmenu=clickIE; 
} 
document.oncontextmenu=new Function("return false"); 

  */
  //-------------------------------------------handleError()
      function handleError() {
          return true;
        }
        
        window.onerror = handleError;
