昨天将project1.exe 用一工具查看了它编译后的东东,Intraweb 其实它写了大量的
js 代码,贴出来一部分,共大家研究:
IW_JS_IWCL:
/*
onAbort
onBlur
onChange
onClick
onDblClick
onDragDrop
onError
onFocus
onKeyDown
onKeyPress
onKeyUp
onLoad
onMouseDown
onMouseMove
onMouseOut
onMouseOver
onMouseUp
onMove
onReset
onResize
onSelect
onSubmit
onUnload
*/
var IWCLForm;
var alNone = 0;
var alTop = 1;
var alBottom = 2;
var alLeft = 3;
var alRight = 4;
var alClient = 5;
var alCustom = 6;
var iwclBase = 0;
var iwclDBBase = 1000;
var iwclLabel = 1 + iwclBase;
var iwclEdit = 2 + iwclBase;
var iwclComboBox = 3 + iwclBase;
var iwclCheckBox = 4 + iwclBase;
var iwclListBox = 5 + iwclBase;
var iwclMemo = 6 + iwclBase;
var iwclTreeView = 7 + iwclBase;
var iwclDBNav = iwclDBBase + 1;
var iwclDBGrid = iwclDBBase + 2;
var GResizeScroll = true;
function findObjectInArray(AArray, AObject) {
var i;
for (i = 0; i < AAraay.length; i++) {
if (AArray
== AObject) {
return i;
}
}
return -1;
}
function hasClip(AElement) {
if (opera_browser || KHTML_browser) {
return AElement.style.clip != "auto";
} else if (!ns6) {
return AElement.currentStyle.clipTop != "auto"
} else {
return getComputedStyle(AElement,'').getPropertyValue('clip') != "auto";
}
return false;
}
function VisibilityStyle(AElement) {
if (opera_browser) {
return AElement.visibility;
} else {
if (KHTML_browser){
return AElement.style.visibility
} else {
if (!ns6) {
return AElement.currentStyle.visibility;
} else {
return getComputedStyle(AElement,'').getPropertyValue('visibility');
}
}
}
return "";
}
function isNotClipped(AElement) {
if (AElement != null && AElement != document.body) {
if (hasClip(AElement)) {
return false;
} else {
return isNotClipped(AElement.offsetParent);
}
} else {
return true;
}
}
function Rect(ALeft, ATop, AWidth, AHeight) {
this.Left = ALeft;
this.Top = ATop;
this.Width = AWidth;
this.Height = AHeight;
}
function RectSize(AWidth, AHeight) {
this.Width = AWidth;
this.Height = AHeight;
}
function Point(AX, AY)
{
this.X = AX;
this.Y = AY;
}
function CopyRect(ASrcRect) {
return new Rect(ASrcRect.Left, ASrcRect.Top, ASrcRect.Width, ASrcRect.Height);
}
function CreateAnchors(ALeft, ARight, ATop, ABottom) {
this.Left = ALeft;
this.Right = ARight;
this.Top = ATop;
this.Bottom = ABottom;
}
function IWCL_FormRelease() {
delete this.Rect;
delete this.OriginalRect;
var i;
for (i = 0; i < this.OwnedComps.length; i++) {
this.OwnedComps.IWRelease();
this.OwnedComps = null;
}
if (this.oldCursors) {
for (i = 0; i < this.oldCursors.length; i++) {
this.oldCursors = null;
}
for (i = 0; i < this.HTMLelements.length; i++) {
this.HTMLelements = null;
}
}
}
function CreateIWCLForm(AWidth, AHeight) {
/* this.Width = AWidth;
this.Height = AHeight;
this.OldWidth = AWidth;
this.OldHeight = AHeight; */
this.BorderWidth = 0;
this.Item = document.body;
this.Rect = new Rect(0, 0, AWidth, AHeight);
this.OriginalRect = new Rect(0, 0, AWidth, AHeight);
this.OwnedComps = new Array();
this.UpdateRects = IWCL_UpdateRects;
this.HookEvent = IWCL_HookEvent;
this.IWRelease = IWCL_FormRelease;
}
function ReleaseIWCL() {
IWCLForm.IWRelease();
IWCLForm = null;
}
function LocateInputElement(AId, AFunction) {
var i;
var LResult;
var AItem = (ns6||KHTML_browser) ? FindElem(AId): document.all[AId];
if ((ns6||KHTML_browser) && AItem == null) {
AItem = document.getElementById(AId);
}
if (AItem != null && AItem.length && AItem.length > 0 && !AItem.tagName) {
for (i = 0; i < AItem.length; i++) {
LResult = AItem;
if (AFunction == null) {
if (LResult.id == AId) break;
} else {
AFunction(LResult);
}
}
return LResult;
} else {
if (AFunction != null && AItem != null) {
AFunction(AItem);
}
}
return AItem;
}
function LocateElement(AId, AFunction) {
var i;
var LResult;
var AItem = (ns6||KHTML_browser) ? document.getElementById(AId): document.all[AId];
if (AItem != null && AItem.length && AItem.length > 0 && !AItem.tagName) {
for (i = 0; i < AItem.length; i++) {
LResult = AItem;
if (AFunction == null) {
if (LResult.id == AId) break;
} else {
AFunction(LResult);
}
}
return LResult;
} else {
if (AFunction != null && AItem != null) {
AFunction(AItem);
}
}
return AItem;
}
/*function ClientToScreen(AControl, APoint) {
var LItem = AControl;
var LPoint = new Point(APoint.X, APoint.Y);
while (LItem != IWCLForm) {
LItem = LItem.Owner;
LPoint.X += LItem.Rect.Left;
LPoint.Y += LItem.Rect.Top;
}
return LPoint;
}
function ScreenToClient(AControl, ARect) {
var LPoint;
if (AControl != IWCLForm) {
LPoint = ClientToScreen(AControl.Owner, new Point(AControl.Owner.Rect.Left, AControl.Owner.Rect.Top));
ARect.Left = ARect.Left - LPoint.X;
ARect.Top = ARect.Top - LPoint.Y;
}
} */
function CreateRect(AControl) {
var LRect;
LRect = new Rect(AControl.offsetLeft, AControl.offsetTop,
AControl.offsetWidth, AControl.offsetHeight);
if (ns6 || opera_browser) {
if (AControl.Owner != IWCLForm && hasClip(AControl.Owner)) {
LRect.Left += AControl.Owner.BorderWidth;
LRect.Top += AControl.Owner.BorderWidth;
}
if (AControl != IWCLForm && hasClip(AControl)) {
InflateRect(LRect, -AControl.BorderWidth, -AControl.BorderWidth);
}
}
return LRect;
}
function IWCL_SetAlign(AAlign) {
this.Align = AAlign;
}
function IWCL_SetAnchors(AAnchors) {
this.Anchors = AAnchors;
}
function IWCL_SetFieldName(AFieldName) {
this.FieldName = AFieldName;
}
function IWCL_SetDataSet(ADataSet) {
if (ADataSet == null) {
}
this.DataSet = ADataSet;
if (ADataSet != null) {
ADataSet.OnChangeList[ADataSet.OnChangeList.length] = this;
}
this.DoOnChange(ADataSet);
}
function IWCL_OverrideIWCLType(ASetIWCLTypeMethod) {
this.SetIWCLTypeMehtodList[this.SetIWCLTypeMehtodList.length] = ASetIWCLTypeMethod
}
function IWCL_SetOnChange(ADataSet) {
this.SetOnChnage = ADataSet;
}
function IWCL_SetIWCLType(AType) {
switch (AType) {
case iwclLabel:
this.DoOnChange = IWCL_LabelOnChange;
break;
case iwclEdit:
break;
case iwclComboBox:
break;
case iwclCheckBox:
break;
case iwclListBox:
break;
case iwclMemo:
break;
case iwclTreeView:
break;
case iwclDBNav:
this.DoOnChange = IWCL_DBNavigatorOnChange;
break;
case iwclDBGrid:
break;
default: {
for(i = 0; i < this.SetIWCLTypeMehtodList.length; i++)
this.SetIWCLTypeMehtodList(AType);
}
}
}
function IWCL_OnChange(ADataSet) {
}
function IWCL_LabelOnChange(ADataSet) {
if (ADataSet) {
layerWrite(this.id, false, ADataSet.FieldByName(this.FieldName));
}
}
function IWCL_DBNavigatorOnChange(ADataSet) {
AElement = LocateElement(this.id + 'IWCL_First');
if (AElement != null) {
if (ADataSet != null) {
if (ADataSet.BOF()) {
AElement.src = this.First_Disabled;
}
else {
AElement.src = this.First_Enabled;
}
} else {
AElement.src = this.First_Disabled;
}
}
AElement = LocateElement(this.id + 'IWCL_Last');
if (AElement != null) {
if (ADataSet != null) {
if (ADataSet.EOF()) {
AElement.src = this.Last_Disabled;
}
else {
AElement.src = this.Last_Enabled;
}
} else {
AElement.src = this.Last_Disabled;
}
}
AElement = LocateElement(this.id + 'IWCL_Next');
if (AElement != null) {
if (ADataSet != null) {
if (ADataSet.EOF()) {
AElement.src = this.Next_Disabled;
}
else {
AElement.src = this.Next_Enabled;
}
} else {
AElement.src = this.Next_Disabled;
}
}
AElement = LocateElement(this.id + 'IWCL_Prior');
if (AElement != null) {
if (ADataSet != null) {
if (ADataSet.BOF()) {
AElement.src = this.Prior_Disabled;
}
else {
AElement.src = this.Prior_Enabled;
}
} else {
AElement.src = this.Prior_Disabled;
}
}
AElement = LocateElement(this.id + 'IWCL_Refresh');
if (AElement != null) {
if (ADataSet != null) {
AElement.src = this.Refresh_Enabled;
} else {
AElement.src = this.Refresh_Disabled;
}
}
}
function IWCL_SetVisible(AVisible) {
var i;
if (AVisible) {
this.style.visibility = "visible";
this.style.display = "";
} else {
this.style.visibility = "hidden";
this.style.display = "none";
}
for (i = 0; i < this.OwnedComps.length; i++) {
this.OwnedComps.IWSetVisible(AVisible);
}
}
function IsVisible(AItem) {
if (AItem != IWCLForm) {
if (!AItem.Visible) {
return false;
} else {
if (AItem.Owner != null){
return IsVisible(AItem.Owner);
} else {
return true;
}
}
} else {
return true;
}
}
function IWCL_Show() {
if (IsVisible(this)) this.IWSetVisible(true)
else this.IWSetVisible(false);
}
function IWCL_Hide() {
this.IWSetVisible(false);
}
function IWCL_SetRect(ARect) {
var LPoint = new Point(ARect.Left, ARect.Top);
var LStyle;
var i;
if ((ARect.Left + ARect.Width) < 0 || (ARect.Top + ARect.Height) < 0 || ARect.Width < 0 || ARect.Height < 0) {
this.IWHide();
} else {
this.IWShow();
/*if (this != IWCLForm) {
alert(ARect.Left + "," + ARect.Top + "," + ARect.Width + "," + ARect.Height+ "(" + getComputedStyle(this,"").getPropertyValue("clip") + ")");
}*/
this.style.left = LPoint.X;
this.style.top = LPoint.Y;
if (ns6){
ARect.Width -= (2*this.BorderWidth);
ARect.Height -= (2*this.BorderWidth);
}
if (ARect.Width != this.Rect.Width || ARect.Height != this.Rect.Height) {
var lWidth = ARect.Width;
var lHeight = ARect.Height;
this.style.width = lWidth ;
this.style.height = lHeight;
if (this != IWCLForm && hasClip(this)) {
this.style.clip = "rect(0px," + lWidth + "px," + lHeight + "px,0px)";
}
}
if (ns6){
ARect.Width += (2*this.BorderWidth);
ARect.Height += (2*this.BorderWidth);
}
}
}
function IWCL_Release() {
var i;
this.Anchors = null;
this.OriginalRect = null;
this.Rect = null;
this.SetAlign = null;
this.SetAnchors = null;
this.SetDataSet = null;
this.SetFieldName = null;
this.SetOnChange = null;
this.DoOnChange = null;
this.SetIWCLType = null;
this.SetRect = null;
this.OverrideIWCLType = null;
this.UpdateRects = null;
this.UpdateTopLeft = null;
this.HookEvent = null;
this.IWRelease = null;
for (i = 0; i < this.SetIWCLTypeMehtodList.length; i++) {
this.SetIWCLTypeMehtodList = null;
}
this.SetIWCLTypeMehtodList = null;
for (i = 0; i < this.OwnedComps.length; i++) {
this.OwnedComps.IWRelease();
this.OwnedComps = null;
}
this.OwnedComps = null;
for (i = 0; i < this.IEEventHandlers.length; i++) {
this.IEEventHandlers = null;
}
this.IEEventHandlers = null;
this.Owner = null;
eval(this.VarName + "= null;");
}
function CreateIWCLObject(AOwner, AId, AName) {
var Item = LocateElement(AId);
if(Item != null) {
Item.Owner = AOwner;
Item.BorderWidth = 0;
Item.Align = alNone;
Item.VarName = AName;
Item.Anchors = new CreateAnchors(true, false, true, false);
if( Item.OriginalRect ) {
Item.Rect = CopyRect( Item.OriginalRect );
}
else {
Item.OriginalRect = CreateRect(Item);
Item.Rect = CopyRect(Item.OriginalRect);
}
Item.Visible = true;
Item.IWShow = IWCL_Show;
Item.IWHide = IWCL_Hide;
Item.IWSetVisible = IWCL_SetVisible;
Item.SetAlign = IWCL_SetAlign;
Item.SetAnchors = IWCL_SetAnchors;
Item.SetDataSet = IWCL_SetDataSet;
Item.SetFieldName = IWCL_SetFieldName;
Item.SetOnChange = IWCL_SetOnChange;
Item.DoOnChange = IWCL_OnChange;
Item.SetIWCLType = IWCL_SetIWCLType;
Item.SetIWCLTypeMehtodList = new Array();
Item.SetRect = IWCL_SetRect;
Item.OverrideIWCLType = IWCL_OverrideIWCLType;
Item.UpdateRects = IWCL_UpdateRects;
Item.UpdateTopLeft = IWCL_UpdateTopLeft;
Item.HookEvent = IWCL_HookEvent;
Item.IWRelease = IWCL_Release;
Item.OwnedComps = new Array();
if (Item.Owner != null)
Item.Owner.OwnedComps[Item.Owner.OwnedComps.length] = Item;
Item.IEEventHandlers = new Array();
}
return Item;
}
function InitRects(AFormWidth, AFormHeight) {
if (IWCLForm) {
SetBusy(false);
ReleaseIWCL();
}
IWCLForm = new CreateIWCLForm(AFormWidth, AFormHeight);
}
function CustomAnchors(AAnchors, AAlign)
{
switch (AAlign) {
case alTop: {
return !(AAnchors.Left && AAnchors.Right && AAnchors.Top && !AAnchors.Bottom)
break;
}
case alBottom: {
return !(AAnchors.Left && AAnchors.Right && !AAnchors.Top && AAnchors.Bottom)
break;
}
case alLeft: {
return !(AAnchors.Left && !AAnchors.Right && AAnchors.Top && AAnchors.Bottom)
break;
}
case alRight: {
return !(!AAnchors.Left && AAnchors.Right && AAnchors.Top && AAnchors.Bottom)
break;
}
case alNone: {
return !(AAnchors.Left && !AAnchors.Right && AAnchors.Top && !AAnchors.Bottom)
}
}
}
function DoUpdateRects(AParent, AAlign, AControl) {
var LNewRect;
var LNewHeight;
var LNewWidth;
var LNewTop;
var LNewLeft;
LNewHeight = AControl.Rect.Height;
LNewWidth = AControl.Rect.Width;
LNewTop = AControl.Rect.Top;
LNewLeft = AControl.Rect.Left;
if (AAlign == alNone || CustomAnchors(AControl.Anchors, AAlign)) {
with (AControl.Anchors) {
if (Left && !Right) {
} else if (Left && Right) {
LNewWidth = (AParent.Rect.Width - AParent.OriginalRect.Width) + AControl.OriginalRect.Width;
} else if (!Left && Right) {
LNewLeft = AControl.OriginalRect.Left + AParent.Rect.Width - AParent.OriginalRect.Width;
} else if (!Left && !Right) {
LNewLeft = ((AControl.OriginalRect.Left + AControl.OriginalRect.Width / 2) * AParent.Rect.Width) /
AParent.OriginalRect.Width - (LNewWidth / 2);
}
if (Top && !Bottom) {
} else if (Top && Bottom) {
LNewHeight = AParent.Rect.Height - (AParent.OriginalRect.Height - AControl.OriginalRect.Height);
} else if (!Top && Bottom) {
LNewTop = AControl.OriginalRect.Top + AParent.Rect.Height - AParent.OriginalRect.Height;
} else if (!Top && !Bottom) {
LNewTop = ((AControl.OriginalRect.Top + AControl.OriginalRect.Height / 2) * AParent.Rect.Height) /
AParent.OriginalRect.Height - (LNewHeight / 2);
}
}
}
LNewRect = new Rect(LNewLeft, LNewTop, LNewWidth, LNewHeight);
switch (AControl.Align) {
case alTop: {
LNewRect.Height = LNewHeight;
LNewRect.Top = AParent.ClientRect.Top;
LNewRect.Width = AParent.ClientRect.Width;
AParent.ClientRect.Top = AParent.ClientRect.Top + LNewHeight;
AParent.ClientRect.Height = AParent.ClientRect.Height - LNewHeight;
break;
}
case alBottom: {
LNewRect.Height = LNewHeight;
LNewRect.Top = (AParent.ClientRect.Height + AParent.ClientRect.Top) - LNewRect.Height;
LNewRect.Width = AParent.ClientRect.Width;
AParent.ClientRect.Height = AParent.ClientRect.Height - LNewHeight;
break;
}
case alLeft: {
LNewRect.Width = LNewWidth;
LNewRect.Left = AParent.ClientRect.Left;
LNewRect.Top = AParent.ClientRect.Top;
LNewRect.Height = AParent.ClientRect.Height; // + AParent.OriginalRect.Top;
AParent.ClientRect.Left = AParent.ClientRect.Left + LNewWidth;
AParent.ClientRect.Width = AParent.ClientRect.Width - LNewWidth;
break;
}
case alRight: {
LNewRect.Width = LNewWidth;
LNewRect.Left = (AParent.ClientRect.Left + AParent.ClientRect.Width) - LNewRect.Width;
LNewRect.Top = AParent.ClientRect.Top;
LNewRect.Height = AParent.ClientRect.Height; // + AParent.OriginalRect.Top;
AParent.ClientRect.Width = AParent.ClientRect.Width - LNewWidth;
break;
}
case alClient: {
LNewRect.Top = AParent.ClientRect.Top;
LNewRect.Left = AParent.ClientRect.Left;
LNewRect.Width = AParent.ClientRect.Width;
LNewRect.Height = AParent.ClientRect.Height;
break;
}
}
AControl.SetRect(LNewRect);
AControl.UpdateRects(LNewRect);
}
function AlignListSort(A, B) {
switch (A.Align) {
case alTop: {
return A.Rect.Top - B.Rect.Top;
break;
}
case alBottom: {
return B.Rect.Top - A.Rect.Top;
break;
}
case alLeft: {
return A.Rect.Left - B.Rect.Left;
break;
}
case alRight: {
return B.Rect.Left - A.Rect.Left;
break;
}
}
}
function DoAlign(AParent, AAlign) {
var i;
var AlignList = new Array();
for(i=0; i < AParent.OwnedComps.length; i++) {
if (AParent.OwnedComps.Align == AAlign) {
AlignList[AlignList.length] = AParent.OwnedComps;
}
}
if (AAlign != alNone) {
AlignList.sort(AlignListSort);
}
for (i=0; i < AlignList.length; i++) {
DoUpdateRects(AParent, AAlign, AlignList);
}
}
function IWCL_UpdateTopLeft(ADiff) {
this.SetRect(this.Rect);
}
function FindSubmitElement(AName) {
var j;
if (GSubmitter!=null){
for (j=0; j < GSubmitter.elements.length; j++) {
if (AName == GSubmitter.elements[j].name) {
return GSubmitter.elements[j];
}
}
}
return null;
}
function IWCL_SendNewSize(AWidth, AHeight) {
if (!GSubmitting) {
GSubmitting=true;
var resizeFrame = LocateElement("onresize");
if (resizeFrame != null) {
resizeFrame.src = GResizeURL + "&IW_width=" + AWidth+ "&IW_height=" + AHeight;
}
}
}
function InflateRect(ARect, dWidth, dHeight) {
ARect.Width += 2 * dWidth;
ARect.Height += 2 * dHeight;
}
function IWCL_UpdateRects(ANewRect) {
var i;
var LDiff;
if (this == IWCLForm) {
if (IWCLForm.timerid != null && (this.Rect.Width != ANewRect.Width || this.Rect.Height != ANewRect.Height)) {
clearTimeout(IWCLForm.timerid)
}
if (LocateElement("onresize") != null &&
(this.Rect.Width != ANewRect.Width || this.Rect.Height != ANewRect.Height)) {
this.timerid = setTimeout("IWCL_SendNewSize(" + ANewRect.Width + ", " + ANewRect.Height + ")", GOnResizetimeout);
}
var lWidth = FindSubmitElement("IW_width");
var lHeight = FindSubmitElement("IW_height");
if (lWidth != null && lHeight != null) {
lWidth.value = ANewRect.Width;
lHeight.value = ANewRect.Height;
}
}
this.ClientRect = new Rect(0, 0, ANewRect.Width, ANewRect.Height);
InflateRect(this.ClientRect, -this.BorderWidth, -this.BorderWidth);
this.Rect = CopyRect(ANewRect);
if (this.OwnedComps.length > 0) {
DoAlign(this, alTop);
DoAlign(this, alBottom);
DoAlign(this, alLeft);
DoAlign(this, alRight);
DoAlign(this, alClient);
DoAlign(this, alNone);
}
/*if (this == IWCLForm) {
Status("Size: (" + ANewRect.Width + ", " + ANewRect.Height + "); Scroll size: ("+ document.body.scrollWidth + ", " + document.body.scrollHeight + ");");
}*/
}
function SetBusy(value) {
var item = LocateElement("bussyCursor");
var i;
if (value) {
item.style.width = IWCLForm.Rect.Width;
item.style.height = IWCLForm.Rect.Height;
item.style.visibility = "visible";
item.style.display = "";
IWCLForm.oldCursors = new Array();
IWCLForm.HTMLelements = new Array();
SetCursor(document.body);
} else {
if (IWCLForm && IWCLForm.HTMLelements) {
item.style.visibility = "hidden";
item.style.display = "none";
if( IWCLForm.HTMLelements ){
for (i = 0; i < IWCLForm.HTMLelements.length; i++) {
IWCLForm.HTMLelements.style.cursor = IWCLForm.oldCursors;
}
}
}
}
}
////////////////////////////////////////
IW_JS_IWCOMMON:
var ie4 = (document.all)? true:false;
var ns6 = (document.getElementById)? true && !ie4:false;
var opera_browser = (window.opera)?true:false;
var KHTML_browser = (navigator.vendor == 'KDE') || ( document.childNodes && !document.all && !navigator.taintEnabled );
var _numScrolls = 0;
var _scrolls = new Array();
var _dragObject;
var _thumbLayer; // contains thumb for scrolling
var _barLayer; // contains the scroll bar
var _scrollLayer;// points to the content that is scrolled
var _scrollInt;
var _scrollImgs;
var _nav4 = (navigator.appName.indexOf("Netscape") != -1);
var _loading = false;
var _domain = document.domain;
function fFrame(left,top,width,height,src,baseHREF,borderColor) {
this.top = top;
this.left = left;
this.width = width;
this.height = height;
this.src = src;
this.baseHREF = baseHREF;
this.borderColor = borderColor || "#DDDDDD";
this.inSync = new Array();
this.id = _numScrolls;
this.load = _fLoadSrc;
this.scrollTo = _fScrollTo;
this.scrollBy = _fScrollBy;
this.init = _fInit;
this.setup = _fSetup;
if(src.indexOf("http://") != -1) {
if(src.indexOf(_domain) == -1) {
alert("fframe.js: Sorry, the src you specified is not in this domain.");
return;
}
}
if(_nav4) {
this.isInit = false;
this.isSetup = false;
if(!baseHREF) {
this.baseHREF = GURLBase + "/gfx/sb_";
} else
this.baseHREF = baseHREF;
if(!_scrollImgs) _fLoadImages(this.baseHREF);
this.init();
this.load(false, false);
this.setup();
} else {
document.body.innerHTML +=
'<IFRAME WIDTH='+width+' HEIGHT='+height+' SCROLL=AUTO '+
'NAME="scroll'+_numScrolls+'" '+
'ID="scroll'+_numScrolls+'" '+
'STYLE="position:absolute;'+
'left:'+left+';'+
'top:'+top+';'+
'width:'+width+';'+
'height:'+height+';" '+
'SRC="'+src+'">'+
'</IFRAME>/n';
this.layer = document.all["scroll"+_numScrolls];
this.layer.style.borderColor = this.borderColor;
this.isInit = true;
this.isSetup = true;
}
_numScrolls++;
_scrolls[this.id] = this;
}
function _fLoadImages(baseHREF) {
if(_loading) {
setTimeout(_fLoadImages, 100, baseHREF);
return;
}
_loading = true;
_scrollImgs = new Array(13);
_scrollImgs[0] = new Image(16,16);
_scrollImgs[0].src = baseHREF + "vup.gif";
_scrollImgs[1] = new Image(16,16);
_scrollImgs[1].src = baseHREF + "vup2.gif";
_scrollImgs[2] = new Image(16,16);
_scrollImgs[2].src = baseHREF + "vdown.gif";
_scrollImgs[3] = new Image(16,16);
_scrollImgs[3].src = baseHREF + "vdown2.gif";
_scrollImgs[4] = new Image(16,16);
_scrollImgs[4].src = baseHREF + "hleft.gif";
_scrollImgs[5] = new Image(16,16);
_scrollImgs[5].src = baseHREF + "hleft2.gif";
_scrollImgs[6] = new Image(16,16);
_scrollImgs[6].src = baseHREF + "hright.gif";
_scrollImgs[7] = new Image(16,16);
_scrollImgs[7].src = baseHREF + "hright2.gif";
_scrollImgs[8] = new Image(16,16);
_scrollImgs[8].src = baseHREF + "vbg.gif";
_scrollImgs[9] = new Image(16,17);
_scrollImgs[9].src = baseHREF + "vthumb.gif";
_scrollImgs[10] = new Image(16,16);
_scrollImgs[10].src = baseHREF + "hbg.gif";
_scrollImgs[11] = new Image(17,16);
_scrollImgs[11].src = baseHREF + "hthumb.gif";
_scrollImgs[12] = new Image(15,15);
_scrollImgs[12].src = baseHREF + "null.gif";
_loading = false;
}
function _fInit() { _fRealInit(this); }
function _fRealInit(frame) {
if(_loading) {
setTimeout(_fRealInit, 100, frame);
return;
}
_loading = true;
var borderLayer, contentLayer;
borderLayer = new Layer(frame.width+2);
borderLayer.left = frame.left-1;
borderLayer.top = frame.top-1;
borderLayer.clip.width = frame.width+2;
borderLayer.height = frame.height+2;
borderLayer.clip.height = frame.height+2;
borderLayer.document.bgColor = frame.borderColor;
borderLayer.visibility = "inherit";
frame.borderLayer = borderLayer;
contentLayer = new Layer(frame.width);
contentLayer.captureEvents(Event.ONLOAD);
contentLayer.onLoad = _fOnLoad;
frame.layer = contentLayer;
frame.layer.frame = frame;
frame.vspLayer = new Layer(16);// contains scroll bar
frame.vsuLayer = new Layer(16);// contains up arrow
frame.vsdLayer = new Layer(16);// contains down arrow
frame.vssLayer = new Layer(16);// contains thumb
_fInitComp(frame.vspLayer,
_scrollStartVJump, _scrollEndVJump, 8);
_fInitComp(frame.vsuLayer,
_scrollStartUp, _scrollEndUp, 0);
_fInitComp(frame.vsdLayer,
_scrollStartDown, _scrollEndDown, 2);
_fInitComp(frame.vssLayer,
_scrollStartDrag, _scrollEndDrag, 9);
frame.vssLayer.parLayer = frame.layer;
frame.vssLayer.spLayer = frame.vspLayer;
frame.vspLayer.ssLayer = frame.vssLayer;
frame.vsuLayer.ssLayer = frame.vssLayer;
frame.vsdLayer.ssLayer = frame.vssLayer;
frame.hspLayer = new Layer(frame.width-29);// contains scroll bar
frame.hsuLayer = new Layer(16);// contains left arrow
frame.hsdLayer = new Layer(16);// contains right arrow
frame.hssLayer = new Layer(17);// contains thumb
_fInitComp(frame.hspLayer,
_scrollStartHJump, _scrollEndHJump, 10);
_fInitComp(frame.hsuLayer,
_scrollStartLeft, _scrollEndLeft, 4);
_fInitComp(frame.hsdLayer,
_scrollStartRight, _scrollEndRight, 6);
_fInitComp(frame.hssLayer,
_scrollStartDrag, _scrollEndDrag, 11);
frame.hssLayer.parLayer = frame.layer;
frame.hssLayer.spLayer = frame.hspLayer;
frame.hspLayer.ssLayer = frame.hssLayer;
frame.hsuLayer.ssLayer = frame.hssLayer;
frame.hsdLayer.ssLayer = frame.hssLayer;
frame.nLayer = new Layer(15);// when two scroll bars
_fInitComp(frame.nLayer,
_fDoNothing, _fDoNothing, 12);
frame.isInit = true;
_loading = false;
}
function _fLoadSrc(src, noSetup) { _fRealLoadSrc(this, src, noSetup); }
function _fRealLoadSrc(frame, src, noSetup) {
if(_loading || !frame.isInit) {
setTimeout(_fRealLoadSrc, 100, frame, src);
return;
}
src = src || frame.src;
frame.src = src;
if(_nav4) {
_loading = true;
frame.layer.load(src, frame.width);
if(frame.isSetup) {
frame.layer.vScroll(0, false, true);
frame.layer.hScroll(0, false, true);
}
if(!noSetup) frame.setup();
} else {
frame.layer.src = src;
}
}
function _fSetup() { _fRealSetup(this); }
function _fRealSetup(frame) {
if(!_nav4) return;
if(_loading || !frame.isInit) {
setTimeout(_fRealSetup, 100, frame);
return;
}
frame.hMax = frame.layer.document.width;
frame.vMax = frame.layer.document.height;
if((frame.hMax > frame.width) && !frame.hasHScroll) {
frame.hasHScroll = true;
frame.height -= 16; // make content shorter to fit horiz. scroll bar
frame.load(); // reload to see if hMax changes
return;
} else if((frame.hMax <= frame.width) && frame.hasHScroll) {
frame.hasHScroll = false;
frame.height += 16; // make content taller
frame.load(); // reload to see if hMax changes
return;
}
if((frame.vMax > frame.height) && !frame.hasVScroll) {
frame.hasVScroll = true;
frame.width -= 16; // make content skinnier to fit vert. scroll bar
frame.load(); // reload to see if vMax changes
return;
} else if((frame.vMax <= frame.height) && frame.hasVScroll) {
frame.hasVScroll = false;
frame.width += 16; // make content fatter
frame.load(); // reload to see if hMax changes
return;
}
frame.layer.left = frame.left;
frame.layer.top = frame.top;
frame.layer.clip.top = 0;
frame.layer.clip.left = 0;
frame.layer.clip.width = frame.width;
frame.layer.clip.height = frame.height;
frame.layer.bgColor = "#FFFFFF";
frame.layer.visibility = "show";
frame.layer.oHeight = frame.height;
frame.layer.oWidth = frame.width;
frame.layer.oTop = frame.top;
frame.layer.oLeft = frame.left;
frame.layer.vMax = frame.vMax;
frame.layer.hMax = frame.hMax;
frame.layer.vScroll = _fVScroll;
frame.layer.hScroll = _fHScroll;
frame.vssLayer.v = frame.hasVScroll;
frame.hssLayer.h = frame.hasHScroll;
if(frame.hasVScroll) {
var vspLayerBottom = frame.height-31;
var vspLayerTop = frame.top+16;
var vsdLayerTop = frame.top+frame.height-16;
if(frame.hasVScroll) {
vspLayerBottom++;
vsdLayerTop++;
}
if(frame.baseHREF.indexOf("mac") != -1) {
vspLayerTop--;
vspLayerBottom++;
}
_fMoveComp(frame.vspLayer,
vspLayerTop, frame.left + frame.width, 16, vspLayerBottom);
_fMoveComp(frame.vsuLayer,
frame.top, frame.vspLayer.left, 16, 16);
_fMoveComp(frame.vsdLayer,
vsdLayerTop, frame.vspLayer.left, 16, 16);
_fMoveComp(frame.vssLayer,
vspLayerTop, frame.vspLayer.left, 16, 17);
} else {
frame.vssLayer.visibility = "hide";
frame.vspLayer.visibility = "hide";
frame.vsuLayer.visibility = "hide";
frame.vsdLayer.visibility = "hide";
}
if(frame.hasHScroll) {
var hspLayerWidth = frame.width-31;
var hspLayerLeft = frame.left+16;
var hsdLayerLeft = frame.left + frame.width - 16;
if(frame.hasVScroll) {
hspLayerWidth++;
hsdLayerLeft++;
}
if(frame.baseHREF.indexOf("mac") != -1) {
hspLayerWidth++;
hspLayerLeft--;
}
_fMoveComp(frame.hspLayer,
frame.top+frame.height, hspLayerLeft, hspLayerWidth, 16);
_fMoveComp(frame.hsuLayer,
frame.hspLayer.top, frame.left, 16, 16);
_fMoveComp(frame.hsdLayer,
frame.hspLayer.top, hsdLayerLeft, 16, 16);
_fMoveComp(frame.hssLayer,
frame.hspLayer.top, hspLayerLeft, 17, 16);
} else {
frame.hssLayer.visibility = "hide";
frame.hspLayer.visibility = "hide";
frame.hsuLayer.visibility = "hide";
frame.hsdLayer.visibility = "hide";
}
if(frame.hasHScroll || frame.hasVScroll) {
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = _scrollDrag;
}
if(frame.hasHScroll && frame.hasVScroll)
_fMoveComp(frame.nLayer,
frame.top+frame.height+1, frame.left+frame.width+1, 15, 15);
else
frame.nLayer.visibility = "hide";
frame.isSetup = true;
}
function _fInitComp(layer, onmousedown, onmouseup, bgSrc) {
layer.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
layer.onmousedown = onmousedown;
layer.onmouseup = onmouseup;
layer.background.src = _scrollImgs[bgSrc].src;
}
function _fMoveComp(layer, top, left, width, height) {
layer.top = top;
layer.left = left;
layer.clip.width = width;
layer.clip.height = height;
layer.visibility = "inherit";
}
function _fDoNothing() {}
function _fOnLoad() {
var i, out;
_loading = false;
for(i=0; i<this.document.links.length; i++)
out = this.document.links;
this.captureEvents(Event.ONLOAD | Event.MOUSEDOWN);
this.onLoad = _fOnLoad;
this.onMouseDown = _fOnMouseDown;
}
function _fOnMouseDown(e) {
if(e && this) {
if(e.target && this.frame) {
if(e.target.href) {
if((e.target.href.indexOf("mailto:") == -1) &&
(e.target.hostname == _domain) &&
((e.target.target == null) ||
(e.target.target == "_self"))) { // no TARGET specified
this.frame.load(e.target);
return false;
}
}
}
}
return true;
}
function _fScrollTo(x, y) {
if(!this) return;
if(!_nav4) {
document.frames("scroll"+this.id).self.scrollTo(x,y);
return;
}
if((typeof(x) == "number") && (this.hMax > this.width)) {
var p = x/(this.hMax - this.width);
this.layer.hScroll(p,true);
}
if((typeof == "number") && (this.vMax > this.height)) {
var p = y/(this.vMax - this.height);
this.layer.vScroll(p,true);
}
}
function _fScrollBy(x, y) {
if(!this) return;
if(!_nav4) {
document.frames("scroll"+this.id).self.scrollBy(x,y);
return;
}
if(typeof(x) == "number") {
x += this.layer.clip.left;
var p = x/(this.hMax - this.width);
this.layer.hScroll(p,true);
}
if(typeof == "number") {
y += this.layer.clip.top;
var p = y/(this.vMax - this.height);
this.layer.vScroll(p,true);
}
}
function _fVScroll(p, update, sync) {
if(p > 1) p = 1; if(p < 0) p = 0;
i = p*(this.vMax - this.oHeight);
this.clip.top = i;
this.clip.bottom = this.oHeight+i;
this.clip.height = this.oHeight;
this.top = this.oTop - i;
if(update) {
var frame = this.frame;
frame.vssLayer.top = p*(frame.vspLayer.clip.height -
frame.vssLayer.clip.height) +
frame.vspLayer.top;
}
if(!sync) {
for(f in this.frame.inSync) {
f = this.frame.inSync[f];
if(f.hMax > f.width) {
p = i/(f.vMax - f.height);
f.layer.vScroll(p, true, true);
}
}
}
}
function _fHScroll(p, update, sync) {
if(p > 1) p = 1; else if(p < 0) p = 0;
i = p*(this.hMax - this.oWidth);
this.clip.left = i;
this.clip.right = this.oWidth+i;
this.clip.width = this.oWidth;
this.left = this.oLeft - i;
if(update) {
var frame = this.frame;
frame.hssLayer.left = p*(frame.hspLayer.clip.width -
frame.hssLayer.clip.width) +
frame.hspLayer.left;
}
if(!sync) {
for(f in this.frame.inSync) {
f = this.frame.inSync[f];
if(f.hMax > f.width) {
p = i/(f.hMax - f.width);
f.layer.hScroll(p, true, true);
}
}
}
}
function _scrollStartDown(e) {
_lastScrolledId = this.ssLayer.parLayer.frame.id;
_thumbLayer = this.ssLayer;
_barLayer = this.ssLayer.spLayer;
_scrollLayer = this.ssLayer.parLayer;
this.background.src = _scrollImgs[3].src;
_scrollDown();
_scrollInt = setInterval("_scrollDown();",20);
return false;
}
function _scrollDown() {
p = (_scrollLayer.clip.top+15) /
(_scrollLayer.vMax - _scrollLayer.oHeight);
_scrollLayer.vScroll(p, true);
}
function _scrollEndDown(e) {
this.background.src = _scrollImgs[2].src;
clearInterval(_scrollInt);
return false;
}
function _scrollStartUp(e) {
_lastScrolledId = this.ssLayer.parLayer.frame.id;
_thumbLayer = this.ssLayer;
_barLayer = this.ssLayer.spLayer;
_scrollLayer = this.ssLayer.parLayer;
this.background.src = _scrollImgs[1].src;
_scrollUp();
_scrollInt = setInterval("_scrollUp();",20);
return false;
}
function _scrollUp() {
p = (_scrollLayer.clip.top-15) /
(_scrollLayer.vMax - _scrollLayer.oHeight);
_scrollLayer.vScroll(p, true);
}
function _scrollEndUp(e) {
this.background.src = _scrollImgs[0].src;
clearInterval(_scrollInt);
return false;
}
function _scrollStartRight(e) {
_lastScrolledId = this.ssLayer.parLayer.frame.id;
_thumbLayer = this.ssLayer;
_barLayer = this.ssLayer.spLayer;
_scrollLayer = this.ssLayer.parLayer;
this.background.src = _scrollImgs[7].src;
_scrollRight();
_scrollInt = setInterval("_scrollRight();",20);
return false;
}
function _scrollRight() {
p = (_scrollLayer.clip.left+15) /
(_scrollLayer.hMax - _scrollLayer.oWidth);
_scrollLayer.hScroll(p, true);
}
function _scrollEndRight(e) {
this.background.src = _scrollImgs[6].src;
clearInterval(_scrollInt);
return false;
}
function _scrollStartLeft(e) {
_lastScrolledId = this.ssLayer.parLayer.frame.id;
_thumbLayer = this.ssLayer;
_barLayer = this.ssLayer.spLayer;
_scrollLayer = this.ssLayer.parLayer;
this.background.src = _scrollImgs[5].src;
_scrollLeft();
_scrollInt = setInterval("_scrollLeft();",20);
return false;
}
function _scrollLeft() {
p = (_scrollLayer.clip.left-15) /
(_scrollLayer.hMax - _scrollLayer.oWidth);
_scrollLayer.hScroll(p, true);
}
function _scrollEndLeft(e) {
this.background.src = _scrollImgs[4].src;
clearInterval(_scrollInt);
return false;
}
function _scrollStartVJump(e) {
_lastScrolledId = this.ssLayer.parLayer.frame.id;
_thumbLayer = this.ssLayer;
_barLayer = this.ssLayer.spLayer;
_scrollLayer = this.ssLayer.parLayer;
if(e.pageY > this.ssLayer.top)
dir = "1";
else dir = "-1";
_scrollVJump(dir,-1);
_scrollInt = setInterval("_scrollVJump("+dir+","+e.pageY+");", 50);
return false;
}
function _scrollVJump(dir,py) {
p = (_scrollLayer.clip.top+dir*_scrollLayer.clip.height)/
(_scrollLayer.vMax - _scrollLayer.oHeight);
if(p > 1) p = 1; else if(p < 0) p = 0;
t = p*(_barLayer.clip.height - _thumbLayer.clip.height) +
_barLayer.top;
if((dir == 1) && (py != -1) && (t > py)) return;
if((dir == -1) && (py != -1) && (t < (py-17))) return;
_scrollLayer.vScroll(p);
_thumbLayer.top = t;
}
function _scrollEndVJump() {
clearInterval(_scrollInt);
}
function _scrollStartHJump(e) {
_lastScrolledId = this.ssLayer.parLayer.frame.id;
_thumbLayer = this.ssLayer;
_barLayer = this.ssLayer.spLayer;
_scrollLayer = this.ssLayer.parLayer;
if(e.pageX > this.ssLayer.left)
dir = "1";
else dir = "-1";
_scrollHJump(dir,-1);
_scrollInt = setInterval("_scrollHJump("+dir+","+e.pageX+");", 50);
return false;
}
function _scrollHJump(dir,px) {
p = (_scrollLayer.clip.left+dir*_scrollLayer.clip.width)/
(_scrollLayer.hMax - _scrollLayer.oWidth);
if(p > 1) p = 1; if(p < 0) p = 0;
t = p*(_barLayer.clip.width - _thumbLayer.clip.width) +
_barLayer.left;
if((dir == 1) && (px != -1) && (t > px)) return;
if((dir == -1) && (px != -1) && (t < (px-17))) return;
_scrollLayer.hScroll(p);
_thumbLayer.left = t;
}
function _scrollEndHJump() {
clearInterval(_scrollInt);
}
function _scrollStartDrag(e) {
if(this.parLayer) {
_lastScrolledId = this.parLayer.frame.id;
_dragObject = this;
_dragObject.oTop = _dragObject.top;
_dragObject.oLeft = _dragObject.left;
_dragObject.hOffset = e.pageX - _dragObject.oLeft;
_dragObject.vOffset = e.pageY - _dragObject.oTop;
return false;
}
return true;
}
function _scrollDrag(e) {
if(!_dragObject) return true;
var pY = e.pageY;
var pX = e.pageX;
if(_dragObject.v) {
pY -= _dragObject.vOffset;
if((pX > (_dragObject.left+54)) ||
(pX < (_dragObject.left-38))) {
pY = _dragObject.oTop;
}
if(pY < _dragObject.spLayer.top)
pY = _dragObject.spLayer.top;
if(pY > _dragObject.spLayer.clip.height +
_dragObject.spLayer.top -
_dragObject.clip.height)
pY = _dragObject.spLayer.clip.height +
_dragObject.spLayer.top -
_dragObject.clip.height;
_dragObject.top = pY;
percentScroll = (pY - _dragObject.spLayer.top) /
(_dragObject.spLayer.clip.height -
_dragObject.clip.height);
_dragObject.parLayer.vScroll(percentScroll);
} else {
pX -= _dragObject.hOffset;
if((pY > (_dragObject.top+54)) ||
(pY < (_dragObject.top-38))) {
pX = _dragObject.oLeft;
}
if(pX < _dragObject.spLayer.left)
pX = _dragObject.spLayer.left;
if(pX > _dragObject.spLayer.clip.width +
_dragObject.spLayer.left -
_dragObject.clip.width)
pX = _dragObject.spLayer.clip.width +
_dragObject.spLayer.left -
_dragObject.clip.width;
_dragObject.left = pX;
percentScroll = (pX - _dragObject.spLayer.left) /
(_dragObject.spLayer.clip.width -
_dragObject.clip.width);
_dragObject.parLayer.hScroll(percentScroll);
}
return false;
}
function _scrollEndDrag() {
_dragObject = false;
return false;
}
var GSubmitting = false;
function IWOnError(AMsg, AUrl, ALineNo) {
GSubmitting = false;
return false;
}
window.onError = IWOnError;
function ProcessElement(obj) {
var i=0;
if (obj.name != null && obj.form && obj.form.name != "HiddenSubmitForm") {
if (obj.name.length > 0) {
dobj=GSubmitter.elements[obj.name];
if ((dobj != null && obj != dobj) || obj.type=="file") {
if (obj.type) {
if (obj.type=="select-one") {
if (obj.selectedIndex!=-1) { dobj.value=obj.options[obj.selectedIndex].value; }
else { dobj.value=-1 }
}
else
if (obj.type=="select-multiple") {
if (obj.selectedIndex!=-1) {
dobj.value=dobj.value=obj.options[obj.selectedIndex].value+',';
for(i=0;i<obj.length;i++) {
if (obj.options.selected==true) {
dobj.value=dobj.value+obj.options.value+",";
}
}
}
else { dobj.value=-1 }
}
else
if (obj.type=="checkbox") { dobj.value = obj.checked ? "on" : "off"; }
else
if (obj.type=="radio") {
if (obj.checked) { dobj.value=obj.value; }
}
else
/*if (obj.type=="file") {
GSubmitter.elements[GSubmitter.elements.length] = obj;
} else*/
if (obj.type != "button") { dobj.value=obj.value; }
}
}
}
}
}
function LoadURL(URL) {
location.replace(URL);
return true;
}
function NewWindow(URL, Name, Options) {
w=window.open(URL, Name, Options);
return true;
}
function Status(msg) {
window.status=msg;
return true;
}
function CoolCheckBoxToggle(Name, Image, Submit) {
InitSubmitter();
var df=FindElem(Name);
if (df.value == "On") {
df.value = "Off";
Image.src = GImageCache_CoolCheckBox_False.src;
} else {
df.value = "On";
Image.src = GImageCache_CoolCheckBox_True.src;
}
if (Submit) {SubmitClick(Name, '', false);}
}
var ValidClick = true;
function SubmitClickConfirm(objname, param, ADoValidation, AConfirmation) {
if (ValidClick) {
if (AConfirmation.length == 0) {
if (GActivateLock) ActivateLock();
return SubmitClick(objname, param, ADoValidation);
} else if (!GSubmitting) {
if (window.confirm(AConfirmation)) {
if (GActivateLock) ActivateLock();
return SubmitClick(objname, param, ADoValidation);
} else {
return true;
}
} else {
return false;
}
}
}
function SubmitClick(objname, param, ADoValidation) {
if (GSubmitting == false) {
GSubmitting = true;
var i=0;
var j=0;
var AItem;
InitSubmitter();
if (GSubmitter != null) {
for (j=0; j<GSubmitter.elements.length; j++) {
AItem = LocateInputElement(GSubmitter.elements[j].name, ProcessElement);
/*if (AItem != null) {
ProcessElement(AItem);
}*/
}
}
if (ADoValidation==true) {
if (Validate()==false) {
GSubmitting = false;
return true;
}
}
SetBusy(true);
GSubmitter.elements.IW_Action.value=objname;
GSubmitter.elements.IW_ActionParam.value=param;
GSubmitter.submit();
}
return true;
}
function layerWrite(id, nestref, text) {
if (ns6) {
document.getElementById(id).innerHTML = text;
} else if (ie4) {
document.all[id].innerHTML = text;
}
}
function layerWriteAppend(id, nestref, text) {
if (ns6) {
document.getElementById(id).innerHTML += text;
} else if (ie4) {
document.all[id].innerHTML += text;
}
}
function CheckReturnKey(AKey, AName, AValidation) {
if (AKey == 13) {
return SubmitClick(AName, '', AValidation);
} else {
return true;
}
}
/*function AddHistoryToList(ALocation) {
if(!top.IWHistoryList) {
top.IWHistoryList = new Array();
}
if (IsBackButtonAction(ALocation)) {
top.IWHistoryList = top.IWHistoryList.slice(0, HistoryIndex(ALocation));
} else {
top.IWHistoryList[top.IWHistoryList.length] = ALocation;
}
}
function HistoryIndex(ALication) {
for (i = 0; i < top.IWHistoryList.length; i++) {
if (top.IWHistoryList == ALocation) {
return i;
}
}
return -1;
}
function IsBackButtonAction(ALocation) {
if (top.IWHistoryList) {
return (HistoryIndex(ALocation) > -1);
} else {
return false;
}
}*/
/* This function has been left as proxy
in case it's used by third-parties.
Changed on 19 Feb 2004 - Hadi
*/
function FindFocus(objname)
{
return FindElem(objname);
}
限于篇幅,以下我只给出名称:IW_JS_IWMENU,IW_JS_IWTREE,IW_JS_TMSMENU,.........
太多了。