|
From: <sv...@de...> - 2005-06-21 00:56:28
|
Author: marcelo Date: 2005-06-20 20:56:29 -0400 (Mon, 20 Jun 2005) New Revision: 1374 Modified: humano2/trunk/web/builder/site/js/fn_formsmng.js humano2/trunk/web/builder/site/js/form.js humano2/trunk/web/builder/site/js/iframe.js humano2/trunk/web/builder/site/js/modelfuncs.js humano2/trunk/web/builder/site/js/tabs.js Log: * Fixed: Several .js files were saved in windows format. This was=20 causing problems with Mono. They were not being read properly and thus=20 javascript error would occur. The files were converted to unix format. Modified: humano2/trunk/web/builder/site/js/fn_formsmng.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/js/fn_formsmng.js 2005-06-21 00:37:17 = UTC (rev 1373) +++ humano2/trunk/web/builder/site/js/fn_formsmng.js 2005-06-21 00:56:29 = UTC (rev 1374) @@ -1,106 +1,106 @@ -// -// The Humano2 Business solution. -// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// $Id$ =20 - -//**********************************************************************= **************** -function loadClass(ClassValue,ClassName) -{ - //alert(ClassValue + " " + ClassName); - iFrame =3D document.getElementById("FrameTempLoad"); - iFrame.style.visibility=3D'hidden'; - if(ClassValue =3D=3D 0) - { - return; - } - document.formulario.ClassName.value =3D ClassName; - document.formulario.ClassId.value =3D ClassValue; - document.formulario.submit(); - //alert(document.formulario.ClassName.value + " "=20 - //+ document.formulario.ClassId.value); -} - -//**********************************************************************= **************** -function mostrar() -{ - iFrame =3D document.getElementById("FrameTempLoad"); - iFrame.style.width=3D '150px'; - iFrame.style.height=3D '100px'; - iFrame.style.visibility =3D 'visible'; - iFrame.src=3D"combobox_type_entity.aspx"; - //document.all.FrameTempLoad.src=3D"combobox_type_entity.aspx"; // ?= typeent=3D' + strtype_Entity + '&typeEntityFrom=3D' + typeEntityFrom + '&= IntView=3D' + vista + strelem + '"' -} -=20 -//**********************************************************************= ****************=20 -function fn_saveData() -{ - var frm =3D document.formulario; - var strError =3D ""; - =20 - if (frm.formName.value =3D=3D "") - { - strError +=3D "Error, you must insert a name.\n"; - } - =20 - frm.LstAttrib.value =3D ""; - =20 - for( var i =3D 0;i < rightColumn.fSortedList.Length();i++) - { - if(rightColumn.fSortedList.GetItem(i).value !=3D "") - { - frm.LstAttrib.value +=3D rightColumn.fSortedList.GetItem(i).= value; - if(i < rightColumn.fSortedList.Length() -1) - frm.LstAttrib.value +=3D ","; - } - } - =20 - if (strError =3D=3D "") - { - if (frm.opaction.value =3D=3D 0) - { - frm.opaction.value=3D1; - } - frm.submit(); - }else{ - alert(strError); - } -} - -//**********************************************************************= ****************=20 -function fn_deleteData() -{ - //var frm =3D document.formulario; - //var strError =3D ""; - - //alert("Antes :: " + document.formulario.opAction.value); - document.formulario.opaction.setAttribute("value",3);// =3D 3; //val= ue",3); - =20 - //alert("Despues :: " + document.formulario.opaction.value); - //document.formulario.submit(); - =20 - //var folderId =3D document.formulario.folderid.value; - //var url[] =3D String(document.location).split("?"); - =20 - //alert(document.formulario.opaction.value); - //document.location =3D "foldermanagement.aspx?opaction=3D3&folderId= =3D" + folderId;=20 - document.formulario.submit(); -} - -//**********************************************************************= ****************=20 -function fn_setFolderParentId(parentid) -{ - var frm =3D document.formulario; - //alert(parentid); - =20 - if(parentid !=3D null || parentid > 0) - { - frm.folderparentid.value =3D parentid; - } - //alert(frm.folderparent.options[pos].value); =20 -} =20 +// +// The Humano2 Business solution. +// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// $Id$ =20 + +//**********************************************************************= **************** +function loadClass(ClassValue,ClassName) +{ + //alert(ClassValue + " " + ClassName); + iFrame =3D document.getElementById("FrameTempLoad"); + iFrame.style.visibility=3D'hidden'; + if(ClassValue =3D=3D 0) + { + return; + } + document.formulario.ClassName.value =3D ClassName; + document.formulario.ClassId.value =3D ClassValue; + document.formulario.submit(); + //alert(document.formulario.ClassName.value + " "=20 + //+ document.formulario.ClassId.value); +} + +//**********************************************************************= **************** +function mostrar() +{ + iFrame =3D document.getElementById("FrameTempLoad"); + iFrame.style.width=3D '150px'; + iFrame.style.height=3D '100px'; + iFrame.style.visibility =3D 'visible'; + iFrame.src=3D"combobox_type_entity.aspx"; + //document.all.FrameTempLoad.src=3D"combobox_type_entity.aspx"; // ?= typeent=3D' + strtype_Entity + '&typeEntityFrom=3D' + typeEntityFrom + '&= IntView=3D' + vista + strelem + '"' +} +=20 +//**********************************************************************= ****************=20 +function fn_saveData() +{ + var frm =3D document.formulario; + var strError =3D ""; + =20 + if (frm.formName.value =3D=3D "") + { + strError +=3D "Error, you must insert a name.\n"; + } + =20 + frm.LstAttrib.value =3D ""; + =20 + for( var i =3D 0;i < rightColumn.fSortedList.Length();i++) + { + if(rightColumn.fSortedList.GetItem(i).value !=3D "") + { + frm.LstAttrib.value +=3D rightColumn.fSortedList.GetItem(i).= value; + if(i < rightColumn.fSortedList.Length() -1) + frm.LstAttrib.value +=3D ","; + } + } + =20 + if (strError =3D=3D "") + { + if (frm.opaction.value =3D=3D 0) + { + frm.opaction.value=3D1; + } + frm.submit(); + }else{ + alert(strError); + } +} + +//**********************************************************************= ****************=20 +function fn_deleteData() +{ + //var frm =3D document.formulario; + //var strError =3D ""; + + //alert("Antes :: " + document.formulario.opAction.value); + document.formulario.opaction.setAttribute("value",3);// =3D 3; //val= ue",3); + =20 + //alert("Despues :: " + document.formulario.opaction.value); + //document.formulario.submit(); + =20 + //var folderId =3D document.formulario.folderid.value; + //var url[] =3D String(document.location).split("?"); + =20 + //alert(document.formulario.opaction.value); + //document.location =3D "foldermanagement.aspx?opaction=3D3&folderId= =3D" + folderId;=20 + document.formulario.submit(); +} + +//**********************************************************************= ****************=20 +function fn_setFolderParentId(parentid) +{ + var frm =3D document.formulario; + //alert(parentid); + =20 + if(parentid !=3D null || parentid > 0) + { + frm.folderparentid.value =3D parentid; + } + //alert(frm.folderparent.options[pos].value); =20 +} =20 Modified: humano2/trunk/web/builder/site/js/form.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/js/form.js 2005-06-21 00:37:17 UTC (re= v 1373) +++ humano2/trunk/web/builder/site/js/form.js 2005-06-21 00:56:29 UTC (re= v 1374) @@ -1,165 +1,165 @@ -/* -// -// The Humano2 Business solution. -// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. =20 -// -// $Id$=20 -*/ - -////////////////////////////////////////////// Form Class //////////////= /////////////////////////////////////////////// -function Form(classId,type,infosToSubmit)=20 -{ - //Fields - this.type =3D type; - this.classId =3D classId; - this.infosToSubmit =3D infosToSubmit; - =20 - //Methods - this.UpdateSubmitAll =3D FormUpdateSubmitAll; - this.Delete =3D FormDelete; -} - -function FormUpdateSubmitAll() -{ - //Get the ReportName - var name =3D this.infosToSubmit.divName.value; //GetNodeByTagNameAnd= AttName("input","reportNameInput")[0]; - //var reportName =3D reportNameInput.value; - =20 - if(name =3D=3D "") - { - alert("You must enter the name."); =20 - return false; - } - =20 - //alert("reportName:" + reportName); - =20 - //Get the classId - var classId =3D this.classId; - //alert("classId:" + classId); - =20 - //Build the columnstr string - //alert(rightColumn); - var i; - var sortedList =3D this.infosToSubmit.rightColumn.fSortedList; - //alert(sortedList.Length()); - var columnsStr =3D ""; - for(i=3D0;i<sortedList.Length();i++) - { - columnsStr +=3D sortedList.GetItem(i).GetValue() + ","; - } - =20 - //Remove the last coma - columnsStr =3D columnsStr;=20 - columnsStr =3D columnsStr.substring(0,columnsStr.length-1); = =20 - //alert("columnsStr:" + columnsStr); - =20 - //Now the sort - //alert("sort SelfRefName:" + sort.GetSelfRefName()); - if(this.type =3D=3D 'REPORT' || this.type =3D=3D 'VIEW') - { - var orderStr =3D this.infosToSubmit.sort.ReturnValues();=20 - } - //alert("orderStr: " + orderStr); - =20 - //The filter - //alert("filter SelfRefName:" + filter.GetSelfRefName()); - if(this.type =3D=3D 'REPORT' || this.type =3D=3D 'VIEW') - { - var whereStr =3D this.infosToSubmit.filter.ReturnValues(); - } - //alert("whereStr: " + whereStr); - =20 - if(this.type =3D=3D 'REPORT') - { - var persoColumnsStr =3D this.infosToSubmit.persoColumns.ReturnVa= lues(); - //var havingsStr =3D this.infosToSubmit.havings.ReturnValues(); = Commented due to bug#123 - var havingsStr =3D ""; - } - =20 - //Update the submit all TD - var divSubmitAll =3D this.infosToSubmit.divSubmitAll; - //alert(divSubmitAll); - divSubmitAll.innerHTML +=3D=20 - "<input type=3D\"hidden\" name=3D\"sendCreateUpdate\" value=3D\"= true\"></input>" - +"<input type=3D\"hidden\" name=3D\"sendClassId\" value=3D\""+ c= lassId +"\"></input>" - +"<input type=3D\"hidden\" name=3D\"sendName\" value=3D\"" + nam= e + "\"></input>" - +"<input type=3D\"hidden\" name=3D\"sendColumnsStr\" value=3D\""= + columnsStr + "\"></input>" - =20 - if(this.type =3D=3D 'REPORT' || this.type=3D=3D'VIEW') - { - divSubmitAll.innerHTML +=3D - "<input type=3D\"hidden\" name=3D\"sendOrderStr\" value=3D\"= " + orderStr + "\"></input>" - +"<input type=3D\"hidden\" name=3D\"sendWhereStr\" value=3D\= "" + whereStr + "\"></input>"; - } - =20 - if (this.type =3D=3D 'REPORT') - { - divSubmitAll.innerHTML +=3D=20 - "<input type=3D\"hidden\" name=3D\"sendPersoColumnsStr\" val= ue=3D\"" + persoColumnsStr + "\"></input>" - +"<input type=3D\"hidden\" name=3D\"sendHavingsStr\" value=3D= \"" + havingsStr + "\"></input>"; - } =20 - =20 - var sendType =3D document.getElementById("formType").value; - //alert("sendType:" + sendType); - if (this.type =3D=3D 'FORM') - { - divSubmitAll.innerHTML +=3D=20 - "<input type=3D\"hidden\" name=3D\"sendType\" value=3D\"" + = sendType + "\"></input>"; - } =20 - =20 - //alert(divSubmitAll.innerHTML); - return true; -} - -function FormDelete() -{ - var msg =3D "Are you sure you want to delete the "; - switch(this.type) - { - case 'VIEW': =20 - msg +=3D "view"; - break; - case 'REPORT': - msg +=3D "report"; =20 - break; - case 'FORM': - msg +=3D "form"; - break; - } - msg +=3D"?"; - =20 - if (confirm(msg)) - { - var id =3D this.infosToSubmit.id; - var name; - switch(this.type) - { - case 'VIEW': =20 - name =3D "viewId"; - break; - case 'REPORT': - name =3D "reportId"; =20 - break; - case 'FORM': - name =3D "formId"; - break; - } - var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll= ")[0]; - //alert(divSubmitAll); - divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D\"d= elete\" value=3D\"true\"></input>"; - divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D\""= + name + "\" value=3D\"" + id + "\"></input>"; - return true; =20 - } - else - { - return false; =20 - } -} - - -////////////////////////////////////////////// END: Form Class /////////= //////////////////////////////////////////////// +/* +// +// The Humano2 Business solution. +// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. =20 +// +// $Id$=20 +*/ + +////////////////////////////////////////////// Form Class //////////////= /////////////////////////////////////////////// +function Form(classId,type,infosToSubmit)=20 +{ + //Fields + this.type =3D type; + this.classId =3D classId; + this.infosToSubmit =3D infosToSubmit; + =20 + //Methods + this.UpdateSubmitAll =3D FormUpdateSubmitAll; + this.Delete =3D FormDelete; +} + +function FormUpdateSubmitAll() +{ + //Get the ReportName + var name =3D this.infosToSubmit.divName.value; //GetNodeByTagNameAnd= AttName("input","reportNameInput")[0]; + //var reportName =3D reportNameInput.value; + =20 + if(name =3D=3D "") + { + alert("You must enter the name."); =20 + return false; + } + =20 + //alert("reportName:" + reportName); + =20 + //Get the classId + var classId =3D this.classId; + //alert("classId:" + classId); + =20 + //Build the columnstr string + //alert(rightColumn); + var i; + var sortedList =3D this.infosToSubmit.rightColumn.fSortedList; + //alert(sortedList.Length()); + var columnsStr =3D ""; + for(i=3D0;i<sortedList.Length();i++) + { + columnsStr +=3D sortedList.GetItem(i).GetValue() + ","; + } + =20 + //Remove the last coma + columnsStr =3D columnsStr;=20 + columnsStr =3D columnsStr.substring(0,columnsStr.length-1); = =20 + //alert("columnsStr:" + columnsStr); + =20 + //Now the sort + //alert("sort SelfRefName:" + sort.GetSelfRefName()); + if(this.type =3D=3D 'REPORT' || this.type =3D=3D 'VIEW') + { + var orderStr =3D this.infosToSubmit.sort.ReturnValues();=20 + } + //alert("orderStr: " + orderStr); + =20 + //The filter + //alert("filter SelfRefName:" + filter.GetSelfRefName()); + if(this.type =3D=3D 'REPORT' || this.type =3D=3D 'VIEW') + { + var whereStr =3D this.infosToSubmit.filter.ReturnValues(); + } + //alert("whereStr: " + whereStr); + =20 + if(this.type =3D=3D 'REPORT') + { + var persoColumnsStr =3D this.infosToSubmit.persoColumns.ReturnVa= lues(); + //var havingsStr =3D this.infosToSubmit.havings.ReturnValues(); = Commented due to bug#123 + var havingsStr =3D ""; + } + =20 + //Update the submit all TD + var divSubmitAll =3D this.infosToSubmit.divSubmitAll; + //alert(divSubmitAll); + divSubmitAll.innerHTML +=3D=20 + "<input type=3D\"hidden\" name=3D\"sendCreateUpdate\" value=3D\"= true\"></input>" + +"<input type=3D\"hidden\" name=3D\"sendClassId\" value=3D\""+ c= lassId +"\"></input>" + +"<input type=3D\"hidden\" name=3D\"sendName\" value=3D\"" + nam= e + "\"></input>" + +"<input type=3D\"hidden\" name=3D\"sendColumnsStr\" value=3D\""= + columnsStr + "\"></input>" + =20 + if(this.type =3D=3D 'REPORT' || this.type=3D=3D'VIEW') + { + divSubmitAll.innerHTML +=3D + "<input type=3D\"hidden\" name=3D\"sendOrderStr\" value=3D\"= " + orderStr + "\"></input>" + +"<input type=3D\"hidden\" name=3D\"sendWhereStr\" value=3D\= "" + whereStr + "\"></input>"; + } + =20 + if (this.type =3D=3D 'REPORT') + { + divSubmitAll.innerHTML +=3D=20 + "<input type=3D\"hidden\" name=3D\"sendPersoColumnsStr\" val= ue=3D\"" + persoColumnsStr + "\"></input>" + +"<input type=3D\"hidden\" name=3D\"sendHavingsStr\" value=3D= \"" + havingsStr + "\"></input>"; + } =20 + =20 + var sendType =3D document.getElementById("formType").value; + //alert("sendType:" + sendType); + if (this.type =3D=3D 'FORM') + { + divSubmitAll.innerHTML +=3D=20 + "<input type=3D\"hidden\" name=3D\"sendType\" value=3D\"" + = sendType + "\"></input>"; + } =20 + =20 + //alert(divSubmitAll.innerHTML); + return true; +} + +function FormDelete() +{ + var msg =3D "Are you sure you want to delete the "; + switch(this.type) + { + case 'VIEW': =20 + msg +=3D "view"; + break; + case 'REPORT': + msg +=3D "report"; =20 + break; + case 'FORM': + msg +=3D "form"; + break; + } + msg +=3D"?"; + =20 + if (confirm(msg)) + { + var id =3D this.infosToSubmit.id; + var name; + switch(this.type) + { + case 'VIEW': =20 + name =3D "viewId"; + break; + case 'REPORT': + name =3D "reportId"; =20 + break; + case 'FORM': + name =3D "formId"; + break; + } + var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll= ")[0]; + //alert(divSubmitAll); + divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D\"d= elete\" value=3D\"true\"></input>"; + divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D\""= + name + "\" value=3D\"" + id + "\"></input>"; + return true; =20 + } + else + { + return false; =20 + } +} + + +////////////////////////////////////////////// END: Form Class /////////= //////////////////////////////////////////////// Modified: humano2/trunk/web/builder/site/js/iframe.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/js/iframe.js 2005-06-21 00:37:17 UTC (= rev 1373) +++ humano2/trunk/web/builder/site/js/iframe.js 2005-06-21 00:56:29 UTC (= rev 1374) @@ -1,80 +1,80 @@ -/* -// The Humano2 Business solution. -// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. =20 -// -// $Id: iframe.js 1004 2005-05-11 04:29:46Z marcelo $ -*/ -var x,y -var isIE =3D document.all?true:false; -if (!isIE) document.captureEvents(Event.MOUSEMOVE); -document.onmousemove =3D getMousePosition; - -function currentTime(){ - var now =3D new Date(); - return now.getTime(); -} - -function toggleIFrame(nframe,urlToLoad) { - var f =3D document.getElementById(nframe); // The iframe object - urlToLoad +=3D "¤tTime=3D" + currentTime(); - if(f.style.visibility =3D=3D "hidden") { - =20 - if(f.src !=3D urlToLoad) { // If the frame was not loaded yet, load it= again. - f.src =3D urlToLoad; - } =20 - f.style.visibility =3D "visible";=09 - =09 - } else { - f.style.visibility =3D "hidden";=09 - } -=09 - f.style.left=3Dx - 180 - f.style.top =3Dy + 10 - //window.open(urlToLoad); -} - -function toggleIFrameWithFilter(nframe,urlToLoad,filter) {=09 - var arr =3D filter.split(","); // The elemens of the filter. - var n =3D arr[1]; // The name of the element to add. - var v =3D ''; - if (typeof n !=3D 'undefined') { - var elemName =3D "txt_" + attNameDict[n]; - if (typeof document.Form1.elements[elemName] =3D=3D 'undefined')=20 - var elemName =3D attNameDict[n]; - v =3D document.Form1.elements[elemName].value; - urlToLoad +=3D "&" + n + "=3D" + v; - } -=09 - toggleIFrame(nframe,urlToLoad); -} - -function getMousePosition2(e) { -} - -function getMousePosition(e) { - if (!isIE) { - InttxtX =3D window.pageXOffset; - InttxtY =3D window.pageYOffset; - _x =3D e.pageX; - _y =3D e.pageY; - } - if (isIE) { - _x =3D event.clientX + (InttxtX =3D document.body.scrollLeft); - _y =3D event.clientY + (InttxtX =3D document.body.scrollTop); - } - x=3D_x - y=3D_y - =20 - return true; -} - - -function hideIFrame(nframe) { - var f =3D document.getElementById(nframe); // The iframe object - f.style.visibility =3D "hidden";=09 -} \ No newline at end of file +/* +// The Humano2 Business solution. +// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. =20 +// +// $Id: iframe.js 1004 2005-05-11 04:29:46Z marcelo $ +*/ +var x,y +var isIE =3D document.all?true:false; +if (!isIE) document.captureEvents(Event.MOUSEMOVE); +document.onmousemove =3D getMousePosition; + +function currentTime(){ + var now =3D new Date(); + return now.getTime(); +} + +function toggleIFrame(nframe,urlToLoad) { + var f =3D document.getElementById(nframe); // The iframe object + urlToLoad +=3D "¤tTime=3D" + currentTime(); + if(f.style.visibility =3D=3D "hidden") { + =20 + if(f.src !=3D urlToLoad) { // If the frame was not loaded yet, load it= again. + f.src =3D urlToLoad; + } =20 + f.style.visibility =3D "visible";=09 + =09 + } else { + f.style.visibility =3D "hidden";=09 + } +=09 + f.style.left=3Dx - 180 + f.style.top =3Dy + 10 + //window.open(urlToLoad); +} + +function toggleIFrameWithFilter(nframe,urlToLoad,filter) {=09 + var arr =3D filter.split(","); // The elemens of the filter. + var n =3D arr[1]; // The name of the element to add. + var v =3D ''; + if (typeof n !=3D 'undefined') { + var elemName =3D "txt_" + attNameDict[n]; + if (typeof document.Form1.elements[elemName] =3D=3D 'undefined')=20 + var elemName =3D attNameDict[n]; + v =3D document.Form1.elements[elemName].value; + urlToLoad +=3D "&" + n + "=3D" + v; + } +=09 + toggleIFrame(nframe,urlToLoad); +} + +function getMousePosition2(e) { +} + +function getMousePosition(e) { + if (!isIE) { + InttxtX =3D window.pageXOffset; + InttxtY =3D window.pageYOffset; + _x =3D e.pageX; + _y =3D e.pageY; + } + if (isIE) { + _x =3D event.clientX + (InttxtX =3D document.body.scrollLeft); + _y =3D event.clientY + (InttxtX =3D document.body.scrollTop); + } + x=3D_x + y=3D_y + =20 + return true; +} + + +function hideIFrame(nframe) { + var f =3D document.getElementById(nframe); // The iframe object + f.style.visibility =3D "hidden";=09 +} Modified: humano2/trunk/web/builder/site/js/modelfuncs.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/js/modelfuncs.js 2005-06-21 00:37:17 U= TC (rev 1373) +++ humano2/trunk/web/builder/site/js/modelfuncs.js 2005-06-21 00:56:29 U= TC (rev 1374) @@ -1,109 +1,109 @@ -/* -// The Humano2 Business solution. -// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. =20 -// -// $Id$ -*/ - -// Set the state of the modeling functions -function SetModelState(state) { - //alert("SetModelState :: " + state); - - var topData =3D parent.frames["topdata"]; - - switch(state) { - case "Reset": - btnDisable("cancel"); - btnDisable("properties"); - btnDisable("delClass"); - btnDisable("createAttrib"); - btnDisable("createRule"); - btnEnable("newClass"); - break; - case "ViewClass": - btnDisable("cancel"); - btnEnable("properties"); - btnEnable("createAttrib"); - btnEnable("delClass"); - btnEnable("createRule"); - btnEnable("newClass"); - break; - case "DeleteClass": - btnEnable("cancel"); - btnDisable("properties"); =09 - btnDisable("createAttrib"); - btnDisable("createRule"); - btnDisable("delClass");=09 - btnDisable("newClass"); - break; - case "EditAttribute": - btnEnable("cancel"); - btnDisable("properties"); - btnDisable("createAttrib"); - btnDisable("createRule"); - btnDisable("delClass");=09 - btnDisable("newClass"); - break; - case "EditRule": - btnEnable("cancel"); - btnDisable("properties"); - btnDisable("createAttrib"); - btnDisable("createRule"); - btnDisable("delClass");=09 - btnDisable("newClass"); - break; - default: - alert("SetModelState got an unknown state: " + state); - return; - } - - //alert(topData.document.forms["Form1"].state2); - topData.document.Form1.state2.value =3D state; -} - -// Get the state of the modeling functions. -function GetModelState() { - var topData =3D parent.frames["topdata"]; - return topData.document.Form1.state2.value; -} - -// Set the Id of the class that we are operating on. -function SetClassId(classId) { - //alert("SetClassId called"); - var topData =3D parent.frames["topdata"]; - topData.document.Form1.classId2.value =3D classId; -} - -// Get the id of the class. -function GetClassId() { - var topData =3D parent.frames["topdata"]; -=09 - var strRet =3D topData.document.Form1.classId2.value; - - if (strRet =3D=3D "") - { - return "0"; - }else{ - return strRet; - } -} - -// Enable a button on the operationbar. -function btnEnable(name) { - //alert("btnEnable called: " + name); - var topData =3D parent.frames["topdata"]; - var btn =3D topData.document.getElementById(name); - btn.style.display=3D""; -} - -// Disable a button on the operationbar. -function btnDisable(name) { - var topData =3D parent.frames["topdata"]; - var btn =3D topData.document.getElementById(name); - btn.style.display=3D"none"; -} +/* +// The Humano2 Business solution. +// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. =20 +// +// $Id$ +*/ + +// Set the state of the modeling functions +function SetModelState(state) { + //alert("SetModelState :: " + state); + + var topData =3D parent.frames["topdata"]; + + switch(state) { + case "Reset": + btnDisable("cancel"); + btnDisable("properties"); + btnDisable("delClass"); + btnDisable("createAttrib"); + btnDisable("createRule"); + btnEnable("newClass"); + break; + case "ViewClass": + btnDisable("cancel"); + btnEnable("properties"); + btnEnable("createAttrib"); + btnEnable("delClass"); + btnEnable("createRule"); + btnEnable("newClass"); + break; + case "DeleteClass": + btnEnable("cancel"); + btnDisable("properties"); =09 + btnDisable("createAttrib"); + btnDisable("createRule"); + btnDisable("delClass");=09 + btnDisable("newClass"); + break; + case "EditAttribute": + btnEnable("cancel"); + btnDisable("properties"); + btnDisable("createAttrib"); + btnDisable("createRule"); + btnDisable("delClass");=09 + btnDisable("newClass"); + break; + case "EditRule": + btnEnable("cancel"); + btnDisable("properties"); + btnDisable("createAttrib"); + btnDisable("createRule"); + btnDisable("delClass");=09 + btnDisable("newClass"); + break; + default: + alert("SetModelState got an unknown state: " + state); + return; + } + + //alert(topData.document.forms["Form1"].state2); + topData.document.Form1.state2.value =3D state; +} + +// Get the state of the modeling functions. +function GetModelState() { + var topData =3D parent.frames["topdata"]; + return topData.document.Form1.state2.value; +} + +// Set the Id of the class that we are operating on. +function SetClassId(classId) { + //alert("SetClassId called"); + var topData =3D parent.frames["topdata"]; + topData.document.Form1.classId2.value =3D classId; +} + +// Get the id of the class. +function GetClassId() { + var topData =3D parent.frames["topdata"]; +=09 + var strRet =3D topData.document.Form1.classId2.value; + + if (strRet =3D=3D "") + { + return "0"; + }else{ + return strRet; + } +} + +// Enable a button on the operationbar. +function btnEnable(name) { + //alert("btnEnable called: " + name); + var topData =3D parent.frames["topdata"]; + var btn =3D topData.document.getElementById(name); + btn.style.display=3D""; +} + +// Disable a button on the operationbar. +function btnDisable(name) { + var topData =3D parent.frames["topdata"]; + var btn =3D topData.document.getElementById(name); + btn.style.display=3D"none"; +} Modified: humano2/trunk/web/builder/site/js/tabs.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/js/tabs.js 2005-06-21 00:37:17 UTC (re= v 1373) +++ humano2/trunk/web/builder/site/js/tabs.js 2005-06-21 00:56:29 UTC (re= v 1374) @@ -1,260 +1,260 @@ -/* -// The Humano2 Business solution. -// Copyright (C) 1999,3 Convea Ltd. -// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. =20 -// -// $Id$ -*/ -=09 - /* Interchange Tabs on the same page */ - var tmpAttName =3D ""; - function TabChange(tabID, wantcookie, numtabs, newwinheight)=20 - {=09 - var tab0=3Dnull; var tab1=3Dnull; var tab2=3Dnull; var tab3=3Dnull; = var tab4=3Dnull;var tab5=3Dnull;var tab6=3Dnull; - if (document.Form1.attName.value !=3D "") - { - tmpAttName =3D document.Form1.attName.value; - } - =20 - if(newwinheight) - { - frameWidth =3D document.body.clientWidth+6; - frameHeight =3D document.body.clientHeight; =09 - window.resizeTo(frameWidth, newwinheight); - } -=09 - - tab0 =3D document.getElementById('TabA').style; - tab1 =3D document.getElementById('TabB').style; - if(numtabs>2)tab2 =3D document.getElementById('TabC').style; - if(numtabs>3)tab3 =3D document.getElementById('TabD').style; - if(numtabs>4)tab4 =3D document.getElementById('TabE').style; - if(numtabs>5)tab5 =3D document.getElementById('TabF').style; - if(numtabs>6)tab6 =3D document.getElementById('TabG').style; - if (tabID =3D=3D 1)=20 - { - if (tmpAttName !=3D ""){document.Form1.attName.value =3D tmp= AttName; } - if(wantcookie) SetCookie ("ViewTab", "A"); - tab0.visibility =3D "visible";=20 - tab1.visibility =3D "hidden";=20 - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 2)=20 - { - if(wantcookie) SetCookie ("ViewTab", "B"); - tab0.visibility =3D "hidden";=09 - tab1.visibility =3D "visible";=20 - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 3)=20 - { - if(wantcookie) SetCookie ("ViewTab", "C"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden";=09 - if(tab2){tab2.visibility =3D "visible"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 4)=20 - { - if(wantcookie) SetCookie ("ViewTab", "D"); - tab0.visibility =3D "hidden";=09 - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "visible"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - =09 - if (tabID =3D=3D 5)=20 - { - if(wantcookie) SetCookie ("ViewTab", "E"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "visible"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - =09 - if (tabID =3D=3D 6)=20 - { - if(wantcookie) SetCookie ("ViewTab", "F"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "visible"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 7)=20 - { - if(wantcookie) SetCookie ("ViewTab", "G"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "visible"; } - } - =09 - =09 - return; - } -=09 - /* Switch between tabs that are on a secondary level. */ - function TabChange2(tabID, wantcookie, numtabs, newwinheight)=20 - {=09 - var tab0=3Dnull; var tab1=3Dnull; var tab2=3Dnull; var tab3=3Dnull; = var tab4=3Dnull;var tab5=3Dnull;var tab6=3Dnull; - =09 - if(newwinheight) - { - frameWidth =3D document.body.clientWidth+6; - frameHeight =3D document.body.clientHeight; =09 - window.resizeTo(frameWidth, newwinheight); - } -=09 - - tab0 =3D document.getElementById('TabAA').style; - tab1 =3D document.getElementById('TabBB').style; - if(numtabs>2)tab2 =3D document.getElementById('TabCC').style; - if(numtabs>3)tab3 =3D document.getElementById('TabDD').style; - if(numtabs>4)tab4 =3D document.getElementById('TabEE').style; - if(numtabs>5)tab5 =3D document.getElementById('TabFF').style; - if(numtabs>6)tab6 =3D document.getElementById('TabGG').style; -=09 - if (tabID =3D=3D 1)=20 - { - if(wantcookie) SetCookie ("ViewTab", "AA"); - tab0.visibility =3D "visible";=20 - tab1.visibility =3D "hidden";=20 - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 2)=20 - { - if(wantcookie) SetCookie ("ViewTab", "BB"); - tab0.visibility =3D "hidden";=09 - tab1.visibility =3D "visible";=20 - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 3)=20 - { - if(wantcookie) SetCookie ("ViewTab", "CC"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden";=09 - if(tab2){tab2.visibility =3D "visible"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 4)=20 - { - if(wantcookie) SetCookie ("ViewTab", "DD"); - tab0.visibility =3D "hidden";=09 - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "visible"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - =09 - if (tabID =3D=3D 5)=20 - { - if(wantcookie) SetCookie ("ViewTab", "EE"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "visible"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - =09 - if (tabID =3D=3D 6)=20 - { - if(wantcookie) SetCookie ("ViewTab", "FF"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "visible"; } - if(tab6){tab6.visibility =3D "hidden"; } - } - - if (tabID =3D=3D 7)=20 - { - if(wantcookie) SetCookie ("ViewTab", "GG"); - tab0.visibility =3D "hidden"; - tab1.visibility =3D "hidden"; - if(tab2){tab2.visibility =3D "hidden"; } - if(tab3){tab3.visibility =3D "hidden"; } - if(tab4){tab4.visibility =3D "hidden"; } - if(tab5){tab5.visibility =3D "hidden"; } - if(tab6){tab6.visibility =3D "visible"; } - } - =09 - =09 - return; - } -=09 - function HideLayerMini(accion){ -=09 - if(!document.getElementById('TabAA')) - return - if(!document.getElementById('TabBB')) - return - =20 - var XTabAA =3D document.getElementById('TabAA').style; - var XTabBB =3D document.getElementById('TabBB').style; - var XTabCC =3D document.getElementById('TabCC').style; - - if(!XTabAA && !XTabBB && !XTabCC) - return - =20 - if (accion=3D=3D1){ - XTabAA.visibility =3D "hidden" - XTabBB.visibility =3D "hidden" - XTabCC.visibility =3D "hidden" - }else{ - XTabAA.visibility =3D "visible" - //XTabBB.visibility =3D "visible" - //XTabCC.visibility =3D "visible" - }=09 - } \ No newline at end of file +/* +// The Humano2 Business solution. +// Copyright (C) 1999,3 Convea Ltd. +// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. =20 +// +// $Id$ +*/ +=09 + /* Interchange Tabs on the same page */ + var tmpAttName =3D ""; + function TabChange(tabID, wantcookie, numtabs, newwinheight)=20 + {=09 + var tab0=3Dnull; var tab1=3Dnull; var tab2=3Dnull; var tab3=3Dnull; = var tab4=3Dnull;var tab5=3Dnull;var tab6=3Dnull; + if (document.Form1.attName.value !=3D "") + { + tmpAttName =3D document.Form1.attName.value; + } + =20 + if(newwinheight) + { + frameWidth =3D document.body.clientWidth+6; + frameHeight =3D document.body.clientHeight; =09 + window.resizeTo(frameWidth, newwinheight); + } +=09 + + tab0 =3D document.getElementById('TabA').style; + tab1 =3D document.getElementById('TabB').style; + if(numtabs>2)tab2 =3D document.getElementById('TabC').style; + if(numtabs>3)tab3 =3D document.getElementById('TabD').style; + if(numtabs>4)tab4 =3D document.getElementById('TabE').style; + if(numtabs>5)tab5 =3D document.getElementById('TabF').style; + if(numtabs>6)tab6 =3D document.getElementById('TabG').style; + if (tabID =3D=3D 1)=20 + { + if (tmpAttName !=3D ""){document.Form1.attName.value =3D tmp= AttName; } + if(wantcookie) SetCookie ("ViewTab", "A"); + tab0.visibility =3D "visible";=20 + tab1.visibility =3D "hidden";=20 + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 2)=20 + { + if(wantcookie) SetCookie ("ViewTab", "B"); + tab0.visibility =3D "hidden";=09 + tab1.visibility =3D "visible";=20 + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 3)=20 + { + if(wantcookie) SetCookie ("ViewTab", "C"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden";=09 + if(tab2){tab2.visibility =3D "visible"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 4)=20 + { + if(wantcookie) SetCookie ("ViewTab", "D"); + tab0.visibility =3D "hidden";=09 + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "visible"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + =09 + if (tabID =3D=3D 5)=20 + { + if(wantcookie) SetCookie ("ViewTab", "E"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "visible"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + =09 + if (tabID =3D=3D 6)=20 + { + if(wantcookie) SetCookie ("ViewTab", "F"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "visible"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 7)=20 + { + if(wantcookie) SetCookie ("ViewTab", "G"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "visible"; } + } + =09 + =09 + return; + } +=09 + /* Switch between tabs that are on a secondary level. */ + function TabChange2(tabID, wantcookie, numtabs, newwinheight)=20 + {=09 + var tab0=3Dnull; var tab1=3Dnull; var tab2=3Dnull; var tab3=3Dnull; = var tab4=3Dnull;var tab5=3Dnull;var tab6=3Dnull; + =09 + if(newwinheight) + { + frameWidth =3D document.body.clientWidth+6; + frameHeight =3D document.body.clientHeight; =09 + window.resizeTo(frameWidth, newwinheight); + } +=09 + + tab0 =3D document.getElementById('TabAA').style; + tab1 =3D document.getElementById('TabBB').style; + if(numtabs>2)tab2 =3D document.getElementById('TabCC').style; + if(numtabs>3)tab3 =3D document.getElementById('TabDD').style; + if(numtabs>4)tab4 =3D document.getElementById('TabEE').style; + if(numtabs>5)tab5 =3D document.getElementById('TabFF').style; + if(numtabs>6)tab6 =3D document.getElementById('TabGG').style; +=09 + if (tabID =3D=3D 1)=20 + { + if(wantcookie) SetCookie ("ViewTab", "AA"); + tab0.visibility =3D "visible";=20 + tab1.visibility =3D "hidden";=20 + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 2)=20 + { + if(wantcookie) SetCookie ("ViewTab", "BB"); + tab0.visibility =3D "hidden";=09 + tab1.visibility =3D "visible";=20 + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 3)=20 + { + if(wantcookie) SetCookie ("ViewTab", "CC"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden";=09 + if(tab2){tab2.visibility =3D "visible"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 4)=20 + { + if(wantcookie) SetCookie ("ViewTab", "DD"); + tab0.visibility =3D "hidden";=09 + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "visible"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + =09 + if (tabID =3D=3D 5)=20 + { + if(wantcookie) SetCookie ("ViewTab", "EE"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "visible"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + =09 + if (tabID =3D=3D 6)=20 + { + if(wantcookie) SetCookie ("ViewTab", "FF"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "visible"; } + if(tab6){tab6.visibility =3D "hidden"; } + } + + if (tabID =3D=3D 7)=20 + { + if(wantcookie) SetCookie ("ViewTab", "GG"); + tab0.visibility =3D "hidden"; + tab1.visibility =3D "hidden"; + if(tab2){tab2.visibility =3D "hidden"; } + if(tab3){tab3.visibility =3D "hidden"; } + if(tab4){tab4.visibility =3D "hidden"; } + if(tab5){tab5.visibility =3D "hidden"; } + if(tab6){tab6.visibility =3D "visible"; } + } + =09 + =09 + return; + } +=09 + function HideLayerMini(accion){ +=09 + if(!document.getElementById('TabAA')) + return + if(!document.getElementById('TabBB')) + return + =20 + var XTabAA =3D document.getElementById('TabAA').style; + var XTabBB =3D document.getElementById('TabBB').style; + var XTabCC =3D document.getElementById('TabCC').style; + + if(!XTabAA && !XTabBB && !XTabCC) + return + =20 + if (accion=3D=3D1){ + XTabAA.visibility =3D "hidden" + XTabBB.visibility =3D "hidden" + XTabCC.visibility =3D "hidden" + }else{ + XTabAA.visibility =3D "visible" + //XTabBB.visibility =3D "visible" + //XTabCC.visibility =3D "visible" + }=09 + } |