Merged bi-integration branch in trunk
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Tue, 27 May 2008 16:07:57 +0000
changeset 1045 a4ffeb0d7a1e
parent 1044 8691bbc94032
child 1046 5b7e13f02b77
Merged bi-integration branch in trunk
lib/ws-commons-util-1.0.1.jar
src-db/database/model/tables/AD_PROCESS.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
src-db/database/sourcedata/AD_MENU.xml
src-db/database/sourcedata/AD_MESSAGE.xml
src-db/database/sourcedata/AD_MODEL_OBJECT.xml
src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
src-db/database/sourcedata/AD_PROCESS.xml
src-db/database/sourcedata/AD_REFERENCE.xml
src-db/database/sourcedata/AD_REF_LIST.xml
src-db/database/sourcedata/AD_TABLE.xml
src-db/database/sourcedata/AD_TEXTINTERFACES.xml
src-db/database/sourcedata/AD_TREENODE.xml
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
src/org/openbravo/erpCommon/ad_workflow/WorkflowControl.java
src/org/openbravo/erpCommon/businessUtility/WindowTabs.java
src/org/openbravo/erpCommon/businessUtility/WindowTabs_data.xsql
src/org/openbravo/erpCommon/security/Access_data.xsql
src/org/openbravo/erpCommon/utility/Menu_data.xsql
src/org/openbravo/erpCommon/utility/OpenPentaho.html
src/org/openbravo/erpCommon/utility/OpenPentaho.java
src/org/openbravo/erpCommon/utility/OpenPentaho.xml
src/org/openbravo/erpCommon/utility/OpenPentaho_data.xsql
src/org/openbravo/erpCommon/utility/VerticalMenu.java
web/js/options.js
web/js/pentaho-ajax.js
web/js/prototype/prototype.js
Binary file lib/ws-commons-util-1.0.1.jar has changed
--- a/src-db/database/model/tables/AD_PROCESS.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/model/tables/AD_PROCESS.xml	Tue May 27 16:07:57 2008 +0000
@@ -85,12 +85,25 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="SERVICE_TYPE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="ISEXTERNALSERVICE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
+        <default><![CDATA[N]]></default>
+        <onCreateDefault/>
+      </column>
+      <column name="SERVICE_SOURCE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADPROCESS">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
       <foreign-key foreignTable="AD_ORG" name="ADORG_ADPROCESS">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <check name="ADPROC_EXTERNALSERVICE_CHECK"><![CDATA[ISEXTERNALSERVICE IN ('Y', 'N')]]></check>
       <check name="ADPROCESS_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       <check name="ADPROCESS_ISBACKGROUND_CHECK"><![CDATA[ISBACKGROUND IN ('Y', 'N')]]></check>
       <check name="ADPROCESS_ISDIRECTPRINT_CHECK"><![CDATA[ISDIRECTPRINT IN ('Y', 'N')]]></check>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Tue May 27 16:07:57 2008 +0000
@@ -493389,6 +493389,199 @@
 <!--1004400040-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--1004400040**************--></AD_COLUMN>
 
+<!--1004400041**************--><AD_COLUMN>
+<!--1004400041 AD_COLUMN_ID-->
+<!--1004400041-->              <AD_COLUMN_ID><![CDATA[1004400041]]></AD_COLUMN_ID>
+<!--1004400041 AD_CLIENT_ID-->
+<!--1004400041-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400041 AD_ORG_ID-->
+<!--1004400041-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400041 ISACTIVE-->
+<!--1004400041-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400041 CREATED-->
+<!--1004400041-->              <CREATED><![CDATA[2008-04-18 12:04:19.0]]></CREATED>
+<!--1004400041 UPDATED-->
+<!--1004400041-->              <UPDATED><![CDATA[2008-04-18 12:04:19.0]]></UPDATED>
+<!--1004400041 CREATEDBY-->
+<!--1004400041-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400041 UPDATEDBY-->
+<!--1004400041-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--1004400041 NAME-->
+<!--1004400041-->              <NAME><![CDATA[External Service]]></NAME>
+<!--1004400041 DESCRIPTION-->
+<!--1004400041-->              <DESCRIPTION><![CDATA[Sets the process as a external service that is loadable from the application menu.]]></DESCRIPTION>
+<!--1004400041 HELP-->
+<!--1004400041-->              <HELP><![CDATA[Sets the process as a external service that is loadable from the application menu.]]></HELP>
+<!--1004400041 COLUMNNAME-->
+<!--1004400041-->              <COLUMNNAME><![CDATA[Isexternalservice]]></COLUMNNAME>
+<!--1004400041 AD_TABLE_ID-->
+<!--1004400041-->              <AD_TABLE_ID><![CDATA[284]]></AD_TABLE_ID>
+<!--1004400041 AD_REFERENCE_ID-->
+<!--1004400041-->              <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--1004400041 FIELDLENGTH-->
+<!--1004400041-->              <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--1004400041 DEFAULTVALUE-->
+<!--1004400041-->              <DEFAULTVALUE><![CDATA[N]]></DEFAULTVALUE>
+<!--1004400041 ISKEY-->
+<!--1004400041-->              <ISKEY><![CDATA[N]]></ISKEY>
+<!--1004400041 ISPARENT-->
+<!--1004400041-->              <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--1004400041 ISMANDATORY-->
+<!--1004400041-->              <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--1004400041 ISUPDATEABLE-->
+<!--1004400041-->              <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--1004400041 ISIDENTIFIER-->
+<!--1004400041-->              <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--1004400041 SEQNO-->
+<!--1004400041-->              <SEQNO><![CDATA[41]]></SEQNO>
+<!--1004400041 ISTRANSLATED-->
+<!--1004400041-->              <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--1004400041 ISENCRYPTED-->
+<!--1004400041-->              <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1004400041 ISSELECTIONCOLUMN-->
+<!--1004400041-->              <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--1004400041 AD_ELEMENT_ID-->
+<!--1004400041-->              <AD_ELEMENT_ID><![CDATA[1004400015]]></AD_ELEMENT_ID>
+<!--1004400041 ISSYNCDATABASE-->
+<!--1004400041-->              <ISSYNCDATABASE><![CDATA[N]]></ISSYNCDATABASE>
+<!--1004400041 ISSESSIONATTR-->
+<!--1004400041-->              <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--1004400041 ISSECONDARYKEY-->
+<!--1004400041-->              <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--1004400041 ISDESENCRYPTABLE-->
+<!--1004400041-->              <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--1004400041 DEVELOPMENTSTATUS-->
+<!--1004400041-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--1004400041**************--></AD_COLUMN>
+
+<!--1004400042**************--><AD_COLUMN>
+<!--1004400042 AD_COLUMN_ID-->
+<!--1004400042-->              <AD_COLUMN_ID><![CDATA[1004400042]]></AD_COLUMN_ID>
+<!--1004400042 AD_CLIENT_ID-->
+<!--1004400042-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400042 AD_ORG_ID-->
+<!--1004400042-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400042 ISACTIVE-->
+<!--1004400042-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400042 CREATED-->
+<!--1004400042-->              <CREATED><![CDATA[2008-04-18 12:04:19.0]]></CREATED>
+<!--1004400042 UPDATED-->
+<!--1004400042-->              <UPDATED><![CDATA[2008-04-18 12:15:49.0]]></UPDATED>
+<!--1004400042 CREATEDBY-->
+<!--1004400042-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400042 UPDATEDBY-->
+<!--1004400042-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400042 NAME-->
+<!--1004400042-->              <NAME><![CDATA[Service Type]]></NAME>
+<!--1004400042 DESCRIPTION-->
+<!--1004400042-->              <DESCRIPTION><![CDATA[Indicates the type of the external service]]></DESCRIPTION>
+<!--1004400042 HELP-->
+<!--1004400042-->              <HELP><![CDATA[Indicates the type of the external service]]></HELP>
+<!--1004400042 COLUMNNAME-->
+<!--1004400042-->              <COLUMNNAME><![CDATA[Service_Type]]></COLUMNNAME>
+<!--1004400042 AD_TABLE_ID-->
+<!--1004400042-->              <AD_TABLE_ID><![CDATA[284]]></AD_TABLE_ID>
+<!--1004400042 AD_REFERENCE_ID-->
+<!--1004400042-->              <AD_REFERENCE_ID><![CDATA[17]]></AD_REFERENCE_ID>
+<!--1004400042 AD_REFERENCE_VALUE_ID-->
+<!--1004400042-->              <AD_REFERENCE_VALUE_ID><![CDATA[1004400002]]></AD_REFERENCE_VALUE_ID>
+<!--1004400042 FIELDLENGTH-->
+<!--1004400042-->              <FIELDLENGTH><![CDATA[2]]></FIELDLENGTH>
+<!--1004400042 ISKEY-->
+<!--1004400042-->              <ISKEY><![CDATA[N]]></ISKEY>
+<!--1004400042 ISPARENT-->
+<!--1004400042-->              <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--1004400042 ISMANDATORY-->
+<!--1004400042-->              <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--1004400042 ISUPDATEABLE-->
+<!--1004400042-->              <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--1004400042 ISIDENTIFIER-->
+<!--1004400042-->              <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--1004400042 SEQNO-->
+<!--1004400042-->              <SEQNO><![CDATA[51]]></SEQNO>
+<!--1004400042 ISTRANSLATED-->
+<!--1004400042-->              <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--1004400042 ISENCRYPTED-->
+<!--1004400042-->              <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1004400042 ISSELECTIONCOLUMN-->
+<!--1004400042-->              <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--1004400042 AD_ELEMENT_ID-->
+<!--1004400042-->              <AD_ELEMENT_ID><![CDATA[1004400016]]></AD_ELEMENT_ID>
+<!--1004400042 ISSYNCDATABASE-->
+<!--1004400042-->              <ISSYNCDATABASE><![CDATA[N]]></ISSYNCDATABASE>
+<!--1004400042 ISSESSIONATTR-->
+<!--1004400042-->              <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--1004400042 ISSECONDARYKEY-->
+<!--1004400042-->              <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--1004400042 ISDESENCRYPTABLE-->
+<!--1004400042-->              <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--1004400042 DEVELOPMENTSTATUS-->
+<!--1004400042-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--1004400042**************--></AD_COLUMN>
+
+<!--1004400043**************--><AD_COLUMN>
+<!--1004400043 AD_COLUMN_ID-->
+<!--1004400043-->              <AD_COLUMN_ID><![CDATA[1004400043]]></AD_COLUMN_ID>
+<!--1004400043 AD_CLIENT_ID-->
+<!--1004400043-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400043 AD_ORG_ID-->
+<!--1004400043-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400043 ISACTIVE-->
+<!--1004400043-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400043 CREATED-->
+<!--1004400043-->              <CREATED><![CDATA[2008-04-18 12:04:19.0]]></CREATED>
+<!--1004400043 UPDATED-->
+<!--1004400043-->              <UPDATED><![CDATA[2008-04-18 12:04:19.0]]></UPDATED>
+<!--1004400043 CREATEDBY-->
+<!--1004400043-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400043 UPDATEDBY-->
+<!--1004400043-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--1004400043 NAME-->
+<!--1004400043-->              <NAME><![CDATA[Service Source]]></NAME>
+<!--1004400043 DESCRIPTION-->
+<!--1004400043-->              <DESCRIPTION><![CDATA[Indicates where is located the external service. It can be an URL or a path.]]></DESCRIPTION>
+<!--1004400043 HELP-->
+<!--1004400043-->              <HELP><![CDATA[Indicates where is located the external service. It can be an URL or a path.]]></HELP>
+<!--1004400043 COLUMNNAME-->
+<!--1004400043-->              <COLUMNNAME><![CDATA[Service_Source]]></COLUMNNAME>
+<!--1004400043 AD_TABLE_ID-->
+<!--1004400043-->              <AD_TABLE_ID><![CDATA[284]]></AD_TABLE_ID>
+<!--1004400043 AD_REFERENCE_ID-->
+<!--1004400043-->              <AD_REFERENCE_ID><![CDATA[14]]></AD_REFERENCE_ID>
+<!--1004400043 FIELDLENGTH-->
+<!--1004400043-->              <FIELDLENGTH><![CDATA[2000]]></FIELDLENGTH>
+<!--1004400043 ISKEY-->
+<!--1004400043-->              <ISKEY><![CDATA[N]]></ISKEY>
+<!--1004400043 ISPARENT-->
+<!--1004400043-->              <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--1004400043 ISMANDATORY-->
+<!--1004400043-->              <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--1004400043 ISUPDATEABLE-->
+<!--1004400043-->              <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--1004400043 ISIDENTIFIER-->
+<!--1004400043-->              <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--1004400043 SEQNO-->
+<!--1004400043-->              <SEQNO><![CDATA[61]]></SEQNO>
+<!--1004400043 ISTRANSLATED-->
+<!--1004400043-->              <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--1004400043 ISENCRYPTED-->
+<!--1004400043-->              <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1004400043 ISSELECTIONCOLUMN-->
+<!--1004400043-->              <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--1004400043 AD_ELEMENT_ID-->
+<!--1004400043-->              <AD_ELEMENT_ID><![CDATA[1004400017]]></AD_ELEMENT_ID>
+<!--1004400043 ISSYNCDATABASE-->
+<!--1004400043-->              <ISSYNCDATABASE><![CDATA[N]]></ISSYNCDATABASE>
+<!--1004400043 ISSESSIONATTR-->
+<!--1004400043-->              <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--1004400043 ISSECONDARYKEY-->
+<!--1004400043-->              <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--1004400043 ISDESENCRYPTABLE-->
+<!--1004400043-->              <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--1004400043 DEVELOPMENTSTATUS-->
+<!--1004400043-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--1004400043**************--></AD_COLUMN>
+
 <!--1005100000**************--><AD_COLUMN>
 <!--1005100000 AD_COLUMN_ID-->
 <!--1005100000-->              <AD_COLUMN_ID><![CDATA[1005100000]]></AD_COLUMN_ID>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Tue May 27 16:07:57 2008 +0000
@@ -47877,6 +47877,93 @@
 <!--1004400014-->              <PRINTNAME><![CDATA[Lock cause]]></PRINTNAME>
 <!--1004400014**************--></AD_ELEMENT>
 
+<!--1004400015**************--><AD_ELEMENT>
+<!--1004400015 AD_ELEMENT_ID-->
+<!--1004400015-->              <AD_ELEMENT_ID><![CDATA[1004400015]]></AD_ELEMENT_ID>
+<!--1004400015 AD_CLIENT_ID-->
+<!--1004400015-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400015 AD_ORG_ID-->
+<!--1004400015-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400015 ISACTIVE-->
+<!--1004400015-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400015 CREATED-->
+<!--1004400015-->              <CREATED><![CDATA[2008-04-18 12:16:30.0]]></CREATED>
+<!--1004400015 CREATEDBY-->
+<!--1004400015-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400015 UPDATED-->
+<!--1004400015-->              <UPDATED><![CDATA[2008-04-18 13:03:21.0]]></UPDATED>
+<!--1004400015 UPDATEDBY-->
+<!--1004400015-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400015 COLUMNNAME-->
+<!--1004400015-->              <COLUMNNAME><![CDATA[Isexternalservice]]></COLUMNNAME>
+<!--1004400015 NAME-->
+<!--1004400015-->              <NAME><![CDATA[External Service]]></NAME>
+<!--1004400015 PRINTNAME-->
+<!--1004400015-->              <PRINTNAME><![CDATA[External Service]]></PRINTNAME>
+<!--1004400015 DESCRIPTION-->
+<!--1004400015-->              <DESCRIPTION><![CDATA[Sets the process as a external service that is loadable from the application menu.]]></DESCRIPTION>
+<!--1004400015 HELP-->
+<!--1004400015-->              <HELP><![CDATA[Sets the process as a external service that is loadable from the application menu.]]></HELP>
+<!--1004400015**************--></AD_ELEMENT>
+
+<!--1004400016**************--><AD_ELEMENT>
+<!--1004400016 AD_ELEMENT_ID-->
+<!--1004400016-->              <AD_ELEMENT_ID><![CDATA[1004400016]]></AD_ELEMENT_ID>
+<!--1004400016 AD_CLIENT_ID-->
+<!--1004400016-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400016 AD_ORG_ID-->
+<!--1004400016-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400016 ISACTIVE-->
+<!--1004400016-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400016 CREATED-->
+<!--1004400016-->              <CREATED><![CDATA[2008-04-18 12:16:30.0]]></CREATED>
+<!--1004400016 CREATEDBY-->
+<!--1004400016-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400016 UPDATED-->
+<!--1004400016-->              <UPDATED><![CDATA[2008-04-18 13:06:30.0]]></UPDATED>
+<!--1004400016 UPDATEDBY-->
+<!--1004400016-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400016 COLUMNNAME-->
+<!--1004400016-->              <COLUMNNAME><![CDATA[Service_Type]]></COLUMNNAME>
+<!--1004400016 NAME-->
+<!--1004400016-->              <NAME><![CDATA[Service Type]]></NAME>
+<!--1004400016 PRINTNAME-->
+<!--1004400016-->              <PRINTNAME><![CDATA[Service Type]]></PRINTNAME>
+<!--1004400016 DESCRIPTION-->
+<!--1004400016-->              <DESCRIPTION><![CDATA[Indicates the type of the external service]]></DESCRIPTION>
+<!--1004400016 HELP-->
+<!--1004400016-->              <HELP><![CDATA[Indicates the type of the external service]]></HELP>
+<!--1004400016**************--></AD_ELEMENT>
+
+<!--1004400017**************--><AD_ELEMENT>
+<!--1004400017 AD_ELEMENT_ID-->
+<!--1004400017-->              <AD_ELEMENT_ID><![CDATA[1004400017]]></AD_ELEMENT_ID>
+<!--1004400017 AD_CLIENT_ID-->
+<!--1004400017-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400017 AD_ORG_ID-->
+<!--1004400017-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400017 ISACTIVE-->
+<!--1004400017-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400017 CREATED-->
+<!--1004400017-->              <CREATED><![CDATA[2008-04-18 12:16:30.0]]></CREATED>
+<!--1004400017 CREATEDBY-->
+<!--1004400017-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400017 UPDATED-->
+<!--1004400017-->              <UPDATED><![CDATA[2008-04-18 13:05:11.0]]></UPDATED>
+<!--1004400017 UPDATEDBY-->
+<!--1004400017-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400017 COLUMNNAME-->
+<!--1004400017-->              <COLUMNNAME><![CDATA[Service_Source]]></COLUMNNAME>
+<!--1004400017 NAME-->
+<!--1004400017-->              <NAME><![CDATA[Service Source]]></NAME>
+<!--1004400017 PRINTNAME-->
+<!--1004400017-->              <PRINTNAME><![CDATA[Service Source]]></PRINTNAME>
+<!--1004400017 DESCRIPTION-->
+<!--1004400017-->              <DESCRIPTION><![CDATA[Indicates where is located the external service. It can be an URL or a path.]]></DESCRIPTION>
+<!--1004400017 HELP-->
+<!--1004400017-->              <HELP><![CDATA[Indicates where is located the external service. It can be an URL or a path.]]></HELP>
+<!--1004400017**************--></AD_ELEMENT>
+
 <!--1005100000**************--><AD_ELEMENT>
 <!--1005100000 AD_ELEMENT_ID-->
 <!--1005100000-->              <AD_ELEMENT_ID><![CDATA[1005100000]]></AD_ELEMENT_ID>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Tue May 27 16:07:57 2008 +0000
@@ -58333,7 +58333,7 @@
 <!--2527 CREATEDBY-->
 <!--2527-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2527 UPDATED-->
-<!--2527-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2527-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2527 UPDATEDBY-->
 <!--2527-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2527 NAME-->
@@ -58355,7 +58355,7 @@
 <!--2527 ISREADONLY-->
 <!--2527-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2527 SEQNO-->
-<!--2527-->              <SEQNO><![CDATA[10]]></SEQNO>
+<!--2527-->              <SEQNO><![CDATA[20]]></SEQNO>
 <!--2527 ISSAMELINE-->
 <!--2527-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2527 ISFIELDONLY-->
@@ -58382,7 +58382,7 @@
 <!--2528 CREATEDBY-->
 <!--2528-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2528 UPDATED-->
-<!--2528-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2528-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2528 UPDATEDBY-->
 <!--2528-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2528 NAME-->
@@ -58404,7 +58404,7 @@
 <!--2528 ISREADONLY-->
 <!--2528-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2528 SEQNO-->
-<!--2528-->              <SEQNO><![CDATA[20]]></SEQNO>
+<!--2528-->              <SEQNO><![CDATA[30]]></SEQNO>
 <!--2528 ISSAMELINE-->
 <!--2528-->              <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--2528 ISFIELDONLY-->
@@ -58478,7 +58478,7 @@
 <!--2530 CREATEDBY-->
 <!--2530-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2530 UPDATED-->
-<!--2530-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2530-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2530 UPDATEDBY-->
 <!--2530-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2530 NAME-->
@@ -58500,7 +58500,7 @@
 <!--2530 ISREADONLY-->
 <!--2530-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2530 SEQNO-->
-<!--2530-->              <SEQNO><![CDATA[50]]></SEQNO>
+<!--2530-->              <SEQNO><![CDATA[60]]></SEQNO>
 <!--2530 ISSAMELINE-->
 <!--2530-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2530 ISFIELDONLY-->
@@ -58527,7 +58527,7 @@
 <!--2531 CREATEDBY-->
 <!--2531-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2531 UPDATED-->
-<!--2531-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2531-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2531 UPDATEDBY-->
 <!--2531-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2531 NAME-->
@@ -58549,7 +58549,7 @@
 <!--2531 ISREADONLY-->
 <!--2531-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2531 SEQNO-->
-<!--2531-->              <SEQNO><![CDATA[60]]></SEQNO>
+<!--2531-->              <SEQNO><![CDATA[70]]></SEQNO>
 <!--2531 ISSAMELINE-->
 <!--2531-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2531 ISFIELDONLY-->
@@ -58576,7 +58576,7 @@
 <!--2532 CREATEDBY-->
 <!--2532-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2532 UPDATED-->
-<!--2532-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2532-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2532 UPDATEDBY-->
 <!--2532-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2532 NAME-->
@@ -58598,7 +58598,7 @@
 <!--2532 ISREADONLY-->
 <!--2532-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2532 SEQNO-->
-<!--2532-->              <SEQNO><![CDATA[70]]></SEQNO>
+<!--2532-->              <SEQNO><![CDATA[80]]></SEQNO>
 <!--2532 ISSAMELINE-->
 <!--2532-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2532 ISFIELDONLY-->
@@ -58625,7 +58625,7 @@
 <!--2533 CREATEDBY-->
 <!--2533-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2533 UPDATED-->
-<!--2533-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2533-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2533 UPDATEDBY-->
 <!--2533-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2533 NAME-->
@@ -58647,7 +58647,7 @@
 <!--2533 ISREADONLY-->
 <!--2533-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2533 SEQNO-->
-<!--2533-->              <SEQNO><![CDATA[40]]></SEQNO>
+<!--2533-->              <SEQNO><![CDATA[50]]></SEQNO>
 <!--2533 SORTNO-->
 <!--2533-->              <SORTNO><![CDATA[2]]></SORTNO>
 <!--2533 ISSAMELINE-->
@@ -58676,7 +58676,7 @@
 <!--2534 CREATEDBY-->
 <!--2534-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--2534 UPDATED-->
-<!--2534-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2534-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2534 UPDATEDBY-->
 <!--2534-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2534 NAME-->
@@ -58698,7 +58698,7 @@
 <!--2534 ISREADONLY-->
 <!--2534-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2534 SEQNO-->
-<!--2534-->              <SEQNO><![CDATA[120]]></SEQNO>
+<!--2534-->              <SEQNO><![CDATA[130]]></SEQNO>
 <!--2534 ISSAMELINE-->
 <!--2534-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2534 ISFIELDONLY-->
@@ -60248,7 +60248,7 @@
 <!--2571 CREATEDBY-->
 <!--2571-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--2571 UPDATED-->
-<!--2571-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--2571-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2571 UPDATEDBY-->
 <!--2571-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2571 NAME-->
@@ -60270,7 +60270,7 @@
 <!--2571 ISREADONLY-->
 <!--2571-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2571 SEQNO-->
-<!--2571-->              <SEQNO><![CDATA[90]]></SEQNO>
+<!--2571-->              <SEQNO><![CDATA[100]]></SEQNO>
 <!--2571 ISSAMELINE-->
 <!--2571-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--2571 ISFIELDONLY-->
@@ -60297,7 +60297,7 @@
 <!--2572 CREATEDBY-->
 <!--2572-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--2572 UPDATED-->
-<!--2572-->              <UPDATED><![CDATA[2007-05-30 11:33:53.0]]></UPDATED>
+<!--2572-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--2572 UPDATEDBY-->
 <!--2572-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--2572 NAME-->
@@ -60319,7 +60319,7 @@
 <!--2572 ISREADONLY-->
 <!--2572-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--2572 SEQNO-->
-<!--2572-->              <SEQNO><![CDATA[100]]></SEQNO>
+<!--2572-->              <SEQNO><![CDATA[110]]></SEQNO>
 <!--2572 ISSAMELINE-->
 <!--2572-->              <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--2572 ISFIELDONLY-->
@@ -76197,7 +76197,7 @@
 <!--3116 CREATEDBY-->
 <!--3116-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--3116 UPDATED-->
-<!--3116-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--3116-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--3116 UPDATEDBY-->
 <!--3116-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--3116 NAME-->
@@ -76219,7 +76219,7 @@
 <!--3116 ISREADONLY-->
 <!--3116-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3116 SEQNO-->
-<!--3116-->              <SEQNO><![CDATA[30]]></SEQNO>
+<!--3116-->              <SEQNO><![CDATA[40]]></SEQNO>
 <!--3116 SORTNO-->
 <!--3116-->              <SORTNO><![CDATA[1]]></SORTNO>
 <!--3116 ISSAMELINE-->
@@ -78163,7 +78163,7 @@
 <!--3219 CREATEDBY-->
 <!--3219-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--3219 UPDATED-->
-<!--3219-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--3219-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--3219 UPDATEDBY-->
 <!--3219-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--3219 NAME-->
@@ -78187,7 +78187,7 @@
 <!--3219 ISREADONLY-->
 <!--3219-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3219 SEQNO-->
-<!--3219-->              <SEQNO><![CDATA[150]]></SEQNO>
+<!--3219-->              <SEQNO><![CDATA[160]]></SEQNO>
 <!--3219 ISSAMELINE-->
 <!--3219-->              <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--3219 ISFIELDONLY-->
@@ -94629,7 +94629,7 @@
 <!--3703 CREATEDBY-->
 <!--3703-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--3703 UPDATED-->
-<!--3703-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--3703-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--3703 UPDATEDBY-->
 <!--3703-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--3703 NAME-->
@@ -94653,7 +94653,7 @@
 <!--3703 ISREADONLY-->
 <!--3703-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3703 SEQNO-->
-<!--3703-->              <SEQNO><![CDATA[110]]></SEQNO>
+<!--3703-->              <SEQNO><![CDATA[120]]></SEQNO>
 <!--3703 ISSAMELINE-->
 <!--3703-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--3703 ISFIELDONLY-->
@@ -117177,7 +117177,7 @@
 <!--4540 CREATEDBY-->
 <!--4540-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--4540 UPDATED-->
-<!--4540-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--4540-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--4540 UPDATEDBY-->
 <!--4540-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--4540 NAME-->
@@ -117199,7 +117199,7 @@
 <!--4540 ISREADONLY-->
 <!--4540-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--4540 SEQNO-->
-<!--4540-->              <SEQNO><![CDATA[80]]></SEQNO>
+<!--4540-->              <SEQNO><![CDATA[90]]></SEQNO>
 <!--4540 ISSAMELINE-->
 <!--4540-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--4540 ISFIELDONLY-->
@@ -271898,7 +271898,7 @@
 <!--801109 CREATEDBY-->
 <!--801109-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--801109 UPDATED-->
-<!--801109-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--801109-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--801109 UPDATEDBY-->
 <!--801109-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--801109 NAME-->
@@ -271920,7 +271920,7 @@
 <!--801109 ISREADONLY-->
 <!--801109-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--801109 SEQNO-->
-<!--801109-->              <SEQNO><![CDATA[130]]></SEQNO>
+<!--801109-->              <SEQNO><![CDATA[140]]></SEQNO>
 <!--801109 ISSAMELINE-->
 <!--801109-->              <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
 <!--801109 ISFIELDONLY-->
@@ -364720,7 +364720,7 @@
 <!--804204 CREATEDBY-->
 <!--804204-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--804204 UPDATED-->
-<!--804204-->              <UPDATED><![CDATA[2007-05-25 18:24:56.0]]></UPDATED>
+<!--804204-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--804204 UPDATEDBY-->
 <!--804204-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--804204 NAME-->
@@ -364742,7 +364742,7 @@
 <!--804204 ISREADONLY-->
 <!--804204-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--804204 SEQNO-->
-<!--804204-->              <SEQNO><![CDATA[180]]></SEQNO>
+<!--804204-->              <SEQNO><![CDATA[190]]></SEQNO>
 <!--804204 ISSAMELINE-->
 <!--804204-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--804204 ISFIELDONLY-->
@@ -364767,7 +364767,7 @@
 <!--804205 CREATEDBY-->
 <!--804205-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--804205 UPDATED-->
-<!--804205-->              <UPDATED><![CDATA[2007-05-23 18:30:36.0]]></UPDATED>
+<!--804205-->              <UPDATED><![CDATA[2008-04-18 13:08:37.0]]></UPDATED>
 <!--804205 UPDATEDBY-->
 <!--804205-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--804205 NAME-->
@@ -364787,7 +364787,7 @@
 <!--804205 ISREADONLY-->
 <!--804205-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--804205 SEQNO-->
-<!--804205-->              <SEQNO><![CDATA[170]]></SEQNO>
+<!--804205-->              <SEQNO><![CDATA[180]]></SEQNO>
 <!--804205 ISSAMELINE-->
 <!--804205-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
 <!--804205 ISFIELDONLY-->
@@ -376366,6 +376366,157 @@
 <!--1004400102-->              <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
 <!--1004400102**************--></AD_FIELD>
 
+<!--1004400103**************--><AD_FIELD>
+<!--1004400103 AD_FIELD_ID-->
+<!--1004400103-->              <AD_FIELD_ID><![CDATA[1004400103]]></AD_FIELD_ID>
+<!--1004400103 AD_CLIENT_ID-->
+<!--1004400103-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400103 AD_ORG_ID-->
+<!--1004400103-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400103 ISACTIVE-->
+<!--1004400103-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400103 CREATED-->
+<!--1004400103-->              <CREATED><![CDATA[2008-04-18 13:08:18.0]]></CREATED>
+<!--1004400103 CREATEDBY-->
+<!--1004400103-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400103 UPDATED-->
+<!--1004400103-->              <UPDATED><![CDATA[2008-05-26 14:02:11.0]]></UPDATED>
+<!--1004400103 UPDATEDBY-->
+<!--1004400103-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400103 NAME-->
+<!--1004400103-->              <NAME><![CDATA[External Service]]></NAME>
+<!--1004400103 DESCRIPTION-->
+<!--1004400103-->              <DESCRIPTION><![CDATA[Sets the process as a external service that is loadable from the application menu.]]></DESCRIPTION>
+<!--1004400103 HELP-->
+<!--1004400103-->              <HELP><![CDATA[Sets the process as a external service that is loadable from the application menu.]]></HELP>
+<!--1004400103 ISCENTRALLYMAINTAINED-->
+<!--1004400103-->              <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--1004400103 AD_TAB_ID-->
+<!--1004400103-->              <AD_TAB_ID><![CDATA[245]]></AD_TAB_ID>
+<!--1004400103 AD_COLUMN_ID-->
+<!--1004400103-->              <AD_COLUMN_ID><![CDATA[1004400041]]></AD_COLUMN_ID>
+<!--1004400103 ISDISPLAYED-->
+<!--1004400103-->              <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--1004400103 DISPLAYLENGTH-->
+<!--1004400103-->              <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--1004400103 ISREADONLY-->
+<!--1004400103-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--1004400103 SEQNO-->
+<!--1004400103-->              <SEQNO><![CDATA[200]]></SEQNO>
+<!--1004400103 ISSAMELINE-->
+<!--1004400103-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--1004400103 ISFIELDONLY-->
+<!--1004400103-->              <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--1004400103 ISENCRYPTED-->
+<!--1004400103-->              <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1004400103 SHOWINRELATION-->
+<!--1004400103-->              <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--1004400103 ISFIRSTFOCUSEDFIELD-->
+<!--1004400103-->              <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--1004400103**************--></AD_FIELD>
+
+<!--1004400104**************--><AD_FIELD>
+<!--1004400104 AD_FIELD_ID-->
+<!--1004400104-->              <AD_FIELD_ID><![CDATA[1004400104]]></AD_FIELD_ID>
+<!--1004400104 AD_CLIENT_ID-->
+<!--1004400104-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400104 AD_ORG_ID-->
+<!--1004400104-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400104 ISACTIVE-->
+<!--1004400104-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400104 CREATED-->
+<!--1004400104-->              <CREATED><![CDATA[2008-04-18 13:08:18.0]]></CREATED>
+<!--1004400104 CREATEDBY-->
+<!--1004400104-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400104 UPDATED-->
+<!--1004400104-->              <UPDATED><![CDATA[2008-05-26 14:02:11.0]]></UPDATED>
+<!--1004400104 UPDATEDBY-->
+<!--1004400104-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400104 NAME-->
+<!--1004400104-->              <NAME><![CDATA[Service Type]]></NAME>
+<!--1004400104 DESCRIPTION-->
+<!--1004400104-->              <DESCRIPTION><![CDATA[Indicates the type of the external service]]></DESCRIPTION>
+<!--1004400104 HELP-->
+<!--1004400104-->              <HELP><![CDATA[Indicates the type of the external service]]></HELP>
+<!--1004400104 ISCENTRALLYMAINTAINED-->
+<!--1004400104-->              <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--1004400104 AD_TAB_ID-->
+<!--1004400104-->              <AD_TAB_ID><![CDATA[245]]></AD_TAB_ID>
+<!--1004400104 AD_COLUMN_ID-->
+<!--1004400104-->              <AD_COLUMN_ID><![CDATA[1004400042]]></AD_COLUMN_ID>
+<!--1004400104 ISDISPLAYED-->
+<!--1004400104-->              <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--1004400104 DISPLAYLOGIC-->
+<!--1004400104-->              <DISPLAYLOGIC><![CDATA[@IsExternalService@='Y']]></DISPLAYLOGIC>
+<!--1004400104 DISPLAYLENGTH-->
+<!--1004400104-->              <DISPLAYLENGTH><![CDATA[20]]></DISPLAYLENGTH>
+<!--1004400104 ISREADONLY-->
+<!--1004400104-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--1004400104 SEQNO-->
+<!--1004400104-->              <SEQNO><![CDATA[210]]></SEQNO>
+<!--1004400104 ISSAMELINE-->
+<!--1004400104-->              <ISSAMELINE><![CDATA[Y]]></ISSAMELINE>
+<!--1004400104 ISFIELDONLY-->
+<!--1004400104-->              <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--1004400104 ISENCRYPTED-->
+<!--1004400104-->              <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1004400104 SHOWINRELATION-->
+<!--1004400104-->              <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--1004400104 ISFIRSTFOCUSEDFIELD-->
+<!--1004400104-->              <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--1004400104**************--></AD_FIELD>
+
+<!--1004400105**************--><AD_FIELD>
+<!--1004400105 AD_FIELD_ID-->
+<!--1004400105-->              <AD_FIELD_ID><![CDATA[1004400105]]></AD_FIELD_ID>
+<!--1004400105 AD_CLIENT_ID-->
+<!--1004400105-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400105 AD_ORG_ID-->
+<!--1004400105-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400105 ISACTIVE-->
+<!--1004400105-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400105 CREATED-->
+<!--1004400105-->              <CREATED><![CDATA[2008-04-18 13:08:18.0]]></CREATED>
+<!--1004400105 CREATEDBY-->
+<!--1004400105-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1004400105 UPDATED-->
+<!--1004400105-->              <UPDATED><![CDATA[2008-05-26 14:02:11.0]]></UPDATED>
+<!--1004400105 UPDATEDBY-->
+<!--1004400105-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400105 NAME-->
+<!--1004400105-->              <NAME><![CDATA[Service Source]]></NAME>
+<!--1004400105 DESCRIPTION-->
+<!--1004400105-->              <DESCRIPTION><![CDATA[Indicates where is located the external service. It can be an URL or a path.]]></DESCRIPTION>
+<!--1004400105 HELP-->
+<!--1004400105-->              <HELP><![CDATA[Indicates where is located the external service. It can be an URL or a path.]]></HELP>
+<!--1004400105 ISCENTRALLYMAINTAINED-->
+<!--1004400105-->              <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--1004400105 AD_TAB_ID-->
+<!--1004400105-->              <AD_TAB_ID><![CDATA[245]]></AD_TAB_ID>
+<!--1004400105 AD_COLUMN_ID-->
+<!--1004400105-->              <AD_COLUMN_ID><![CDATA[1004400043]]></AD_COLUMN_ID>
+<!--1004400105 ISDISPLAYED-->
+<!--1004400105-->              <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--1004400105 DISPLAYLOGIC-->
+<!--1004400105-->              <DISPLAYLOGIC><![CDATA[@IsExternalService@='Y']]></DISPLAYLOGIC>
+<!--1004400105 DISPLAYLENGTH-->
+<!--1004400105-->              <DISPLAYLENGTH><![CDATA[2000]]></DISPLAYLENGTH>
+<!--1004400105 ISREADONLY-->
+<!--1004400105-->              <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--1004400105 SEQNO-->
+<!--1004400105-->              <SEQNO><![CDATA[220]]></SEQNO>
+<!--1004400105 ISSAMELINE-->
+<!--1004400105-->              <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--1004400105 ISFIELDONLY-->
+<!--1004400105-->              <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--1004400105 ISENCRYPTED-->
+<!--1004400105-->              <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--1004400105 SHOWINRELATION-->
+<!--1004400105-->              <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--1004400105 ISFIRSTFOCUSEDFIELD-->
+<!--1004400105-->              <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--1004400105**************--></AD_FIELD>
+
 <!--1005100000**************--><AD_FIELD>
 <!--1005100000 AD_FIELD_ID-->
 <!--1005100000-->              <AD_FIELD_ID><![CDATA[1005100000]]></AD_FIELD_ID>
--- a/src-db/database/sourcedata/AD_MENU.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_MENU.xml	Tue May 27 16:07:57 2008 +0000
@@ -12025,6 +12025,112 @@
 <!--1004400001-->              <AD_FORM_ID><![CDATA[1004400000]]></AD_FORM_ID>
 <!--1004400001**************--></AD_MENU>
 
+<!--1004400003**************--><AD_MENU>
+<!--1004400003 AD_MENU_ID-->
+<!--1004400003-->              <AD_MENU_ID><![CDATA[1004400003]]></AD_MENU_ID>
+<!--1004400003 AD_CLIENT_ID-->
+<!--1004400003-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400003 AD_ORG_ID-->
+<!--1004400003-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400003 ISACTIVE-->
+<!--1004400003-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400003 CREATED-->
+<!--1004400003-->              <CREATED><![CDATA[2008-04-22 17:17:09.0]]></CREATED>
+<!--1004400003 CREATEDBY-->
+<!--1004400003-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400003 UPDATED-->
+<!--1004400003-->              <UPDATED><![CDATA[2008-04-22 17:17:37.0]]></UPDATED>
+<!--1004400003 NAME-->
+<!--1004400003-->              <NAME><![CDATA[Finantial Cube]]></NAME>
+<!--1004400003 UPDATEDBY-->
+<!--1004400003-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400003 DESCRIPTION-->
+<!--1004400003-->              <DESCRIPTION><![CDATA[Finantial Cube]]></DESCRIPTION>
+<!--1004400003 ISSUMMARY-->
+<!--1004400003-->              <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
+<!--1004400003 ACTION-->
+<!--1004400003-->              <ACTION><![CDATA[P]]></ACTION>
+<!--1004400003 AD_PROCESS_ID-->
+<!--1004400003-->              <AD_PROCESS_ID><![CDATA[1004400006]]></AD_PROCESS_ID>
+<!--1004400003**************--></AD_MENU>
+
+<!--1004400004**************--><AD_MENU>
+<!--1004400004 AD_MENU_ID-->
+<!--1004400004-->              <AD_MENU_ID><![CDATA[1004400004]]></AD_MENU_ID>
+<!--1004400004 AD_CLIENT_ID-->
+<!--1004400004-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400004 AD_ORG_ID-->
+<!--1004400004-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400004 ISACTIVE-->
+<!--1004400004-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400004 CREATED-->
+<!--1004400004-->              <CREATED><![CDATA[2008-05-15 18:25:31.0]]></CREATED>
+<!--1004400004 CREATEDBY-->
+<!--1004400004-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400004 UPDATED-->
+<!--1004400004-->              <UPDATED><![CDATA[2008-05-15 18:25:31.0]]></UPDATED>
+<!--1004400004 NAME-->
+<!--1004400004-->              <NAME><![CDATA[Revenue and Expenses analisys]]></NAME>
+<!--1004400004 UPDATEDBY-->
+<!--1004400004-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400004 ISSUMMARY-->
+<!--1004400004-->              <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
+<!--1004400004 ACTION-->
+<!--1004400004-->              <ACTION><![CDATA[P]]></ACTION>
+<!--1004400004 AD_PROCESS_ID-->
+<!--1004400004-->              <AD_PROCESS_ID><![CDATA[1004400007]]></AD_PROCESS_ID>
+<!--1004400004**************--></AD_MENU>
+
+<!--1004400005**************--><AD_MENU>
+<!--1004400005 AD_MENU_ID-->
+<!--1004400005-->              <AD_MENU_ID><![CDATA[1004400005]]></AD_MENU_ID>
+<!--1004400005 AD_CLIENT_ID-->
+<!--1004400005-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400005 AD_ORG_ID-->
+<!--1004400005-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400005 ISACTIVE-->
+<!--1004400005-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400005 CREATED-->
+<!--1004400005-->              <CREATED><![CDATA[2008-05-15 18:25:50.0]]></CREATED>
+<!--1004400005 CREATEDBY-->
+<!--1004400005-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400005 UPDATED-->
+<!--1004400005-->              <UPDATED><![CDATA[2008-05-15 18:25:50.0]]></UPDATED>
+<!--1004400005 NAME-->
+<!--1004400005-->              <NAME><![CDATA[Revenue and Expenses CFO]]></NAME>
+<!--1004400005 UPDATEDBY-->
+<!--1004400005-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400005 ISSUMMARY-->
+<!--1004400005-->              <ISSUMMARY><![CDATA[N]]></ISSUMMARY>
+<!--1004400005 ACTION-->
+<!--1004400005-->              <ACTION><![CDATA[P]]></ACTION>
+<!--1004400005 AD_PROCESS_ID-->
+<!--1004400005-->              <AD_PROCESS_ID><![CDATA[1004400008]]></AD_PROCESS_ID>
+<!--1004400005**************--></AD_MENU>
+
+<!--1004400006**************--><AD_MENU>
+<!--1004400006 AD_MENU_ID-->
+<!--1004400006-->              <AD_MENU_ID><![CDATA[1004400006]]></AD_MENU_ID>
+<!--1004400006 AD_CLIENT_ID-->
+<!--1004400006-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400006 AD_ORG_ID-->
+<!--1004400006-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400006 ISACTIVE-->
+<!--1004400006-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400006 CREATED-->
+<!--1004400006-->              <CREATED><![CDATA[2008-05-26 13:35:49.0]]></CREATED>
+<!--1004400006 CREATEDBY-->
+<!--1004400006-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400006 UPDATED-->
+<!--1004400006-->              <UPDATED><![CDATA[2008-05-26 13:35:49.0]]></UPDATED>
+<!--1004400006 NAME-->
+<!--1004400006-->              <NAME><![CDATA[Business Intelligence]]></NAME>
+<!--1004400006 UPDATEDBY-->
+<!--1004400006-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400006 ISSUMMARY-->
+<!--1004400006-->              <ISSUMMARY><![CDATA[Y]]></ISSUMMARY>
+<!--1004400006**************--></AD_MENU>
+
 <!--1005400001**************--><AD_MENU>
 <!--1005400001 AD_MENU_ID-->
 <!--1005400001-->              <AD_MENU_ID><![CDATA[1005400001]]></AD_MENU_ID>
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Tue May 27 16:07:57 2008 +0000
@@ -139273,6 +139273,56 @@
 <!--1005900006-->              <MSGTYPE><![CDATA[E]]></MSGTYPE>
 <!--1005900006**************--></AD_MESSAGE>
 
+<!--1006100001**************--><AD_MESSAGE>
+<!--1006100001 AD_MESSAGE_ID-->
+<!--1006100001-->              <AD_MESSAGE_ID><![CDATA[1006100001]]></AD_MESSAGE_ID>
+<!--1006100001 AD_CLIENT_ID-->
+<!--1006100001-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1006100001 AD_ORG_ID-->
+<!--1006100001-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1006100001 ISACTIVE-->
+<!--1006100001-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1006100001 CREATED-->
+<!--1006100001-->              <CREATED><![CDATA[2008-05-01 13:24:38.0]]></CREATED>
+<!--1006100001 CREATEDBY-->
+<!--1006100001-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1006100001 UPDATED-->
+<!--1006100001-->              <UPDATED><![CDATA[2008-05-01 13:24:38.0]]></UPDATED>
+<!--1006100001 UPDATEDBY-->
+<!--1006100001-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1006100001 VALUE-->
+<!--1006100001-->              <VALUE><![CDATA[NoPentahoServerDefined]]></VALUE>
+<!--1006100001 MSGTEXT-->
+<!--1006100001-->              <MSGTEXT><![CDATA[The process has no Pentaho server defined]]></MSGTEXT>
+<!--1006100001 MSGTYPE-->
+<!--1006100001-->              <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--1006100001**************--></AD_MESSAGE>
+
+<!--1006100002**************--><AD_MESSAGE>
+<!--1006100002 AD_MESSAGE_ID-->
+<!--1006100002-->              <AD_MESSAGE_ID><![CDATA[1006100002]]></AD_MESSAGE_ID>
+<!--1006100002 AD_CLIENT_ID-->
+<!--1006100002-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1006100002 AD_ORG_ID-->
+<!--1006100002-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1006100002 ISACTIVE-->
+<!--1006100002-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1006100002 CREATED-->
+<!--1006100002-->              <CREATED><![CDATA[2008-05-01 13:25:07.0]]></CREATED>
+<!--1006100002 CREATEDBY-->
+<!--1006100002-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1006100002 UPDATED-->
+<!--1006100002-->              <UPDATED><![CDATA[2008-05-01 13:25:07.0]]></UPDATED>
+<!--1006100002 UPDATEDBY-->
+<!--1006100002-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1006100002 VALUE-->
+<!--1006100002-->              <VALUE><![CDATA[NoSourceDefined]]></VALUE>
+<!--1006100002 MSGTEXT-->
+<!--1006100002-->              <MSGTEXT><![CDATA[There is no source defined for the process.]]></MSGTEXT>
+<!--1006100002 MSGTYPE-->
+<!--1006100002-->              <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--1006100002**************--></AD_MESSAGE>
+
 <!--1006300000**************--><AD_MESSAGE>
 <!--1006300000 AD_MESSAGE_ID-->
 <!--1006300000-->              <AD_MESSAGE_ID><![CDATA[1006300000]]></AD_MESSAGE_ID>
--- a/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_MODEL_OBJECT.xml	Tue May 27 16:07:57 2008 +0000
@@ -36518,6 +36518,31 @@
 <!--1005900013-->              <ISDEFAULT><![CDATA[N]]></ISDEFAULT>
 <!--1005900013**************--></AD_MODEL_OBJECT>
 
+<!--1006100000**************--><AD_MODEL_OBJECT>
+<!--1006100000 AD_MODEL_OBJECT_ID-->
+<!--1006100000-->              <AD_MODEL_OBJECT_ID><![CDATA[1006100000]]></AD_MODEL_OBJECT_ID>
+<!--1006100000 AD_CLIENT_ID-->
+<!--1006100000-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1006100000 AD_ORG_ID-->
+<!--1006100000-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1006100000 ISACTIVE-->
+<!--1006100000-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1006100000 CREATED-->
+<!--1006100000-->              <CREATED><![CDATA[2008-05-01 07:36:49.0]]></CREATED>
+<!--1006100000 CREATEDBY-->
+<!--1006100000-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1006100000 UPDATED-->
+<!--1006100000-->              <UPDATED><![CDATA[2008-05-01 07:36:54.0]]></UPDATED>
+<!--1006100000 UPDATEDBY-->
+<!--1006100000-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--1006100000 ACTION-->
+<!--1006100000-->              <ACTION><![CDATA[P]]></ACTION>
+<!--1006100000 CLASSNAME-->
+<!--1006100000-->              <CLASSNAME><![CDATA[org.openbravo.erpCommon.utility.OpenPentaho]]></CLASSNAME>
+<!--1006100000 ISDEFAULT-->
+<!--1006100000-->              <ISDEFAULT><![CDATA[Y]]></ISDEFAULT>
+<!--1006100000**************--></AD_MODEL_OBJECT>
+
 <!--
 ************************
 0. End of Core Range.
--- a/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml	Tue May 27 16:07:57 2008 +0000
@@ -62480,6 +62480,31 @@
 <!--1005900027-->              <ISDEFAULT><![CDATA[N]]></ISDEFAULT>
 <!--1005900027**************--></AD_MODEL_OBJECT_MAPPING>
 
+<!--1006100000**************--><AD_MODEL_OBJECT_MAPPING>
+<!--1006100000 AD_MODEL_OBJECT_MAPPING_ID-->
+<!--1006100000-->              <AD_MODEL_OBJECT_MAPPING_ID><![CDATA[1006100000]]></AD_MODEL_OBJECT_MAPPING_ID>
+<!--1006100000 AD_CLIENT_ID-->
+<!--1006100000-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1006100000 AD_ORG_ID-->
+<!--1006100000-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1006100000 ISACTIVE-->
+<!--1006100000-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1006100000 CREATED-->
+<!--1006100000-->              <CREATED><![CDATA[2008-05-01 07:37:43.0]]></CREATED>
+<!--1006100000 CREATEDBY-->
+<!--1006100000-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--1006100000 UPDATED-->
+<!--1006100000-->              <UPDATED><![CDATA[2008-05-01 07:37:48.0]]></UPDATED>
+<!--1006100000 UPDATEDBY-->
+<!--1006100000-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--1006100000 AD_MODEL_OBJECT_ID-->
+<!--1006100000-->              <AD_MODEL_OBJECT_ID><![CDATA[1006100000]]></AD_MODEL_OBJECT_ID>
+<!--1006100000 MAPPINGNAME-->
+<!--1006100000-->              <MAPPINGNAME><![CDATA[/utility/OpenPentaho.html]]></MAPPINGNAME>
+<!--1006100000 ISDEFAULT-->
+<!--1006100000-->              <ISDEFAULT><![CDATA[N]]></ISDEFAULT>
+<!--1006100000**************--></AD_MODEL_OBJECT_MAPPING>
+
 <!--1006300000**************--><AD_MODEL_OBJECT_MAPPING>
 <!--1006300000 AD_MODEL_OBJECT_MAPPING_ID-->
 <!--1006300000-->              <AD_MODEL_OBJECT_MAPPING_ID><![CDATA[1006300000]]></AD_MODEL_OBJECT_MAPPING_ID>
--- a/src-db/database/sourcedata/AD_PROCESS.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_PROCESS.xml	Tue May 27 16:07:57 2008 +0000
@@ -11567,6 +11567,131 @@
 <!--1004400004-->              <JRNAME><![CDATA[@basedesign@/org/openbravo/erpReports/RptM_Requisition.jrxml]]></JRNAME>
 <!--1004400004**************--></AD_PROCESS>
 
+<!--1004400006**************--><AD_PROCESS>
+<!--1004400006 AD_PROCESS_ID-->
+<!--1004400006-->              <AD_PROCESS_ID><![CDATA[1004400006]]></AD_PROCESS_ID>
+<!--1004400006 AD_CLIENT_ID-->
+<!--1004400006-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400006 AD_ORG_ID-->
+<!--1004400006-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400006 ISACTIVE-->
+<!--1004400006-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400006 CREATED-->
+<!--1004400006-->              <CREATED><![CDATA[2008-04-22 17:16:39.0]]></CREATED>
+<!--1004400006 CREATEDBY-->
+<!--1004400006-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400006 UPDATED-->
+<!--1004400006-->              <UPDATED><![CDATA[2008-05-26 13:58:59.0]]></UPDATED>
+<!--1004400006 UPDATEDBY-->
+<!--1004400006-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400006 VALUE-->
+<!--1004400006-->              <VALUE><![CDATA[FinantialCube]]></VALUE>
+<!--1004400006 NAME-->
+<!--1004400006-->              <NAME><![CDATA[Finantial Cube]]></NAME>
+<!--1004400006 DESCRIPTION-->
+<!--1004400006-->              <DESCRIPTION><![CDATA[Finantial Cube]]></DESCRIPTION>
+<!--1004400006 ACCESSLEVEL-->
+<!--1004400006-->              <ACCESSLEVEL><![CDATA[7]]></ACCESSLEVEL>
+<!--1004400006 ISUSERSTARTABLE-->
+<!--1004400006-->              <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--1004400006 ISREPORT-->
+<!--1004400006-->              <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--1004400006 ISDIRECTPRINT-->
+<!--1004400006-->              <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--1004400006 ISBACKGROUND-->
+<!--1004400006-->              <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--1004400006 ISJASPER-->
+<!--1004400006-->              <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--1004400006 SERVICE_TYPE-->
+<!--1004400006-->              <SERVICE_TYPE><![CDATA[PS]]></SERVICE_TYPE>
+<!--1004400006 ISEXTERNALSERVICE-->
+<!--1004400006-->              <ISEXTERNALSERVICE><![CDATA[Y]]></ISEXTERNALSERVICE>
+<!--1004400006 SERVICE_SOURCE-->
+<!--1004400006-->              <SERVICE_SOURCE><![CDATA[/Pivot?solution=samples&path=analysis_ob&action=openbravo-pivot.xaction]]></SERVICE_SOURCE>
+<!--1004400006**************--></AD_PROCESS>
+
+<!--1004400007**************--><AD_PROCESS>
+<!--1004400007 AD_PROCESS_ID-->
+<!--1004400007-->              <AD_PROCESS_ID><![CDATA[1004400007]]></AD_PROCESS_ID>
+<!--1004400007 AD_CLIENT_ID-->
+<!--1004400007-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400007 AD_ORG_ID-->
+<!--1004400007-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400007 ISACTIVE-->
+<!--1004400007-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400007 CREATED-->
+<!--1004400007-->              <CREATED><![CDATA[2008-05-15 18:24:17.0]]></CREATED>
+<!--1004400007 CREATEDBY-->
+<!--1004400007-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400007 UPDATED-->
+<!--1004400007-->              <UPDATED><![CDATA[2008-05-26 14:01:39.0]]></UPDATED>
+<!--1004400007 UPDATEDBY-->
+<!--1004400007-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400007 VALUE-->
+<!--1004400007-->              <VALUE><![CDATA[OBDashboard]]></VALUE>
+<!--1004400007 NAME-->
+<!--1004400007-->              <NAME><![CDATA[Revenue and Expenses analisys]]></NAME>
+<!--1004400007 ACCESSLEVEL-->
+<!--1004400007-->              <ACCESSLEVEL><![CDATA[3]]></ACCESSLEVEL>
+<!--1004400007 ISUSERSTARTABLE-->
+<!--1004400007-->              <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--1004400007 ISREPORT-->
+<!--1004400007-->              <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--1004400007 ISDIRECTPRINT-->
+<!--1004400007-->              <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--1004400007 ISBACKGROUND-->
+<!--1004400007-->              <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--1004400007 ISJASPER-->
+<!--1004400007-->              <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--1004400007 SERVICE_TYPE-->
+<!--1004400007-->              <SERVICE_TYPE><![CDATA[PS]]></SERVICE_TYPE>
+<!--1004400007 ISEXTERNALSERVICE-->
+<!--1004400007-->              <ISEXTERNALSERVICE><![CDATA[Y]]></ISEXTERNALSERVICE>
+<!--1004400007 SERVICE_SOURCE-->
+<!--1004400007-->              <SERVICE_SOURCE><![CDATA[/OpenbravoDashboard]]></SERVICE_SOURCE>
+<!--1004400007**************--></AD_PROCESS>
+
+<!--1004400008**************--><AD_PROCESS>
+<!--1004400008 AD_PROCESS_ID-->
+<!--1004400008-->              <AD_PROCESS_ID><![CDATA[1004400008]]></AD_PROCESS_ID>
+<!--1004400008 AD_CLIENT_ID-->
+<!--1004400008-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400008 AD_ORG_ID-->
+<!--1004400008-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400008 ISACTIVE-->
+<!--1004400008-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400008 CREATED-->
+<!--1004400008-->              <CREATED><![CDATA[2008-05-15 18:25:00.0]]></CREATED>
+<!--1004400008 CREATEDBY-->
+<!--1004400008-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400008 UPDATED-->
+<!--1004400008-->              <UPDATED><![CDATA[2008-05-26 14:00:00.0]]></UPDATED>
+<!--1004400008 UPDATEDBY-->
+<!--1004400008-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400008 VALUE-->
+<!--1004400008-->              <VALUE><![CDATA[OBCFODashboard]]></VALUE>
+<!--1004400008 NAME-->
+<!--1004400008-->              <NAME><![CDATA[Revenue and Expenses CFO]]></NAME>
+<!--1004400008 ACCESSLEVEL-->
+<!--1004400008-->              <ACCESSLEVEL><![CDATA[3]]></ACCESSLEVEL>
+<!--1004400008 ISUSERSTARTABLE-->
+<!--1004400008-->              <ISUSERSTARTABLE><![CDATA[N]]></ISUSERSTARTABLE>
+<!--1004400008 ISREPORT-->
+<!--1004400008-->              <ISREPORT><![CDATA[N]]></ISREPORT>
+<!--1004400008 ISDIRECTPRINT-->
+<!--1004400008-->              <ISDIRECTPRINT><![CDATA[N]]></ISDIRECTPRINT>
+<!--1004400008 ISBACKGROUND-->
+<!--1004400008-->              <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--1004400008 ISJASPER-->
+<!--1004400008-->              <ISJASPER><![CDATA[N]]></ISJASPER>
+<!--1004400008 SERVICE_TYPE-->
+<!--1004400008-->              <SERVICE_TYPE><![CDATA[PS]]></SERVICE_TYPE>
+<!--1004400008 ISEXTERNALSERVICE-->
+<!--1004400008-->              <ISEXTERNALSERVICE><![CDATA[Y]]></ISEXTERNALSERVICE>
+<!--1004400008 SERVICE_SOURCE-->
+<!--1004400008-->              <SERVICE_SOURCE><![CDATA[/OpenbravoDashboard_CFO]]></SERVICE_SOURCE>
+<!--1004400008**************--></AD_PROCESS>
+
 <!--1005200000**************--><AD_PROCESS>
 <!--1005200000 AD_PROCESS_ID-->
 <!--1005200000-->              <AD_PROCESS_ID><![CDATA[1005200000]]></AD_PROCESS_ID>
--- a/src-db/database/sourcedata/AD_REFERENCE.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_REFERENCE.xml	Tue May 27 16:07:57 2008 +0000
@@ -7445,6 +7445,33 @@
 <!--1004400001-->              <VALIDATIONTYPE><![CDATA[L]]></VALIDATIONTYPE>
 <!--1004400001**************--></AD_REFERENCE>
 
+<!--1004400002**************--><AD_REFERENCE>
+<!--1004400002 AD_REFERENCE_ID-->
+<!--1004400002-->              <AD_REFERENCE_ID><![CDATA[1004400002]]></AD_REFERENCE_ID>
+<!--1004400002 AD_CLIENT_ID-->
+<!--1004400002-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400002 AD_ORG_ID-->
+<!--1004400002-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400002 ISACTIVE-->
+<!--1004400002-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400002 CREATED-->
+<!--1004400002-->              <CREATED><![CDATA[2008-04-18 12:12:11.0]]></CREATED>
+<!--1004400002 CREATEDBY-->
+<!--1004400002-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400002 UPDATED-->
+<!--1004400002-->              <UPDATED><![CDATA[2008-04-18 12:14:42.0]]></UPDATED>
+<!--1004400002 UPDATEDBY-->
+<!--1004400002-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400002 NAME-->
+<!--1004400002-->              <NAME><![CDATA[External Services]]></NAME>
+<!--1004400002 DESCRIPTION-->
+<!--1004400002-->              <DESCRIPTION><![CDATA[List of available external services]]></DESCRIPTION>
+<!--1004400002 HELP-->
+<!--1004400002-->              <HELP><![CDATA[List of available external services]]></HELP>
+<!--1004400002 VALIDATIONTYPE-->
+<!--1004400002-->              <VALIDATIONTYPE><![CDATA[L]]></VALIDATIONTYPE>
+<!--1004400002**************--></AD_REFERENCE>
+
 <!--1005900000**************--><AD_REFERENCE>
 <!--1005900000 AD_REFERENCE_ID-->
 <!--1005900000-->              <AD_REFERENCE_ID><![CDATA[1005900000]]></AD_REFERENCE_ID>
--- a/src-db/database/sourcedata/AD_REF_LIST.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_REF_LIST.xml	Tue May 27 16:07:57 2008 +0000
@@ -17667,6 +17667,31 @@
 <!--1004400005-->              <AD_REFERENCE_ID><![CDATA[1004400001]]></AD_REFERENCE_ID>
 <!--1004400005**************--></AD_REF_LIST>
 
+<!--1004400006**************--><AD_REF_LIST>
+<!--1004400006 AD_REF_LIST_ID-->
+<!--1004400006-->              <AD_REF_LIST_ID><![CDATA[1004400006]]></AD_REF_LIST_ID>
+<!--1004400006 AD_CLIENT_ID-->
+<!--1004400006-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1004400006 AD_ORG_ID-->
+<!--1004400006-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1004400006 ISACTIVE-->
+<!--1004400006-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1004400006 CREATED-->
+<!--1004400006-->              <CREATED><![CDATA[2008-04-18 12:15:01.0]]></CREATED>
+<!--1004400006 CREATEDBY-->
+<!--1004400006-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--1004400006 UPDATED-->
+<!--1004400006-->              <UPDATED><![CDATA[2008-04-18 12:15:01.0]]></UPDATED>
+<!--1004400006 UPDATEDBY-->
+<!--1004400006-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--1004400006 VALUE-->
+<!--1004400006-->              <VALUE><![CDATA[PS]]></VALUE>
+<!--1004400006 NAME-->
+<!--1004400006-->              <NAME><![CDATA[Pentaho solution]]></NAME>
+<!--1004400006 AD_REFERENCE_ID-->
+<!--1004400006-->              <AD_REFERENCE_ID><![CDATA[1004400002]]></AD_REFERENCE_ID>
+<!--1004400006**************--></AD_REF_LIST>
+
 <!--1005900000**************--><AD_REF_LIST>
 <!--1005900000 AD_REF_LIST_ID-->
 <!--1005900000-->              <AD_REF_LIST_ID><![CDATA[1005900000]]></AD_REF_LIST_ID>
--- a/src-db/database/sourcedata/AD_TABLE.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_TABLE.xml	Tue May 27 16:07:57 2008 +0000
@@ -7231,7 +7231,7 @@
 <!--383 ISDEFAULTACCT-->
 <!--383-->              <ISDEFAULTACCT><![CDATA[N]]></ISDEFAULTACCT>
 <!--383 SQL_RECORD_IDENTIFIER-->
-<!--383-->              <SQL_RECORD_IDENTIFIER><![CDATA[SELECT TO_CHAR(COALESCE(TO_CHAR(T.Line),''))||' - '||--No key found AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, M_Product_BOM T WHERE M_Product_BOM_ID=:c_ID]]></SQL_RECORD_IDENTIFIER>
+<!--383-->              <SQL_RECORD_IDENTIFIER><![CDATA[SELECT --No key found||' - '||TO_CHAR(COALESCE(TO_CHAR(T.Line),'')) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, M_Product_BOM T WHERE M_Product_BOM_ID=:c_ID]]></SQL_RECORD_IDENTIFIER>
 <!--383 DEVELOPMENTSTATUS-->
 <!--383-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--383**************--></AD_TABLE>
@@ -8067,7 +8067,7 @@
 <!--410 ISDEFAULTACCT-->
 <!--410-->              <ISDEFAULTACCT><![CDATA[N]]></ISDEFAULTACCT>
 <!--410 SQL_RECORD_IDENTIFIER-->
-<!--410-->              <SQL_RECORD_IDENTIFIER><![CDATA[SELECT (SELECT TO_CHAR(COALESCE(TO_CHAR(TT.Name),'')) FROM C_Cash TT WHERE TT.C_Cash_ID=T.C_Cash_ID) ||' - '||TO_CHAR(COALESCE(TO_CHAR(T.Amount),''))||' - '||TO_CHAR(COALESCE(TO_CHAR(T.Line),'')) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, C_CashLine T WHERE C_CashLine_ID=:c_ID]]></SQL_RECORD_IDENTIFIER>
+<!--410-->              <SQL_RECORD_IDENTIFIER><![CDATA[SELECT (SELECT TO_CHAR(COALESCE(TO_CHAR(TT.Name),'')) FROM C_Cash TT WHERE TT.C_Cash_ID=T.C_Cash_ID) ||' - '||TO_CHAR(COALESCE(TO_CHAR(T.Line),''))||' - '||TO_CHAR(COALESCE(TO_CHAR(T.Amount),'')) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, C_CashLine T WHERE C_CashLine_ID=:c_ID]]></SQL_RECORD_IDENTIFIER>
 <!--410 DEVELOPMENTSTATUS-->
 <!--410-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--410**************--></AD_TABLE>
@@ -16898,7 +16898,7 @@
 <!--800147 ISDEFAULTACCT-->
 <!--800147-->              <ISDEFAULTACCT><![CDATA[N]]></ISDEFAULTACCT>
 <!--800147 SQL_RECORD_IDENTIFIER-->
-<!--800147-->              <SQL_RECORD_IDENTIFIER><![CDATA[SELECT TO_CHAR(COALESCE(TO_CHAR(T.Text),'')) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, AD_TextInterfaces_Trl T WHERE AD_Textinterfaces_ID=:c_ID]]></SQL_RECORD_IDENTIFIER>
+<!--800147-->              <SQL_RECORD_IDENTIFIER><![CDATA[SELECT TO_CHAR(COALESCE(TO_CHAR(T.Text),'')) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, AD_TextInterfaces_Trl T WHERE AD_Language=:c_ID]]></SQL_RECORD_IDENTIFIER>
 <!--800147 DEVELOPMENTSTATUS-->
 <!--800147-->              <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
 <!--800147**************--></AD_TABLE>
--- a/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_TEXTINTERFACES.xml	Tue May 27 16:07:57 2008 +0000
@@ -486,7 +486,7 @@
 <!--800161 TEXT-->
 <!--800161-->              <TEXT><![CDATA[Go to previous range]]></TEXT>
 <!--800161 ISUSED-->
-<!--800161-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800161-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800161**************--></AD_TEXTINTERFACES>
 
 <!--800162**************--><AD_TEXTINTERFACES>
@@ -509,7 +509,7 @@
 <!--800162 TEXT-->
 <!--800162-->              <TEXT><![CDATA[Go to next range]]></TEXT>
 <!--800162 ISUSED-->
-<!--800162-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800162-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800162**************--></AD_TEXTINTERFACES>
 
 <!--800165**************--><AD_TEXTINTERFACES>
@@ -1081,7 +1081,7 @@
 <!--800269 FILENAME-->
 <!--800269-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F1.html]]></FILENAME>
 <!--800269 ISUSED-->
-<!--800269-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800269-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800269**************--></AD_TEXTINTERFACES>
 
 <!--800285**************--><AD_TEXTINTERFACES>
@@ -1106,7 +1106,7 @@
 <!--800285 FILENAME-->
 <!--800285-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F2.html]]></FILENAME>
 <!--800285 ISUSED-->
-<!--800285-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800285-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800285**************--></AD_TEXTINTERFACES>
 
 <!--800287**************--><AD_TEXTINTERFACES>
@@ -1154,7 +1154,7 @@
 <!--800289 FILENAME-->
 <!--800289-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F2.html]]></FILENAME>
 <!--800289 ISUSED-->
-<!--800289-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800289-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800289**************--></AD_TEXTINTERFACES>
 
 <!--800290**************--><AD_TEXTINTERFACES>
@@ -1179,7 +1179,7 @@
 <!--800290 FILENAME-->
 <!--800290-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F2.html]]></FILENAME>
 <!--800290 ISUSED-->
-<!--800290-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800290-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800290**************--></AD_TEXTINTERFACES>
 
 <!--800291**************--><AD_TEXTINTERFACES>
@@ -1204,7 +1204,7 @@
 <!--800291 FILENAME-->
 <!--800291-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F2.html]]></FILENAME>
 <!--800291 ISUSED-->
-<!--800291-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800291-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800291**************--></AD_TEXTINTERFACES>
 
 <!--800301**************--><AD_TEXTINTERFACES>
@@ -2210,7 +2210,7 @@
 <!--800520 TEXT-->
 <!--800520-->              <TEXT><![CDATA[PDF_Report]]></TEXT>
 <!--800520 ISUSED-->
-<!--800520-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--800520-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--800520**************--></AD_TEXTINTERFACES>
 
 <!--800545**************--><AD_TEXTINTERFACES>
@@ -6100,7 +6100,7 @@
 <!--802709 FILENAME-->
 <!--802709-->              <FILENAME><![CDATA[/org/openbravo/base/secureApp/HtmlErrorLogin.html]]></FILENAME>
 <!--802709 ISUSED-->
-<!--802709-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802709-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802709**************--></AD_TEXTINTERFACES>
 
 <!--802715**************--><AD_TEXTINTERFACES>
@@ -6700,7 +6700,7 @@
 <!--802944 FILENAME-->
 <!--802944-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802944 ISUSED-->
-<!--802944-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802944-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802944**************--></AD_TEXTINTERFACES>
 
 <!--802948**************--><AD_TEXTINTERFACES>
@@ -6725,7 +6725,7 @@
 <!--802948 FILENAME-->
 <!--802948-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802948 ISUSED-->
-<!--802948-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802948-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802948**************--></AD_TEXTINTERFACES>
 
 <!--802949**************--><AD_TEXTINTERFACES>
@@ -6773,7 +6773,7 @@
 <!--802950 FILENAME-->
 <!--802950-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802950 ISUSED-->
-<!--802950-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802950-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802950**************--></AD_TEXTINTERFACES>
 
 <!--802951**************--><AD_TEXTINTERFACES>
@@ -6798,7 +6798,7 @@
 <!--802951 FILENAME-->
 <!--802951-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802951 ISUSED-->
-<!--802951-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802951-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802951**************--></AD_TEXTINTERFACES>
 
 <!--802952**************--><AD_TEXTINTERFACES>
@@ -6823,7 +6823,7 @@
 <!--802952 FILENAME-->
 <!--802952-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802952 ISUSED-->
-<!--802952-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802952-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802952**************--></AD_TEXTINTERFACES>
 
 <!--802953**************--><AD_TEXTINTERFACES>
@@ -6848,7 +6848,7 @@
 <!--802953 FILENAME-->
 <!--802953-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802953 ISUSED-->
-<!--802953-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802953-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802953**************--></AD_TEXTINTERFACES>
 
 <!--802956**************--><AD_TEXTINTERFACES>
@@ -6873,7 +6873,7 @@
 <!--802956 FILENAME-->
 <!--802956-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802956 ISUSED-->
-<!--802956-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802956-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802956**************--></AD_TEXTINTERFACES>
 
 <!--802957**************--><AD_TEXTINTERFACES>
@@ -6898,7 +6898,7 @@
 <!--802957 FILENAME-->
 <!--802957-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802957 ISUSED-->
-<!--802957-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802957-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802957**************--></AD_TEXTINTERFACES>
 
 <!--802959**************--><AD_TEXTINTERFACES>
@@ -6923,7 +6923,7 @@
 <!--802959 FILENAME-->
 <!--802959-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Requests_F2.html]]></FILENAME>
 <!--802959 ISUSED-->
-<!--802959-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--802959-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--802959**************--></AD_TEXTINTERFACES>
 
 <!--802980**************--><AD_TEXTINTERFACES>
@@ -8086,7 +8086,7 @@
 <!--803275 FILENAME-->
 <!--803275-->              <FILENAME><![CDATA[/org/openbravo/erpReports/RptM_InoutLines.fo]]></FILENAME>
 <!--803275 ISUSED-->
-<!--803275-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--803275-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--803275**************--></AD_TEXTINTERFACES>
 
 <!--803276**************--><AD_TEXTINTERFACES>
@@ -10122,7 +10122,7 @@
 <!--803637 FILENAME-->
 <!--803637-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportProductionPDF.fo]]></FILENAME>
 <!--803637 ISUSED-->
-<!--803637-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--803637-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--803637**************--></AD_TEXTINTERFACES>
 
 <!--803639**************--><AD_TEXTINTERFACES>
@@ -12262,7 +12262,7 @@
 <!--804334 FILENAME-->
 <!--804334-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/About.html]]></FILENAME>
 <!--804334 ISUSED-->
-<!--804334-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--804334-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--804334**************--></AD_TEXTINTERFACES>
 
 <!--804382**************--><AD_TEXTINTERFACES>
@@ -13435,7 +13435,7 @@
 <!--805047 FILENAME-->
 <!--805047-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.html]]></FILENAME>
 <!--805047 ISUSED-->
-<!--805047-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--805047-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--805047**************--></AD_TEXTINTERFACES>
 
 <!--805051**************--><AD_TEXTINTERFACES>
@@ -16261,7 +16261,7 @@
 <!--806148 FILENAME-->
 <!--806148-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F1.html]]></FILENAME>
 <!--806148 ISUSED-->
-<!--806148-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--806148-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--806148**************--></AD_TEXTINTERFACES>
 
 <!--806150**************--><AD_TEXTINTERFACES>
@@ -16286,7 +16286,7 @@
 <!--806150 FILENAME-->
 <!--806150-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F1.html]]></FILENAME>
 <!--806150 ISUSED-->
-<!--806150-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--806150-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--806150**************--></AD_TEXTINTERFACES>
 
 <!--806158**************--><AD_TEXTINTERFACES>
@@ -20268,7 +20268,7 @@
 <!--807058 TEXT-->
 <!--807058-->              <TEXT><![CDATA[Cash book]]></TEXT>
 <!--807058 ISUSED-->
-<!--807058-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807058-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807058**************--></AD_TEXTINTERFACES>
 
 <!--807059**************--><AD_TEXTINTERFACES>
@@ -20291,7 +20291,7 @@
 <!--807059 TEXT-->
 <!--807059-->              <TEXT><![CDATA[Cash journal selector]]></TEXT>
 <!--807059 ISUSED-->
-<!--807059-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807059-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807059**************--></AD_TEXTINTERFACES>
 
 <!--807060**************--><AD_TEXTINTERFACES>
@@ -20360,7 +20360,7 @@
 <!--807062 TEXT-->
 <!--807062-->              <TEXT><![CDATA[Clear Session]]></TEXT>
 <!--807062 ISUSED-->
-<!--807062-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807062-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807062**************--></AD_TEXTINTERFACES>
 
 <!--807063**************--><AD_TEXTINTERFACES>
@@ -21050,7 +21050,7 @@
 <!--807097 TEXT-->
 <!--807097-->              <TEXT><![CDATA[Date planed from]]></TEXT>
 <!--807097 ISUSED-->
-<!--807097-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807097-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807097**************--></AD_TEXTINTERFACES>
 
 <!--807099**************--><AD_TEXTINTERFACES>
@@ -22407,7 +22407,7 @@
 <!--807161 TEXT-->
 <!--807161-->              <TEXT><![CDATA[Go to results]]></TEXT>
 <!--807161 ISUSED-->
-<!--807161-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807161-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807161**************--></AD_TEXTINTERFACES>
 
 <!--807162**************--><AD_TEXTINTERFACES>
@@ -23005,7 +23005,7 @@
 <!--807192 TEXT-->
 <!--807192-->              <TEXT><![CDATA[Line No]]></TEXT>
 <!--807192 ISUSED-->
-<!--807192-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807192-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807192**************--></AD_TEXTINTERFACES>
 
 <!--807193**************--><AD_TEXTINTERFACES>
@@ -25397,7 +25397,7 @@
 <!--807307 TEXT-->
 <!--807307-->              <TEXT><![CDATA[Request selector]]></TEXT>
 <!--807307 ISUSED-->
-<!--807307-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807307-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807307**************--></AD_TEXTINTERFACES>
 
 <!--807308**************--><AD_TEXTINTERFACES>
@@ -26225,7 +26225,7 @@
 <!--807346 TEXT-->
 <!--807346-->              <TEXT><![CDATA[Subject]]></TEXT>
 <!--807346 ISUSED-->
-<!--807346-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807346-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807346**************--></AD_TEXTINTERFACES>
 
 <!--807347**************--><AD_TEXTINTERFACES>
@@ -27500,7 +27500,7 @@
 <!--807416 FILENAME-->
 <!--807416-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Shipment.html]]></FILENAME>
 <!--807416 ISUSED-->
-<!--807416-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807416-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807416**************--></AD_TEXTINTERFACES>
 
 <!--807418**************--><AD_TEXTINTERFACES>
@@ -27625,7 +27625,7 @@
 <!--807427 FILENAME-->
 <!--807427-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html]]></FILENAME>
 <!--807427 ISUSED-->
-<!--807427-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807427-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807427**************--></AD_TEXTINTERFACES>
 
 <!--807428**************--><AD_TEXTINTERFACES>
@@ -27823,7 +27823,7 @@
 <!--807446 FILENAME-->
 <!--807446-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html]]></FILENAME>
 <!--807446 ISUSED-->
-<!--807446-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807446-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807446**************--></AD_TEXTINTERFACES>
 
 <!--807447**************--><AD_TEXTINTERFACES>
@@ -28321,7 +28321,7 @@
 <!--807515 FILENAME-->
 <!--807515-->              <FILENAME><![CDATA[/org/openbravo/base/secureApp/HtmlErrorLogin.html]]></FILENAME>
 <!--807515 ISUSED-->
-<!--807515-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--807515-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--807515**************--></AD_TEXTINTERFACES>
 
 <!--807517**************--><AD_TEXTINTERFACES>
@@ -30353,7 +30353,7 @@
 <!--808381 FILENAME-->
 <!--808381-->              <FILENAME><![CDATA[/org/openbravo/erpReports/RptMA_ProcessPlan.jrxml]]></FILENAME>
 <!--808381 ISUSED-->
-<!--808381-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--808381-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--808381**************--></AD_TEXTINTERFACES>
 
 <!--808382**************--><AD_TEXTINTERFACES>
@@ -30378,7 +30378,7 @@
 <!--808382 FILENAME-->
 <!--808382-->              <FILENAME><![CDATA[/org/openbravo/erpReports/RptMA_ProcessPlan.jrxml]]></FILENAME>
 <!--808382 ISUSED-->
-<!--808382-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--808382-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--808382**************--></AD_TEXTINTERFACES>
 
 <!--808386**************--><AD_TEXTINTERFACES>
@@ -32352,7 +32352,7 @@
 <!--809865 FILENAME-->
 <!--809865-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/CashJournal_F3.html]]></FILENAME>
 <!--809865 ISUSED-->
-<!--809865-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--809865-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--809865**************--></AD_TEXTINTERFACES>
 
 <!--809866**************--><AD_TEXTINTERFACES>
@@ -34195,7 +34195,7 @@
 <!--810015 FILENAME-->
 <!--810015-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html]]></FILENAME>
 <!--810015 ISUSED-->
-<!--810015-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--810015-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--810015**************--></AD_TEXTINTERFACES>
 
 <!--810016**************--><AD_TEXTINTERFACES>
@@ -35218,7 +35218,7 @@
 <!--1000100008 FILENAME-->
 <!--1000100008-->              <FILENAME><![CDATA[/org/openbravo/erpReports/RptC_ProposalLines.fo]]></FILENAME>
 <!--1000100008 ISUSED-->
-<!--1000100008-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1000100008-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1000100008**************--></AD_TEXTINTERFACES>
 
 <!--1000100009**************--><AD_TEXTINTERFACES>
@@ -38668,7 +38668,7 @@
 <!--1002100014 FILENAME-->
 <!--1002100014-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/PrintVatRegisters.html]]></FILENAME>
 <!--1002100014 ISUSED-->
-<!--1002100014-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1002100014-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1002100014**************--></AD_TEXTINTERFACES>
 
 <!--1002100015**************--><AD_TEXTINTERFACES>
@@ -42116,7 +42116,7 @@
 <!--1002100152 FILENAME-->
 <!--1002100152-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.jrxml]]></FILENAME>
 <!--1002100152 ISUSED-->
-<!--1002100152-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1002100152-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1002100152**************--></AD_TEXTINTERFACES>
 
 <!--1002100153**************--><AD_TEXTINTERFACES>
@@ -42366,7 +42366,7 @@
 <!--1002100162 FILENAME-->
 <!--1002100162-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.jrxml]]></FILENAME>
 <!--1002100162 ISUSED-->
-<!--1002100162-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1002100162-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1002100162**************--></AD_TEXTINTERFACES>
 
 <!--1002100163**************--><AD_TEXTINTERFACES>
@@ -42666,7 +42666,7 @@
 <!--1003900000 FILENAME-->
 <!--1003900000-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/PrintVatRegisters.html]]></FILENAME>
 <!--1003900000 ISUSED-->
-<!--1003900000-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1003900000-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1003900000**************--></AD_TEXTINTERFACES>
 
 <!--1003900001**************--><AD_TEXTINTERFACES>
@@ -42691,7 +42691,7 @@
 <!--1003900001 FILENAME-->
 <!--1003900001-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/PrintVatRegisters.html]]></FILENAME>
 <!--1003900001 ISUSED-->
-<!--1003900001-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1003900001-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1003900001**************--></AD_TEXTINTERFACES>
 
 <!--1003900002**************--><AD_TEXTINTERFACES>
@@ -43191,7 +43191,7 @@
 <!--1003900021 FILENAME-->
 <!--1003900021-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.jrxml]]></FILENAME>
 <!--1003900021 ISUSED-->
-<!--1003900021-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1003900021-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1003900021**************--></AD_TEXTINTERFACES>
 
 <!--1003900022**************--><AD_TEXTINTERFACES>
@@ -43216,7 +43216,7 @@
 <!--1003900022 FILENAME-->
 <!--1003900022-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.jrxml]]></FILENAME>
 <!--1003900022 ISUSED-->
-<!--1003900022-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1003900022-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1003900022**************--></AD_TEXTINTERFACES>
 
 <!--1003900023**************--><AD_TEXTINTERFACES>
@@ -43241,7 +43241,7 @@
 <!--1003900023 FILENAME-->
 <!--1003900023-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.jrxml]]></FILENAME>
 <!--1003900023 ISUSED-->
-<!--1003900023-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1003900023-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1003900023**************--></AD_TEXTINTERFACES>
 
 <!--1003900024**************--><AD_TEXTINTERFACES>
@@ -43266,7 +43266,7 @@
 <!--1003900024 FILENAME-->
 <!--1003900024-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.jrxml]]></FILENAME>
 <!--1003900024 ISUSED-->
-<!--1003900024-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1003900024-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1003900024**************--></AD_TEXTINTERFACES>
 
 <!--1003900025**************--><AD_TEXTINTERFACES>
@@ -44166,7 +44166,7 @@
 <!--1005300000 FILENAME-->
 <!--1005300000-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300000 ISUSED-->
-<!--1005300000-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300000-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300000**************--></AD_TEXTINTERFACES>
 
 <!--1005300001**************--><AD_TEXTINTERFACES>
@@ -44191,7 +44191,7 @@
 <!--1005300001 FILENAME-->
 <!--1005300001-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300001 ISUSED-->
-<!--1005300001-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300001-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300001**************--></AD_TEXTINTERFACES>
 
 <!--1005300002**************--><AD_TEXTINTERFACES>
@@ -44216,7 +44216,7 @@
 <!--1005300002 FILENAME-->
 <!--1005300002-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300002 ISUSED-->
-<!--1005300002-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300002-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300002**************--></AD_TEXTINTERFACES>
 
 <!--1005300003**************--><AD_TEXTINTERFACES>
@@ -44241,7 +44241,7 @@
 <!--1005300003 FILENAME-->
 <!--1005300003-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300003 ISUSED-->
-<!--1005300003-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300003-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300003**************--></AD_TEXTINTERFACES>
 
 <!--1005300004**************--><AD_TEXTINTERFACES>
@@ -44266,7 +44266,7 @@
 <!--1005300004 FILENAME-->
 <!--1005300004-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300004 ISUSED-->
-<!--1005300004-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300004-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300004**************--></AD_TEXTINTERFACES>
 
 <!--1005300005**************--><AD_TEXTINTERFACES>
@@ -44291,7 +44291,7 @@
 <!--1005300005 FILENAME-->
 <!--1005300005-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300005 ISUSED-->
-<!--1005300005-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300005-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300005**************--></AD_TEXTINTERFACES>
 
 <!--1005300006**************--><AD_TEXTINTERFACES>
@@ -44316,7 +44316,7 @@
 <!--1005300006 FILENAME-->
 <!--1005300006-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300006 ISUSED-->
-<!--1005300006-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300006-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300006**************--></AD_TEXTINTERFACES>
 
 <!--1005300007**************--><AD_TEXTINTERFACES>
@@ -44341,7 +44341,7 @@
 <!--1005300007 FILENAME-->
 <!--1005300007-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300007 ISUSED-->
-<!--1005300007-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300007-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300007**************--></AD_TEXTINTERFACES>
 
 <!--1005300008**************--><AD_TEXTINTERFACES>
@@ -44366,7 +44366,7 @@
 <!--1005300008 FILENAME-->
 <!--1005300008-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300008 ISUSED-->
-<!--1005300008-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300008-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300008**************--></AD_TEXTINTERFACES>
 
 <!--1005300009**************--><AD_TEXTINTERFACES>
@@ -44391,7 +44391,7 @@
 <!--1005300009 FILENAME-->
 <!--1005300009-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html]]></FILENAME>
 <!--1005300009 ISUSED-->
-<!--1005300009-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005300009-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005300009**************--></AD_TEXTINTERFACES>
 
 <!--1005300010**************--><AD_TEXTINTERFACES>
@@ -44691,7 +44691,7 @@
 <!--1005400010 FILENAME-->
 <!--1005400010-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/Registration.html]]></FILENAME>
 <!--1005400010 ISUSED-->
-<!--1005400010-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005400010-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005400010**************--></AD_TEXTINTERFACES>
 
 <!--1005400011**************--><AD_TEXTINTERFACES>
@@ -44741,7 +44741,7 @@
 <!--1005400012 FILENAME-->
 <!--1005400012-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/Heartbeat.html]]></FILENAME>
 <!--1005400012 ISUSED-->
-<!--1005400012-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005400012-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005400012**************--></AD_TEXTINTERFACES>
 
 <!--1005400013**************--><AD_TEXTINTERFACES>
@@ -44791,7 +44791,7 @@
 <!--1005400014 FILENAME-->
 <!--1005400014-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_forms/Heartbeat.html]]></FILENAME>
 <!--1005400014 ISUSED-->
-<!--1005400014-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005400014-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005400014**************--></AD_TEXTINTERFACES>
 
 <!--1005400015**************--><AD_TEXTINTERFACES>
@@ -45066,7 +45066,7 @@
 <!--1005500000 FILENAME-->
 <!--1005500000-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder.html]]></FILENAME>
 <!--1005500000 ISUSED-->
-<!--1005500000-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005500000-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005500000**************--></AD_TEXTINTERFACES>
 
 <!--1005500001**************--><AD_TEXTINTERFACES>
@@ -45091,7 +45091,7 @@
 <!--1005500001 FILENAME-->
 <!--1005500001-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html]]></FILENAME>
 <!--1005500001 ISUSED-->
-<!--1005500001-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005500001-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005500001**************--></AD_TEXTINTERFACES>
 
 <!--1005500002**************--><AD_TEXTINTERFACES>
@@ -45116,7 +45116,7 @@
 <!--1005500002 FILENAME-->
 <!--1005500002-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html]]></FILENAME>
 <!--1005500002 ISUSED-->
-<!--1005500002-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005500002-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005500002**************--></AD_TEXTINTERFACES>
 
 <!--1005500003**************--><AD_TEXTINTERFACES>
@@ -45316,7 +45316,7 @@
 <!--1005500010 FILENAME-->
 <!--1005500010-->              <FILENAME><![CDATA[/org/openbravo/erpReports/RptM_MovementLines.fo]]></FILENAME>
 <!--1005500010 ISUSED-->
-<!--1005500010-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1005500010-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1005500010**************--></AD_TEXTINTERFACES>
 
 <!--1005500011**************--><AD_TEXTINTERFACES>
@@ -45766,7 +45766,7 @@
 <!--1006300000 FILENAME-->
 <!--1006300000-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/InvoiceLine.html]]></FILENAME>
 <!--1006300000 ISUSED-->
-<!--1006300000-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300000-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300000**************--></AD_TEXTINTERFACES>
 
 <!--1006300001**************--><AD_TEXTINTERFACES>
@@ -45791,7 +45791,7 @@
 <!--1006300001 FILENAME-->
 <!--1006300001-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/InvoiceLine.html]]></FILENAME>
 <!--1006300001 ISUSED-->
-<!--1006300001-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300001-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300001**************--></AD_TEXTINTERFACES>
 
 <!--1006300002**************--><AD_TEXTINTERFACES>
@@ -45816,7 +45816,7 @@
 <!--1006300002 FILENAME-->
 <!--1006300002-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/InvoiceLine.html]]></FILENAME>
 <!--1006300002 ISUSED-->
-<!--1006300002-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300002-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300002**************--></AD_TEXTINTERFACES>
 
 <!--1006300003**************--><AD_TEXTINTERFACES>
@@ -45841,7 +45841,7 @@
 <!--1006300003 FILENAME-->
 <!--1006300003-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/InvoiceLine.html]]></FILENAME>
 <!--1006300003 ISUSED-->
-<!--1006300003-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300003-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300003**************--></AD_TEXTINTERFACES>
 
 <!--1006300004**************--><AD_TEXTINTERFACES>
@@ -45866,7 +45866,7 @@
 <!--1006300004 FILENAME-->
 <!--1006300004-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/InvoiceLine.html]]></FILENAME>
 <!--1006300004 ISUSED-->
-<!--1006300004-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300004-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300004**************--></AD_TEXTINTERFACES>
 
 <!--1006300005**************--><AD_TEXTINTERFACES>
@@ -45891,7 +45891,7 @@
 <!--1006300005 FILENAME-->
 <!--1006300005-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceiptLine.html]]></FILENAME>
 <!--1006300005 ISUSED-->
-<!--1006300005-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300005-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300005**************--></AD_TEXTINTERFACES>
 
 <!--1006300006**************--><AD_TEXTINTERFACES>
@@ -45916,7 +45916,7 @@
 <!--1006300006 FILENAME-->
 <!--1006300006-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceiptLine.html]]></FILENAME>
 <!--1006300006 ISUSED-->
-<!--1006300006-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300006-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300006**************--></AD_TEXTINTERFACES>
 
 <!--1006300007**************--><AD_TEXTINTERFACES>
@@ -45941,7 +45941,7 @@
 <!--1006300007 FILENAME-->
 <!--1006300007-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceiptLine.html]]></FILENAME>
 <!--1006300007 ISUSED-->
-<!--1006300007-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300007-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300007**************--></AD_TEXTINTERFACES>
 
 <!--1006300008**************--><AD_TEXTINTERFACES>
@@ -45966,7 +45966,7 @@
 <!--1006300008 FILENAME-->
 <!--1006300008-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceiptLine.html]]></FILENAME>
 <!--1006300008 ISUSED-->
-<!--1006300008-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300008-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300008**************--></AD_TEXTINTERFACES>
 
 <!--1006300009**************--><AD_TEXTINTERFACES>
@@ -45991,7 +45991,7 @@
 <!--1006300009 FILENAME-->
 <!--1006300009-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceiptLine.html]]></FILENAME>
 <!--1006300009 ISUSED-->
-<!--1006300009-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300009-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300009**************--></AD_TEXTINTERFACES>
 
 <!--1006300010**************--><AD_TEXTINTERFACES>
@@ -46016,7 +46016,7 @@
 <!--1006300010 FILENAME-->
 <!--1006300010-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Account.html]]></FILENAME>
 <!--1006300010 ISUSED-->
-<!--1006300010-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300010-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300010**************--></AD_TEXTINTERFACES>
 
 <!--1006300011**************--><AD_TEXTINTERFACES>
@@ -46041,7 +46041,7 @@
 <!--1006300011 FILENAME-->
 <!--1006300011-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Account.html]]></FILENAME>
 <!--1006300011 ISUSED-->
-<!--1006300011-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300011-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300011**************--></AD_TEXTINTERFACES>
 
 <!--1006300012**************--><AD_TEXTINTERFACES>
@@ -46066,7 +46066,7 @@
 <!--1006300012 FILENAME-->
 <!--1006300012-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Account.html]]></FILENAME>
 <!--1006300012 ISUSED-->
-<!--1006300012-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300012-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300012**************--></AD_TEXTINTERFACES>
 
 <!--1006300013**************--><AD_TEXTINTERFACES>
@@ -46091,7 +46091,7 @@
 <!--1006300013 FILENAME-->
 <!--1006300013-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300013 ISUSED-->
-<!--1006300013-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300013-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300013**************--></AD_TEXTINTERFACES>
 
 <!--1006300014**************--><AD_TEXTINTERFACES>
@@ -46116,7 +46116,7 @@
 <!--1006300014 FILENAME-->
 <!--1006300014-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300014 ISUSED-->
-<!--1006300014-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300014-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300014**************--></AD_TEXTINTERFACES>
 
 <!--1006300015**************--><AD_TEXTINTERFACES>
@@ -46141,7 +46141,7 @@
 <!--1006300015 FILENAME-->
 <!--1006300015-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300015 ISUSED-->
-<!--1006300015-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300015-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300015**************--></AD_TEXTINTERFACES>
 
 <!--1006300016**************--><AD_TEXTINTERFACES>
@@ -46166,7 +46166,7 @@
 <!--1006300016 FILENAME-->
 <!--1006300016-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300016 ISUSED-->
-<!--1006300016-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300016-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300016**************--></AD_TEXTINTERFACES>
 
 <!--1006300017**************--><AD_TEXTINTERFACES>
@@ -46191,7 +46191,7 @@
 <!--1006300017 FILENAME-->
 <!--1006300017-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300017 ISUSED-->
-<!--1006300017-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300017-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300017**************--></AD_TEXTINTERFACES>
 
 <!--1006300018**************--><AD_TEXTINTERFACES>
@@ -46216,7 +46216,7 @@
 <!--1006300018 FILENAME-->
 <!--1006300018-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300018 ISUSED-->
-<!--1006300018-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300018-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300018**************--></AD_TEXTINTERFACES>
 
 <!--1006300019**************--><AD_TEXTINTERFACES>
@@ -46241,7 +46241,7 @@
 <!--1006300019 FILENAME-->
 <!--1006300019-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrderLine.html]]></FILENAME>
 <!--1006300019 ISUSED-->
-<!--1006300019-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300019-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300019**************--></AD_TEXTINTERFACES>
 
 <!--1006300020**************--><AD_TEXTINTERFACES>
@@ -46266,7 +46266,7 @@
 <!--1006300020 FILENAME-->
 <!--1006300020-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Invoice.html]]></FILENAME>
 <!--1006300020 ISUSED-->
-<!--1006300020-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300020-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300020**************--></AD_TEXTINTERFACES>
 
 <!--1006300021**************--><AD_TEXTINTERFACES>
@@ -46291,7 +46291,7 @@
 <!--1006300021 FILENAME-->
 <!--1006300021-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Invoice.html]]></FILENAME>
 <!--1006300021 ISUSED-->
-<!--1006300021-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300021-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300021**************--></AD_TEXTINTERFACES>
 
 <!--1006300022**************--><AD_TEXTINTERFACES>
@@ -46316,7 +46316,7 @@
 <!--1006300022 FILENAME-->
 <!--1006300022-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Invoice.html]]></FILENAME>
 <!--1006300022 ISUSED-->
-<!--1006300022-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300022-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300022**************--></AD_TEXTINTERFACES>
 
 <!--1006300023**************--><AD_TEXTINTERFACES>
@@ -46341,7 +46341,7 @@
 <!--1006300023 FILENAME-->
 <!--1006300023-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Invoice.html]]></FILENAME>
 <!--1006300023 ISUSED-->
-<!--1006300023-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300023-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300023**************--></AD_TEXTINTERFACES>
 
 <!--1006300024**************--><AD_TEXTINTERFACES>
@@ -46366,7 +46366,7 @@
 <!--1006300024 FILENAME-->
 <!--1006300024-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Invoice.html]]></FILENAME>
 <!--1006300024 ISUSED-->
-<!--1006300024-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300024-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300024**************--></AD_TEXTINTERFACES>
 
 <!--1006300025**************--><AD_TEXTINTERFACES>
@@ -46391,7 +46391,7 @@
 <!--1006300025 FILENAME-->
 <!--1006300025-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Invoice.html]]></FILENAME>
 <!--1006300025 ISUSED-->
-<!--1006300025-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300025-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300025**************--></AD_TEXTINTERFACES>
 
 <!--1006300026**************--><AD_TEXTINTERFACES>
@@ -46416,7 +46416,7 @@
 <!--1006300026 FILENAME-->
 <!--1006300026-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300026 ISUSED-->
-<!--1006300026-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300026-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300026**************--></AD_TEXTINTERFACES>
 
 <!--1006300027**************--><AD_TEXTINTERFACES>
@@ -46441,7 +46441,7 @@
 <!--1006300027 FILENAME-->
 <!--1006300027-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300027 ISUSED-->
-<!--1006300027-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300027-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300027**************--></AD_TEXTINTERFACES>
 
 <!--1006300028**************--><AD_TEXTINTERFACES>
@@ -46466,7 +46466,7 @@
 <!--1006300028 FILENAME-->
 <!--1006300028-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300028 ISUSED-->
-<!--1006300028-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300028-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300028**************--></AD_TEXTINTERFACES>
 
 <!--1006300029**************--><AD_TEXTINTERFACES>
@@ -46491,7 +46491,7 @@
 <!--1006300029 FILENAME-->
 <!--1006300029-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300029 ISUSED-->
-<!--1006300029-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300029-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300029**************--></AD_TEXTINTERFACES>
 
 <!--1006300030**************--><AD_TEXTINTERFACES>
@@ -46516,7 +46516,7 @@
 <!--1006300030 FILENAME-->
 <!--1006300030-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300030 ISUSED-->
-<!--1006300030-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300030-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300030**************--></AD_TEXTINTERFACES>
 
 <!--1006300031**************--><AD_TEXTINTERFACES>
@@ -46541,7 +46541,7 @@
 <!--1006300031 FILENAME-->
 <!--1006300031-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300031 ISUSED-->
-<!--1006300031-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300031-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300031**************--></AD_TEXTINTERFACES>
 
 <!--1006300032**************--><AD_TEXTINTERFACES>
@@ -46566,7 +46566,7 @@
 <!--1006300032 FILENAME-->
 <!--1006300032-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300032 ISUSED-->
-<!--1006300032-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300032-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300032**************--></AD_TEXTINTERFACES>
 
 <!--1006300033**************--><AD_TEXTINTERFACES>
@@ -46591,7 +46591,7 @@
 <!--1006300033 FILENAME-->
 <!--1006300033-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300033 ISUSED-->
-<!--1006300033-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300033-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300033**************--></AD_TEXTINTERFACES>
 
 <!--1006300034**************--><AD_TEXTINTERFACES>
@@ -46616,7 +46616,7 @@
 <!--1006300034 FILENAME-->
 <!--1006300034-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/DebtPayment.html]]></FILENAME>
 <!--1006300034 ISUSED-->
-<!--1006300034-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300034-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300034**************--></AD_TEXTINTERFACES>
 
 <!--1006300035**************--><AD_TEXTINTERFACES>
@@ -46641,7 +46641,7 @@
 <!--1006300035 FILENAME-->
 <!--1006300035-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html]]></FILENAME>
 <!--1006300035 ISUSED-->
-<!--1006300035-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300035-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300035**************--></AD_TEXTINTERFACES>
 
 <!--1006300036**************--><AD_TEXTINTERFACES>
@@ -46666,7 +46666,7 @@
 <!--1006300036 FILENAME-->
 <!--1006300036-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html]]></FILENAME>
 <!--1006300036 ISUSED-->
-<!--1006300036-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300036-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300036**************--></AD_TEXTINTERFACES>
 
 <!--1006300037**************--><AD_TEXTINTERFACES>
@@ -46691,7 +46691,7 @@
 <!--1006300037 FILENAME-->
 <!--1006300037-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/BusinessPartner.html]]></FILENAME>
 <!--1006300037 ISUSED-->
-<!--1006300037-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300037-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300037**************--></AD_TEXTINTERFACES>
 
 <!--1006300038**************--><AD_TEXTINTERFACES>
@@ -46716,7 +46716,7 @@
 <!--1006300038 FILENAME-->
 <!--1006300038-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/BusinessPartner.html]]></FILENAME>
 <!--1006300038 ISUSED-->
-<!--1006300038-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300038-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300038**************--></AD_TEXTINTERFACES>
 
 <!--1006300039**************--><AD_TEXTINTERFACES>
@@ -46741,7 +46741,7 @@
 <!--1006300039 FILENAME-->
 <!--1006300039-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrder.html]]></FILENAME>
 <!--1006300039 ISUSED-->
-<!--1006300039-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300039-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300039**************--></AD_TEXTINTERFACES>
 
 <!--1006300040**************--><AD_TEXTINTERFACES>
@@ -46766,7 +46766,7 @@
 <!--1006300040 FILENAME-->
 <!--1006300040-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrder.html]]></FILENAME>
 <!--1006300040 ISUSED-->
-<!--1006300040-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300040-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300040**************--></AD_TEXTINTERFACES>
 
 <!--1006300041**************--><AD_TEXTINTERFACES>
@@ -46791,7 +46791,7 @@
 <!--1006300041 FILENAME-->
 <!--1006300041-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrder.html]]></FILENAME>
 <!--1006300041 ISUSED-->
-<!--1006300041-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300041-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300041**************--></AD_TEXTINTERFACES>
 
 <!--1006300042**************--><AD_TEXTINTERFACES>
@@ -46816,7 +46816,7 @@
 <!--1006300042 FILENAME-->
 <!--1006300042-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrder.html]]></FILENAME>
 <!--1006300042 ISUSED-->
-<!--1006300042-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300042-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300042**************--></AD_TEXTINTERFACES>
 
 <!--1006300043**************--><AD_TEXTINTERFACES>
@@ -46841,7 +46841,7 @@
 <!--1006300043 FILENAME-->
 <!--1006300043-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/SalesOrder.html]]></FILENAME>
 <!--1006300043 ISUSED-->
-<!--1006300043-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300043-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300043**************--></AD_TEXTINTERFACES>
 
 <!--1006300044**************--><AD_TEXTINTERFACES>
@@ -46866,7 +46866,7 @@
 <!--1006300044 FILENAME-->
 <!--1006300044-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Project.html]]></FILENAME>
 <!--1006300044 ISUSED-->
-<!--1006300044-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300044-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300044**************--></AD_TEXTINTERFACES>
 
 <!--1006300045**************--><AD_TEXTINTERFACES>
@@ -46891,7 +46891,7 @@
 <!--1006300045 FILENAME-->
 <!--1006300045-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Project.html]]></FILENAME>
 <!--1006300045 ISUSED-->
-<!--1006300045-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300045-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300045**************--></AD_TEXTINTERFACES>
 
 <!--1006300046**************--><AD_TEXTINTERFACES>
@@ -46916,7 +46916,7 @@
 <!--1006300046 FILENAME-->
 <!--1006300046-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductMultiple.html]]></FILENAME>
 <!--1006300046 ISUSED-->
-<!--1006300046-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300046-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300046**************--></AD_TEXTINTERFACES>
 
 <!--1006300047**************--><AD_TEXTINTERFACES>
@@ -46941,7 +46941,7 @@
 <!--1006300047 FILENAME-->
 <!--1006300047-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductMultiple.html]]></FILENAME>
 <!--1006300047 ISUSED-->
-<!--1006300047-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300047-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300047**************--></AD_TEXTINTERFACES>
 
 <!--1006300048**************--><AD_TEXTINTERFACES>
@@ -46966,7 +46966,7 @@
 <!--1006300048 FILENAME-->
 <!--1006300048-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductMultiple.html]]></FILENAME>
 <!--1006300048 ISUSED-->
-<!--1006300048-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300048-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300048**************--></AD_TEXTINTERFACES>
 
 <!--1006300049**************--><AD_TEXTINTERFACES>
@@ -46991,7 +46991,7 @@
 <!--1006300049 FILENAME-->
 <!--1006300049-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceipt.html]]></FILENAME>
 <!--1006300049 ISUSED-->
-<!--1006300049-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300049-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300049**************--></AD_TEXTINTERFACES>
 
 <!--1006300050**************--><AD_TEXTINTERFACES>
@@ -47016,7 +47016,7 @@
 <!--1006300050 FILENAME-->
 <!--1006300050-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceipt.html]]></FILENAME>
 <!--1006300050 ISUSED-->
-<!--1006300050-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300050-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300050**************--></AD_TEXTINTERFACES>
 
 <!--1006300051**************--><AD_TEXTINTERFACES>
@@ -47041,7 +47041,7 @@
 <!--1006300051 FILENAME-->
 <!--1006300051-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ShipmentReceipt.html]]></FILENAME>
 <!--1006300051 ISUSED-->
-<!--1006300051-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300051-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300051**************--></AD_TEXTINTERFACES>
 
 <!--1006300052**************--><AD_TEXTINTERFACES>
@@ -47066,7 +47066,7 @@
 <!--1006300052 FILENAME-->
 <!--1006300052-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductComplete.html]]></FILENAME>
 <!--1006300052 ISUSED-->
-<!--1006300052-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300052-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300052**************--></AD_TEXTINTERFACES>
 
 <!--1006300053**************--><AD_TEXTINTERFACES>
@@ -47091,7 +47091,7 @@
 <!--1006300053 FILENAME-->
 <!--1006300053-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductComplete.html]]></FILENAME>
 <!--1006300053 ISUSED-->
-<!--1006300053-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300053-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300053**************--></AD_TEXTINTERFACES>
 
 <!--1006300054**************--><AD_TEXTINTERFACES>
@@ -47116,7 +47116,7 @@
 <!--1006300054 FILENAME-->
 <!--1006300054-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductComplete.html]]></FILENAME>
 <!--1006300054 ISUSED-->
-<!--1006300054-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300054-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300054**************--></AD_TEXTINTERFACES>
 
 <!--1006300055**************--><AD_TEXTINTERFACES>
@@ -47141,7 +47141,7 @@
 <!--1006300055 FILENAME-->
 <!--1006300055-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/ProductComplete.html]]></FILENAME>
 <!--1006300055 ISUSED-->
-<!--1006300055-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300055-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300055**************--></AD_TEXTINTERFACES>
 
 <!--1006300056**************--><AD_TEXTINTERFACES>
@@ -47166,7 +47166,7 @@
 <!--1006300056 FILENAME-->
 <!--1006300056-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Product.html]]></FILENAME>
 <!--1006300056 ISUSED-->
-<!--1006300056-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300056-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300056**************--></AD_TEXTINTERFACES>
 
 <!--1006300057**************--><AD_TEXTINTERFACES>
@@ -47191,7 +47191,7 @@
 <!--1006300057 FILENAME-->
 <!--1006300057-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Product.html]]></FILENAME>
 <!--1006300057 ISUSED-->
-<!--1006300057-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300057-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300057**************--></AD_TEXTINTERFACES>
 
 <!--1006300058**************--><AD_TEXTINTERFACES>
@@ -47216,7 +47216,7 @@
 <!--1006300058 FILENAME-->
 <!--1006300058-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Locator.html]]></FILENAME>
 <!--1006300058 ISUSED-->
-<!--1006300058-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300058-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300058**************--></AD_TEXTINTERFACES>
 
 <!--1006300059**************--><AD_TEXTINTERFACES>
@@ -47241,7 +47241,7 @@
 <!--1006300059 FILENAME-->
 <!--1006300059-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Locator.html]]></FILENAME>
 <!--1006300059 ISUSED-->
-<!--1006300059-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300059-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300059**************--></AD_TEXTINTERFACES>
 
 <!--1006300060**************--><AD_TEXTINTERFACES>
@@ -47266,7 +47266,7 @@
 <!--1006300060 FILENAME-->
 <!--1006300060-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Locator.html]]></FILENAME>
 <!--1006300060 ISUSED-->
-<!--1006300060-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300060-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300060**************--></AD_TEXTINTERFACES>
 
 <!--1006300061**************--><AD_TEXTINTERFACES>
@@ -47291,7 +47291,7 @@
 <!--1006300061 FILENAME-->
 <!--1006300061-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/info/Locator.html]]></FILENAME>
 <!--1006300061 ISUSED-->
-<!--1006300061-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--1006300061-->              <ISUSED><![CDATA[N]]></ISUSED>
 <!--1006300061**************--></AD_TEXTINTERFACES>
 
 <!--
@@ -47304,6 +47304,81 @@
 1. Custom Range.
 ************************
 -->
+<!--100000**************--><AD_TEXTINTERFACES>
+<!--100000 AD_TEXTINTERFACES_ID-->
+<!--100000-->              <AD_TEXTINTERFACES_ID><![CDATA[100000]]></AD_TEXTINTERFACES_ID>
+<!--100000 AD_CLIENT_ID-->
+<!--100000-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--100000 AD_ORG_ID-->
+<!--100000-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--100000 ISACTIVE-->
+<!--100000-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--100000 CREATED-->
+<!--100000-->              <CREATED><![CDATA[2008-05-27 13:36:55.0]]></CREATED>
+<!--100000 CREATEDBY-->
+<!--100000-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--100000 UPDATED-->
+<!--100000-->              <UPDATED><![CDATA[2008-05-27 13:36:55.0]]></UPDATED>
+<!--100000 UPDATEDBY-->
+<!--100000-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--100000 TEXT-->
+<!--100000-->              <TEXT><![CDATA[Open Pentaho]]></TEXT>
+<!--100000 FILENAME-->
+<!--100000-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/utility/OpenPentaho.html]]></FILENAME>
+<!--100000 ISUSED-->
+<!--100000-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--100000**************--></AD_TEXTINTERFACES>
+
+<!--100001**************--><AD_TEXTINTERFACES>
+<!--100001 AD_TEXTINTERFACES_ID-->
+<!--100001-->              <AD_TEXTINTERFACES_ID><![CDATA[100001]]></AD_TEXTINTERFACES_ID>
+<!--100001 AD_CLIENT_ID-->
+<!--100001-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--100001 AD_ORG_ID-->
+<!--100001-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--100001 ISACTIVE-->
+<!--100001-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--100001 CREATED-->
+<!--100001-->              <CREATED><![CDATA[2008-05-27 13:36:56.0]]></CREATED>
+<!--100001 CREATEDBY-->
+<!--100001-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--100001 UPDATED-->
+<!--100001-->              <UPDATED><![CDATA[2008-05-27 13:36:56.0]]></UPDATED>
+<!--100001 UPDATEDBY-->
+<!--100001-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--100001 TEXT-->
+<!--100001-->              <TEXT><![CDATA[Your browser doesn't accept frames]]></TEXT>
+<!--100001 FILENAME-->
+<!--100001-->              <FILENAME><![CDATA[/org/openbravo/erpCommon/utility/OpenPentaho.html]]></FILENAME>
+<!--100001 ISUSED-->
+<!--100001-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--100001**************--></AD_TEXTINTERFACES>
+
+<!--100002**************--><AD_TEXTINTERFACES>
+<!--100002 AD_TEXTINTERFACES_ID-->
+<!--100002-->              <AD_TEXTINTERFACES_ID><![CDATA[100002]]></AD_TEXTINTERFACES_ID>
+<!--100002 AD_CLIENT_ID-->
+<!--100002-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--100002 AD_ORG_ID-->
+<!--100002-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--100002 ISACTIVE-->
+<!--100002-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--100002 CREATED-->
+<!--100002-->              <CREATED><![CDATA[2008-05-27 13:37:27.0]]></CREATED>
+<!--100002 CREATEDBY-->
+<!--100002-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
+<!--100002 UPDATED-->
+<!--100002-->              <UPDATED><![CDATA[2008-05-27 13:37:27.0]]></UPDATED>
+<!--100002 UPDATEDBY-->
+<!--100002-->              <UPDATEDBY><![CDATA[0]]></UPDATEDBY>
+<!--100002 TEXT-->
+<!--100002-->              <TEXT><![CDATA[Price (€/m2)]]></TEXT>
+<!--100002 FILENAME-->
+<!--100002-->              <FILENAME><![CDATA[/org/openbravo/erpReports/RptC_ProposalLines.fo]]></FILENAME>
+<!--100002 ISUSED-->
+<!--100002-->              <ISUSED><![CDATA[Y]]></ISUSED>
+<!--100002**************--></AD_TEXTINTERFACES>
+
 <!--
 ************************
 1. End of Custom Range.
--- a/src-db/database/sourcedata/AD_TREENODE.xml	Tue May 27 15:26:10 2008 +0000
+++ b/src-db/database/sourcedata/AD_TREENODE.xml	Tue May 27 16:07:57 2008 +0000
@@ -1294,13 +1294,13 @@
 <!--10 158 CREATEDBY-->
 <!--10 158-->              <CREATEDBY><![CDATA[0]]></CREATEDBY>
 <!--10 158 UPDATED-->
-<!--10 158-->              <UPDATED><![CDATA[2007-06-20 16:02:28.0]]></UPDATED>
+<!--10 158-->              <UPDATED><![CDATA[2008-05-26 13:36:24.0]]></UPDATED>
 <!--10 158 UPDATEDBY-->
 <!--10 158-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--10 158 PARENT_ID-->
 <!--10 158-->              <PARENT_ID><![CDATA[278]]></PARENT_ID>
 <!--10 158 SEQNO-->
-<!--10 158-->              <SEQNO><![CDATA[130]]></SEQNO>
+<!--10 158-->              <SEQNO><![CDATA[40]]></SEQNO>
 <!--10 158**************--></AD_TREENODE>
 
 <!--10 159**************--><AD_TREENODE>
@@ -2819,7 +2819,7 @@
 <!--10 236 CREATEDBY-->
 <!--10 236-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--10 236 UPDATED-->
-<!--10 236-->              <UPDATED><![CDATA[2007-06-20 16:02:28.0]]></UPDATED>
+<!--10 236-->              <UPDATED><![CDATA[2008-05-26 13:36:24.0]]></UPDATED>
 <!--10 236 UPDATEDBY-->
 <!--10 236-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--10 236 PARENT_ID-->
@@ -4344,7 +4344,7 @@
 <!--10 345 CREATEDBY-->
 <!--10 345-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--10 345 UPDATED-->
-<!--10 345-->              <UPDATED><![CDATA[2007-06-20 16:02:28.0]]></UPDATED>
+<!--10 345-->              <UPDATED><![CDATA[2008-05-26 13:36:24.0]]></UPDATED>
 <!--10 345 UPDATEDBY-->
 <!--10 345-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--10 345 PARENT_ID-->
@@ -9694,7 +9694,7 @@
 <!--10 800252 CREATEDBY-->
 <!--10 800252-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
 <!--10 800252 UPDATED-->
-<!--10 800252-->              <UPDATED><![CDATA[2007-06-20 16:02:28.0]]></UPDATED>
+<!--10 800252-->              <UPDATED><![CDATA[2008-05-26 13:36:24.0]]></UPDATED>
 <!--10 800252 UPDATEDBY-->
 <!--10 800252-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
 <!--10 800252 PARENT_ID-->
@@ -10628,6 +10628,106 @@
 <!--10 1004400001-->              <SEQNO><![CDATA[30]]></SEQNO>
 <!--10 1004400001**************--></AD_TREENODE>
 
+<!--10 1004400003**************--><AD_TREENODE>
+<!--10 1004400003 AD_TREE_ID-->
+<!--10 1004400003-->              <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
+<!--10 1004400003 NODE_ID-->
+<!--10 1004400003-->              <NODE_ID><![CDATA[1004400003]]></NODE_ID>
+<!--10 1004400003 AD_CLIENT_ID-->
+<!--10 1004400003-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--10 1004400003 AD_ORG_ID-->
+<!--10 1004400003-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--10 1004400003 ISACTIVE-->
+<!--10 1004400003-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--10 1004400003 CREATED-->
+<!--10 1004400003-->              <CREATED><![CDATA[2008-04-22 17:17:09.0]]></CREATED>
+<!--10 1004400003 CREATEDBY-->
+<!--10 1004400003-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--10 1004400003 UPDATED-->
+<!--10 1004400003-->              <UPDATED><![CDATA[2008-05-26 13:36:36.0]]></UPDATED>
+<!--10 1004400003 UPDATEDBY-->
+<!--10 1004400003-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--10 1004400003 PARENT_ID-->
+<!--10 1004400003-->              <PARENT_ID><![CDATA[1004400006]]></PARENT_ID>
+<!--10 1004400003 SEQNO-->
+<!--10 1004400003-->              <SEQNO><![CDATA[30]]></SEQNO>
+<!--10 1004400003**************--></AD_TREENODE>
+
+<!--10 1004400004**************--><AD_TREENODE>
+<!--10 1004400004 AD_TREE_ID-->
+<!--10 1004400004-->              <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
+<!--10 1004400004 NODE_ID-->
+<!--10 1004400004-->              <NODE_ID><![CDATA[1004400004]]></NODE_ID>
+<!--10 1004400004 AD_CLIENT_ID-->
+<!--10 1004400004-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--10 1004400004 AD_ORG_ID-->
+<!--10 1004400004-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--10 1004400004 ISACTIVE-->
+<!--10 1004400004-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--10 1004400004 CREATED-->
+<!--10 1004400004-->              <CREATED><![CDATA[2008-05-15 18:25:31.0]]></CREATED>
+<!--10 1004400004 CREATEDBY-->
+<!--10 1004400004-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--10 1004400004 UPDATED-->
+<!--10 1004400004-->              <UPDATED><![CDATA[2008-05-26 13:36:36.0]]></UPDATED>
+<!--10 1004400004 UPDATEDBY-->
+<!--10 1004400004-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--10 1004400004 PARENT_ID-->
+<!--10 1004400004-->              <PARENT_ID><![CDATA[1004400006]]></PARENT_ID>
+<!--10 1004400004 SEQNO-->
+<!--10 1004400004-->              <SEQNO><![CDATA[20]]></SEQNO>
+<!--10 1004400004**************--></AD_TREENODE>
+
+<!--10 1004400005**************--><AD_TREENODE>
+<!--10 1004400005 AD_TREE_ID-->
+<!--10 1004400005-->              <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
+<!--10 1004400005 NODE_ID-->
+<!--10 1004400005-->              <NODE_ID><![CDATA[1004400005]]></NODE_ID>
+<!--10 1004400005 AD_CLIENT_ID-->
+<!--10 1004400005-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--10 1004400005 AD_ORG_ID-->
+<!--10 1004400005-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--10 1004400005 ISACTIVE-->
+<!--10 1004400005-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--10 1004400005 CREATED-->
+<!--10 1004400005-->              <CREATED><![CDATA[2008-05-15 18:25:50.0]]></CREATED>
+<!--10 1004400005 CREATEDBY-->
+<!--10 1004400005-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--10 1004400005 UPDATED-->
+<!--10 1004400005-->              <UPDATED><![CDATA[2008-05-26 13:36:36.0]]></UPDATED>
+<!--10 1004400005 UPDATEDBY-->
+<!--10 1004400005-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--10 1004400005 PARENT_ID-->
+<!--10 1004400005-->              <PARENT_ID><![CDATA[1004400006]]></PARENT_ID>
+<!--10 1004400005 SEQNO-->
+<!--10 1004400005-->              <SEQNO><![CDATA[10]]></SEQNO>
+<!--10 1004400005**************--></AD_TREENODE>
+
+<!--10 1004400006**************--><AD_TREENODE>
+<!--10 1004400006 AD_TREE_ID-->
+<!--10 1004400006-->              <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
+<!--10 1004400006 NODE_ID-->
+<!--10 1004400006-->              <NODE_ID><![CDATA[1004400006]]></NODE_ID>
+<!--10 1004400006 AD_CLIENT_ID-->
+<!--10 1004400006-->              <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--10 1004400006 AD_ORG_ID-->
+<!--10 1004400006-->              <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--10 1004400006 ISACTIVE-->
+<!--10 1004400006-->              <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--10 1004400006 CREATED-->
+<!--10 1004400006-->              <CREATED><![CDATA[2008-05-26 13:35:49.0]]></CREATED>
+<!--10 1004400006 CREATEDBY-->
+<!--10 1004400006-->              <CREATEDBY><![CDATA[100]]></CREATEDBY>
+<!--10 1004400006 UPDATED-->
+<!--10 1004400006-->              <UPDATED><![CDATA[2008-05-26 13:36:24.0]]></UPDATED>
+<!--10 1004400006 UPDATEDBY-->
+<!--10 1004400006-->              <UPDATEDBY><![CDATA[100]]></UPDATEDBY>
+<!--10 1004400006 PARENT_ID-->
+<!--10 1004400006-->              <PARENT_ID><![CDATA[278]]></PARENT_ID>
+<!--10 1004400006 SEQNO-->
+<!--10 1004400006-->              <SEQNO><![CDATA[50]]></SEQNO>
+<!--10 1004400006**************--></AD_TREENODE>
+
 <!--10 1005400001**************--><AD_TREENODE>
 <!--10 1005400001 AD_TREE_ID-->
 <!--10 1005400001-->              <AD_TREE_ID><![CDATA[10]]></AD_TREE_ID>
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Tue May 27 16:07:57 2008 +0000
@@ -300,8 +300,7 @@
             && !AccessData.selectAccess(this, vars.getRole(), type, id).equals("0");
       } else if (type.equals("S")) {
         return !AccessData.selectAccessSearch(this, vars.getRole(), id).equals("0");
-      }
-      else if (type.equals("S")||type.equals("C")||type.equals("P"))
+      } else if (type.equals("C"))
         return true;
       else
         return hasLevelAccess(vars, accessLevel)
@@ -606,6 +605,9 @@
       String sqlDateFormat = properties.getProperty("dateFormat.sql");
       log4j.info("sqlDateFormat: " + sqlDateFormat);
       vars.setSessionValue("#AD_SqlDateFormat", sqlDateFormat);
+      String pentahoServer = properties.getProperty("pentahoServer");
+      log4j.info("pentahoServer: " + pentahoServer);
+      vars.setSessionValue("#pentahoServer", pentahoServer);
     } catch (IOException e) {
      // catch possible io errors from readLine()
      e.printStackTrace();
--- a/src/org/openbravo/erpCommon/ad_workflow/WorkflowControl.java	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_workflow/WorkflowControl.java	Tue May 27 16:07:57 2008 +0000
@@ -98,7 +98,7 @@
     MenuData[] menuData = MenuData.selectData(this, language, strWindow, strProcess, strForm, strTask, strWorkflow);
     if (menuData==null || menuData.length==0) throw new ServletException("WorkflowControl.getUrlPath() - Error while getting data");
 
-    return VerticalMenu.getUrlString(strDireccion, menuData[0].name, menuData[0].action, menuData[0].classname, menuData[0].mappingname, menuData[0].adWorkflowId, menuData[0].adTaskId, menuData[0].adProcessId);
+    return VerticalMenu.getUrlString(strDireccion, menuData[0].name, menuData[0].action, menuData[0].classname, menuData[0].mappingname, menuData[0].adWorkflowId, menuData[0].adTaskId, menuData[0].adProcessId, "N", "");
   }
 
   void printPage(HttpServletResponse response, VariablesSecureApp vars, String strAD_Workflow_ID) throws IOException, ServletException {
--- a/src/org/openbravo/erpCommon/businessUtility/WindowTabs.java	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/erpCommon/businessUtility/WindowTabs.java	Tue May 27 16:07:57 2008 +0000
@@ -86,6 +86,47 @@
   }
 
   /**
+   * Constructor
+   * Used by processes without javaclass.
+   * 
+   * @param _conn: Object with the database connection methods.
+   * @param _vars: Object with the session information.
+   * @param _className: String with the form's classname.
+   * @throws Exception
+   */
+  public WindowTabs(ConnectionProvider _conn, VariablesSecureApp _vars, int adProcessId) throws Exception {
+    if (_conn==null || _vars==null) throw new Exception("Missing parameters");
+    this.conn = _conn;
+    this.vars = _vars;
+    this.className = "";
+    getProcessInfo(new Integer(adProcessId).toString());
+    getTabs();
+  }
+  /**
+   * Obtains the information for the process
+   * (For processes not in menu)
+   * 
+   * @throws Exception
+   */
+  private void getProcessInfo(String adProcessId) throws Exception {
+     WindowTabsData[] processInfo = WindowTabsData.selectProcessInfo(this.conn, adProcessId);
+     if (processInfo==null || processInfo.length==0) {
+       log4j.warn("Error while trying to obtain window info for process: " + adProcessId);
+       return;
+     }
+     this.TabID = processInfo[0].adTabId;
+     this.action = processInfo[0].action;
+     this.WindowID = processInfo[0].tabname;
+     
+     processInfo = WindowTabsData.selectMenuInfo(this.conn, this.vars.getLanguage(), this.action, this.TabID);
+     if (processInfo==null || processInfo.length==0) {
+       log4j.warn("Error while trying to obtain window info for process: " + adProcessId);
+       return;
+     }
+     this.ID = processInfo[0].id;
+     this.Title = processInfo[0].name;
+  }
+  /**
    * Obtains all the window information from database.
    * (For manual windows)
    * 
--- a/src/org/openbravo/erpCommon/businessUtility/WindowTabs_data.xsql	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/erpCommon/businessUtility/WindowTabs_data.xsql	Tue May 27 16:07:57 2008 +0000
@@ -123,6 +123,17 @@
       </Sql>
       <Parameter name="className"/>
   </SqlMethod>
+  <SqlMethod name="selectProcessInfo" type="preparedStatement" return="multiple">
+    <SqlMethodComment></SqlMethodComment>
+      <Sql><![CDATA[
+        select ad_process_id as ad_tab_id, 'P' as action
+          from ad_process
+          where ad_process_id = to_number(?)
+       ]]>
+      </Sql>
+      <Parameter name="processId"/>
+  </SqlMethod>
+  
   <SqlMethod name="selectWindowInfo" type="preparedStatement" return="String" deafult="">
     <SqlMethodComment></SqlMethodComment>
       <Sql><![CDATA[
--- a/src/org/openbravo/erpCommon/security/Access_data.xsql	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/erpCommon/security/Access_data.xsql	Tue May 27 16:07:57 2008 +0000
@@ -121,7 +121,24 @@
                WHERE AD_Role_ID = TO_NUMBER(?)
                  AND TO_CHAR('F') = TO_CHAR(?) 
                  AND AD_Workflow_ID = TO_NUMBER(?) 
-                 AND IsActive = 'Y' ) TOTAL
+                 AND IsActive = 'Y'
+                 UNION
+               SELECT COUNT(*) AS TOTAL 
+                FROM AD_Process_Access A,
+                     AD_Process P
+               WHERE AD_Role_ID = TO_NUMBER(?) 
+                 AND TO_CHAR('P') = TO_CHAR(?)
+                 AND A.AD_Process_ID = TO_NUMBER(?)
+                 AND P.AD_Process_ID = A.AD_Process_ID
+                 AND A.IsActive = 'Y'
+                 AND P.IsExternalService = 'Y' 
+                   UNION
+               SELECT 1 AS TOTAL
+                FROM AD_Process
+                WHERE  TO_CHAR('P') = TO_CHAR(?)
+                AND AD_Process_ID = TO_NUMBER(?) 
+                 AND IsActive = 'Y'
+                 AND IsExternalService != 'Y') TOTAL
        
       ]]></Sql>
       <Parameter name="role"/>
@@ -151,6 +168,13 @@
       <Parameter name="role"/>
       <Parameter name="type"/>
       <Parameter name="id"/>
+      
+      <Parameter name="role"/>
+      <Parameter name="type"/>
+      <Parameter name="id"/>
+      
+      <Parameter name="type"/>
+      <Parameter name="id"/>
    </SqlMethod>
    
    <SqlMethod name="selectAccessSearch" type="preparedStatement" return="string">
--- a/src/org/openbravo/erpCommon/utility/Menu_data.xsql	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/Menu_data.xsql	Tue May 27 16:07:57 2008 +0000
@@ -43,7 +43,9 @@
         menuData.AD_Process_ID, 
         menuData.AD_Task_ID, 
         menuData.AD_Workflow_ID, 
-        menuData.url 
+        menuData.url,
+        P.IsExternalService,
+        P.Service_Type
         FROM AD_TREENODE tn,
         (SELECT m.AD_Menu_ID, COALESCE(m_t.NAME, m.NAME) AS NAME, COALESCE(m_t.DESCRIPTION, m.Description) AS DESCRIPTION, 
         m.IsSummary,m.Action, m.AD_Window_ID, m.AD_Process_ID, 
@@ -62,6 +64,7 @@
                     AND wa.AD_Role_ID = TO_NUMBER(?))
         )) menuData left join AD_WINDOW W on menuData.AD_Window_ID = W.AD_Window_ID
                     left join AD_TAB T on W.AD_Window_ID = T.AD_WINDOW_ID
+                    left join AD_PROCESS P on P.AD_Process_ID = menuData.AD_Process_ID 
                     left join AD_MODEL_OBJECT MOW on T.AD_TAB_ID = MOW.AD_TAB_ID
                                                   AND MOW.ACTION    = 'W' 
                                                   AND MOW.ISACTIVE = 'Y'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/erpCommon/utility/OpenPentaho.html	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,131 @@
+<!--
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SL 
+ * All portions are Copyright (C) 2001-2008 Openbravo SL 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+-->
+<HTML>
+<HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=UTF-8"></META>
+<TITLE>Open Pentaho</TITLE>
+<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"></LINK>
+<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Manual.css" id="paramCSS"></LINK>
+<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";
+</SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">LNG_POR_DEFECTO="en_US";</SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></SCRIPT>
+
+<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
+
+<SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></SCRIPT>
+<SCRIPT language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></SCRIPT>
+<!--script language="JavaScript" src="../../../../../web/js/options.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/pentaho-ajax.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/prototype/prototype.js" type="text/javascript"></script-->
+
+<SCRIPT type="text/javascript"> 
+      //all dojo.require above this line
+      dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
+</SCRIPT> 
+<SCRIPT language="JavaScript" type="text/javascript">
+  function onLoadDo(){
+    this.windowTables = new Array(
+      new windowTableId('client', null, 'buttonHTML')
+    );
+    setWindowTableParentElement();
+    this.tabsTables = new Array(
+      new tabTableId('tdtopTabs')
+    );
+    setTabTableParentElement();
+    enableShortcuts('edition');
+
+    resizeArea();
+    updateMenuIcon('buttonMenu');
+
+    //setWindowElementFocus('firstElement');
+  }
+
+  function onResizeDo(){
+    resizeArea();
+  }
+  </SCRIPT>
+
+</HEAD>
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
+  <TABLE height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
+    <TR>
+      <TD valign="top" id="tdleftTabs"></TD>
+      <TD valign="top">
+        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
+          <TR><TD class="Main_NavBar_bg_left" id="tdleftSeparator"></TD></TR>
+          <TR><TD class="Main_ToolBar_bg_left" valign="top"></TD></TR>
+          <TR><TD class="Main_Client_bg_left"></TD></TR>
+          <TR><TD class="Main_Bottom_bg_left"></TD></TR>
+        </TABLE>
+      </TD>
+
+      <TD valign="top">
+        <DIV class="Main_ContentPane_NavBar" id="tdtopButtons"></DIV>
+        <DIV class="Main_ContentPane_ToolBar" id="paramToolBar"><table class="Main_ContentPane_ToolBar Main_ToolBar_bg" id="tdToolBar">
+            <tr>
+              <td class="Main_ToolBar_Separator_cell" ><IMG src="../../../../../web/images/blank.gif" class="Main_ToolBar_Separator"></td>
+              <td class="Main_ToolBar_Space"></td>
+            </tr>
+          </table>
+        </DIV>
+        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
+          <TR id="paramParentTabContainer"></TR>
+          <TR id="paramMainTabContainer"></TR>
+          <tr><td class="tabBackGround">
+              <div class="marginLeft">
+              </div>
+            </td>
+          </TR>
+          <TR id="paramChildTabContainer"></TR>
+        </TABLE>
+
+        <DIV class="Main_ContentPane_Client" style="overflow: none; display: none;" id="client">
+
+          <iframe id="paramURL" src="http://www.google.es" width="100%" height="100%" scrolling="auto" frameborder="0">
+            <p>Your browser doesn't accept frames</p>
+          </iframe>
+
+        </DIV>
+
+        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
+          <TR>
+            <TD class="Main_Bottom_bg"><IMG src="../../../../../web/images/blank.gif" border="0"></IMG></TD>
+          </TR>
+      </TABLE></TD>
+      <TD valign="top">
+        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
+          <TR><TD class="Main_NavBar_bg_right"></TD></TR>
+          <TR><TD class="Main_ToolBar_bg_right" valign="top"></TD></TR>
+          <TR><TD class="Main_Client_bg_right"></TD></TR>
+          <TR><TD class="Main_Bottom_bg_right"></TD></TR>
+        </TABLE>
+      </TD>
+    </TR>
+  </TABLE>
+</BODY></HTML>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/erpCommon/utility/OpenPentaho.java	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,74 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SL
+ * All portions are Copyright (C) 2008 Openbravo SL
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+*/
+package org.openbravo.erpCommon.utility;
+
+import java.io.*;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.openbravo.base.secureApp.HttpSecureAppServlet;
+import org.openbravo.base.secureApp.VariablesSecureApp;
+import org.openbravo.erpCommon.businessUtility.WindowTabs;
+import org.openbravo.xmlEngine.XmlDocument;
+
+
+
+public class OpenPentaho extends HttpSecureAppServlet {
+  private static final long serialVersionUID = 1L;
+  public void doPost (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
+    VariablesSecureApp vars = new VariablesSecureApp(request);
+    String adProcessId = vars.getStringParameter("inpadProcessId");
+    String pentahoServer = vars.getSessionValue("#pentahoServer");
+    if (!hasGeneralAccess(vars, "P", adProcessId)) bdError(response, "AccessTableNoView", vars.getLanguage());
+    else if (pentahoServer.equals("")) bdError (response, "NoPentahoServerDefined", vars.getLanguage());
+    else {
+      String source = OpenPentahoData.selectSource(this, adProcessId);
+      if (source.equals("")) bdError (response, "NoSourceDefined", vars.getLanguage());
+      else printPageDataSheet(response, vars, pentahoServer, source, adProcessId);
+    }
+  } 
+  
+  void printPageDataSheet(HttpServletResponse response, VariablesSecureApp vars, String pentahoServer, String source, String adProcessId) throws IOException, ServletException {    
+    XmlDocument xmlDocument = xmlEngine.readXmlTemplate("org/openbravo/erpCommon/utility/OpenPentaho").createXmlDocument();
+    if (!source.startsWith("/")) source="/"+source;
+    xmlDocument.setParameter("paramURL", pentahoServer+source);
+    
+    try {
+      WindowTabs tabs = new WindowTabs(this, vars,  new Integer(adProcessId).intValue());
+      xmlDocument.setParameter("parentTabContainer", tabs.parentTabs());
+      xmlDocument.setParameter("mainTabContainer", tabs.mainTabs());
+      xmlDocument.setParameter("childTabContainer", tabs.childTabs());
+      xmlDocument.setParameter("theme", vars.getTheme());
+      NavigationBar nav = new NavigationBar(this, vars.getLanguage(), "OpenPentaho.html", classInfo.id, classInfo.type, strReplaceWith, tabs.breadcrumb());
+      xmlDocument.setParameter("navigationBar", nav.toString());
+      LeftTabsBar lBar = new LeftTabsBar(this, vars.getLanguage(), "OpenPentaho.html", strReplaceWith);
+      xmlDocument.setParameter("leftTabs", lBar.manualTemplate());
+    } catch (Exception ex) {
+      throw new ServletException(ex);
+    }
+    
+    response.setContentType("text/html; charset=UTF-8");
+    PrintWriter out = response.getWriter();
+    out.println(xmlDocument.print());
+    out.close();
+  }
+
+ 
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/erpCommon/utility/OpenPentaho.xml	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SL 
+ * All portions are Copyright (C) 2008 Openbravo SL 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+-->
+<REPORT>
+	<template file="OpenPentaho.html"/>
+  <PARAMETER id="paramLanguage" name="language" default=""/>
+  <PARAMETER id="paramToolBar" name="toolbar" default=""/>
+  <PARAMETER id="paramDirection" name="direction" default=""/>
+  <PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
+  <PARAMETER id="tdleftTabs" name="leftTabs" default=""/>
+  <PARAMETER id="paramParentTabContainer" name="parentTabContainer" default=" "/>
+  <PARAMETER id="paramMainTabContainer" name="mainTabContainer" default=" "/>
+  <PARAMETER id="paramChildTabContainer" name="childTabContainer" default=" "/>
+  <PARAMETER id="tdtopButtons" name="navigationBar" default=""/>
+  <PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
+  <PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
+  <PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
+  
+  <PARAMETER id="paramURL" name="paramURL" attribute="src"/>
+</REPORT>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/erpCommon/utility/OpenPentaho_data.xsql	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html 
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License. 
+ * The Original Code is Openbravo ERP. 
+ * The Initial Developer of the Original Code is Openbravo SL 
+ * All portions are Copyright (C) 2008 Openbravo SL 
+ * All Rights Reserved. 
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+-->
+
+
+
+
+
+<SqlClass name="OpenPentahoData" package="org.openbravo.erpCommon.utility">
+   <SqlClassComment></SqlClassComment>
+   
+   <SqlMethod name="selectSource" type="preparedStatement" return="string">
+    <SqlMethodComment></SqlMethodComment>
+    <Sql>
+      <![CDATA[
+       SELECT Service_Source
+         FROM AD_Process
+        WHERE AD_Process_ID = to_number(?)         
+      ]]>
+    </Sql>
+    <Parameter name="processId"/>
+  </SqlMethod>
+</SqlClass>
--- a/src/org/openbravo/erpCommon/utility/VerticalMenu.java	Tue May 27 15:26:10 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/VerticalMenu.java	Tue May 27 16:07:57 2008 +0000
@@ -181,10 +181,10 @@
             strText.append(" onclick=\"checkSelected('child").append(strID).append("');openLink('");
             if (menuData[i].action.equals("L") || menuData[i].action.equals("I")) strText.append(menuData[i].url);
             else {
-              strText.append(getUrlString(strDireccion, menuData[i].name, menuData[i].action, menuData[i].classname, menuData[i].mappingname, menuData[i].adWorkflowId, menuData[i].adTaskId, menuData[i].adProcessId));
+              strText.append(getUrlString(strDireccion, menuData[i].name, menuData[i].action, menuData[i].classname, menuData[i].mappingname, menuData[i].adWorkflowId, menuData[i].adTaskId, menuData[i].adProcessId, menuData[i].isexternalservice, menuData[i].serviceType));
             }
             strText.append("', '");
-            if (menuData[i].action.equals("F") || menuData[i].action.equals("T") || (menuData[i].action.equals("P") && menuData[i].mappingname.equals(""))) strText.append("frameOculto");
+            if (menuData[i].action.equals("F") || menuData[i].action.equals("T") || (menuData[i].action.equals("P") && menuData[i].mappingname.equals("") && !(menuData[i].isexternalservice.equals("Y") && menuData[i].serviceType.equals("PS")) )) strText.append("frameOculto");
             else if (menuData[i].action.equals("L")) strText.append("_blank");
             else strText.append(target);
             strText.append("'");
@@ -245,7 +245,7 @@
     return (strText.toString());
   }
 
-  public static String getUrlString(String strDireccionBase, String name, String action, String classname, String mappingname, String adWorkflowId, String adTaskId, String adProcessId) {
+  public static String getUrlString(String strDireccionBase, String name, String action, String classname, String mappingname, String adWorkflowId, String adTaskId, String adProcessId, String isExternalService, String externalType) {
     StringBuffer strResultado = new StringBuffer();
     strResultado.append(strDireccionBase);
     if (mappingname.equals("")) {
@@ -254,7 +254,10 @@
       } else if (action.equals("T")) {
         strResultado.append("/utility/ExecuteTask.html?inpadTaskId=").append(adTaskId);
       } else if (action.equals("P")) {
-        strResultado.append("/ad_actionButton/ActionButton_Responser.html?inpadProcessId=").append(adProcessId);
+        if (isExternalService.equals("Y") && externalType.equals("PS")) 
+        	strResultado.append("/utility/OpenPentaho.html?inpadProcessId=").append(adProcessId);
+        else
+    	  strResultado.append("/ad_actionButton/ActionButton_Responser.html?inpadProcessId=").append(adProcessId);
       } else if (action.equals("X")) {
         strResultado.append("/ad_forms/").append(FormatUtilities.replace(name)).append(".html");
       } else if (action.equals("R")) {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/js/options.js	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,137 @@
+
+function runInBackground( url, target )
+{
+	var response = confirm( "Info:  Reports that prompt for parameters are not supported with this feature."
+		+ "\nRun in Background may generate content with incorrect results." );
+
+	if ( response )
+	{
+		url = url + "&background=true";
+		if ( target.toLowerCase().indexOf( 'new' ) >= 0 )
+		{
+			var targetWin = window.open( url );
+		}
+		else
+		{
+			window.location = url;
+		}
+	}
+	return undefined;	// forces current page to remain unchanged when target=new
+}
+
+function getOptions( solution, path, filename, target, isFolder, furl, properties ) {
+
+	var actions = "";
+	if( filename.indexOf( '.url' ) == (filename.length - 4) ) {
+		actions += "<a href=\""+furl+"\" target=\""+target+"\">Run</a>";
+		return actions;
+	}
+
+	var actions = "";
+	if( !isFolder ) {
+		var url = "ViewAction?solution="+solution+"&path="+path+"&action=" + encodeSingleQuote( filename );
+		actions += "<a href=\""+url+"\" target=\""+target+"\">Run</a>&nbsp;|&nbsp;";
+		actions += "<a href='javascript:runInBackground(\"" + url + "\", \"" + target + "\");'>Background</a>";
+
+		if ( isWaqrAction( filename ) )
+		{
+			var waqrUrl = getWaqrEditUrl( solution, path, filename, furl );
+			actions +=  "&nbsp;|&nbsp;<a href=\""+waqrUrl+"\" target=\""+target+"\">Edit</a>";
+			var filePath = getWaqrDeletePath( solution, path, filename );
+			filePath = encodeSingleQuote( filePath );
+			filename = encodeSingleQuote( filename );
+			actions +=  "&nbsp;|&nbsp;<a href='javascript:deleteWaqrReport(\"" + filePath + "\", \"" + filename + "\" );'>Delete</a>";
+		}
+		
+		if( properties.indexOf( "subscribable=true" ) != -1 ) {		
+			actions += "<br/><a href='"+url+"&subscribepage=yes' target='"+target+"'>Subscribe</a>";
+		}
+
+	}
+
+	return actions;
+}
+
+/**
+ * replace single quotes with the hexadecimal character reference &#x27;
+ * @param str String string to be encoded
+ */
+function encodeSingleQuote( str )
+{
+	return str.replace( /'/g, "&#x27" );
+}
+
+function getWaqrDeletePath( solution, path, filename )
+{
+	var baseFilename = getBaseFilename( filename );
+	return "/"	+ solution + "/" + path + "/" + baseFilename;
+}
+function deleteWaqrReport( filePath, reportName )
+{
+	var yes = window.confirm( "Please confirm that you want to delete " + reportName + ".");
+	try {
+		if ( yes )
+		{
+			var component = "deleteWaqrReport";
+			var params = { filePath: filePath };
+			var responseMsg = WebServiceProxy.post( WebServiceProxy.ADHOC_WEBSERVICE_URL, component, params, undefined, 'text/xml' );
+			var errorMsg = XmlUtil.getErrorMsg( responseMsg );
+			if ( errorMsg )
+			{
+				alert( errorMsg );
+			}
+			else
+			{
+				var statusMsg = XmlUtil.getStatusMsg( responseMsg );
+				if ( statusMsg )
+				{
+					alert( statusMsg );
+				}
+				// refresh the page so that the deleted xaction is no longer there
+				window.location = window.location;
+			}
+		}
+	}
+	catch( e )
+	{
+		alert( e );
+	}
+}
+
+function getWaqrEditUrl( solution, path, filename, url )
+{
+	var beginUrl = getProtocolHostPortContextParts( url );
+	var middleUrl = "/adhoc/waqr.html?reportSpecPath=";
+	var baseFilename = getBaseWaqrFilename( filename );
+	var endUrl = "/"	+ solution + "/" + path + "/" + baseFilename + ".xreportspec";
+
+	return beginUrl + middleUrl + endUrl;
+}
+function getBaseWaqrFilename( filename )
+{
+	var matched = filename.match( /(.*)\.xaction/ );	// get everything in the filename except the .xaction extension
+	return matched[ 1 ];
+}
+function getBaseFilename( filename )
+{
+	var matched = filename.match( /(.*)\.waqr\.xaction/ );	// get everything in the filename except the .xaction extension
+	return matched[ 1 ];
+}
+function getProtocolHostPortContextParts( strUrl )
+{
+	var matched = strUrl.match( /(.*)\/ViewAction.*/ );	// get everything before "/ViewAction ..."
+	return matched[ 1 ];
+}
+function isWaqrAction( filename )
+{
+	return null != filename.match( /.*\.waqr\.xaction/ );	// test to see if filename ends with .waqr.xaction
+}
+
+function getAdminOptions( solution, path, filename, target, isFolder, properties ) {
+
+	var actions = "";
+	var permUrl = "PropertiesEditor?path=/pentaho-solutions/" + ( solution != null ? solution+"/" : "" )  + ( path != null ? path+"/" : "" ) + ( filename != null ? filename : "" )  ;
+	actions += "<br/><br/><a href=\""+permUrl+"\" >Permissions</a>";
+	return actions;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/js/pentaho-ajax.js	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,321 @@
+// see http://developer.mozilla.org/en/docs/AJAX:Getting_Started for other values
+var COMPLETE = 4;
+// see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for other values
+var STATUS_OK = 200;
+var STATUS_UNAUTHORIZED = 401;
+var STATUS_NOT_FOUND = 404;
+/**
+ * @param solution String name of the solution containing the action sequence definition being called
+ * @param path String path to the action sequence definition being called
+ * @param action String name of the action sequence definition being called
+ * @param params Array containing the parameters for the query string 
+ * @param func String, object, or function. It is optional. Refers to the function to call 
+ * asynchronously when the client receives the server's response. If the parameter is:
+ *   null or undefined:
+ *     the request to the server is synchronous, and the response is returned 
+ *     by this method.
+ *   of type String or string:
+ *     the name of the function to call
+ *   of type function:
+ *     the function object to call
+ *   of type object, where the object has the properties obj and method:
+ *     func.obj is the object to call the method func.method on,
+ *     e.g. obj.method()
+ * 
+ * @return String containing the server's response if func is not null or undefined,
+ * null if the call is asynchronous.
+ * 
+ * @throws Error when unable to create an XMLHttpRequest object
+ */
+function pentahoAction( solution, path, action, params, func ) {
+
+	// execute an Action Sequence on the server
+	var url = "/pentaho/ViewAction";
+	
+	// create the URL we need
+	var query = "wrapper=false&solution="+solution+"&path="+path+"&action="+action;
+	// add any parameters provided
+	if( params ) {
+		var idx;
+		for( idx=0; idx<params.length; idx++ ) {
+			query += "&" +escape( params[idx][0] ) + "=" + escape( params[idx][1] );
+		}
+	}
+
+	//ZYLK HACK
+	query += "&z_ajax_request=true"
+
+	// submit this as a post
+	return pentahoPost( url, query, func );
+
+}    
+/**
+ * @param component String
+ * @param params Array containing the parameters for the query string 
+ * @param func String, object, or function. It is optional. Refers to the function to call when the client 
+ * receives the server's response. If the parameter is:
+ *   null or undefined:
+ *     the request to the server is synchronous, and the response is returned 
+ *     by this method.
+ *   of type String or string:
+ *     the name of the function to call
+ *   of type function:
+ *     the function object to call
+ *   of type object, where the object has the properties obj and method:
+ *     func.obj is the object to call the method func.method on,
+ *     e.g. obj.method()
+ * @param mimeType String optional, specifies the mime type of the response
+ * 
+ * @return String containing the server's response if func is not null or undefined,
+ * null if the call is asynchronous.
+ * 
+ * @throws Error when unable to create an XMLHttpRequest object
+ */
+function pentahoService( component, params, func, mimeType ) {
+
+	// execute a web service on the server
+	// create the URL we need
+	var url = "/pentaho/ServiceAction";
+	var query = "ajax=true&";
+	if( component ) {
+		query += "component="+component+"&";
+	}
+	// add any parameters provided
+	if( params ) {
+		var idx;
+		for( idx=0; idx<params.length; idx++ ) {
+			query += "&" +escape( params[idx][0] ) + "=" + escape( params[idx][1] );
+		}
+	}
+	
+	// submit this as a post
+	return pentahoPost( url, query, func, mimeType );
+}
+
+/**
+ * @param url String url of the web service/servlet
+ * @param query String containing the message to send to the server
+ * @param func String, object, or function. It is optional. Refers to the function to call when the client 
+ * receives the server's response. If the parameter is:
+ *   null or undefined:
+ *     the request to the server is synchronous, and the response is returned 
+ *     by this method.
+ *   of type String or string:
+ *     the name of the function to call
+ *   of type function:
+ *     the function object to call
+ *   of type object, where the object has the properties obj and method:
+ *     func.obj is the object to call the method func.method on,
+ *     e.g. obj.method()
+ * @param mimeType String optional, specifies the mime type of the response
+ * 
+ * @return String containing the server's response if func is not null or undefined,
+ * null if the call is asynchronous.
+ * 
+ * @throws Error when unable to create an XMLHttpRequest object
+ */
+function pentahoGet( url, query, func, mimeType ) {
+	var async = undefined != func && null != func;
+
+	// submit a 'get' request
+    var http_request = null;
+	var returnType = "text/xml";
+	if( mimeType ) {
+		returnType = mimeType;
+	}
+
+	// create an HTTP request object
+    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
+        http_request = new XMLHttpRequest();
+        if (http_request.overrideMimeType) {
+            http_request.overrideMimeType(returnType);
+        }
+    } else if (window.ActiveXObject) { // IE
+        try {
+            http_request = new ActiveXObject("Msxml2.XMLHTTP");
+        } catch (e) {
+            try {
+                http_request = new ActiveXObject("Microsoft.XMLHTTP");
+            } catch (e) 
+            {
+            	http_request = null;
+            }
+        }
+    }
+
+    if (!http_request) {
+        throw new Error('Cannot create an XMLHTTP instance');
+    }
+    
+    // set the callback function
+	  if ( async )
+	  {
+	    http_request.onreadystatechange = function() { pentahoResponse(http_request, func); };
+	  }
+	
+	// submit the request
+    http_request.open('GET', url+"?"+query, async );
+    http_request.send(null);
+	if ( !async )
+	{
+		return getResponse( http_request );
+	}
+	else
+	{
+		return null;
+	}
+}
+
+function getUnauthorizedMsg()
+{
+	return "<adhoc><unauthorized/></adhoc>";
+}
+
+function getNotFoundMsg()
+{
+	return "<adhoc><not-found/></adhoc>";
+}
+
+/**
+ * @param url String url of the web service/servlet
+ * @param query String containing the message to send to the server
+ * @param func String, object, or function. It is optional. Refers to the function to call when the client 
+ * receives the server's response. If the parameter is:
+ *   null or undefined:
+ *     the request to the server is synchronous, and the response is returned 
+ *     by this method.
+ *   of type String or string:
+ *     the name of the function to call
+ *   of type function:
+ *     the function object to call
+ *   of type object, where the object has the properties obj and method:
+ *     func.obj is the object to call the method func.method on,
+ *     e.g. obj.method()
+ * @param mimeType String optional, specifies the mime type of the response
+ * 
+ * @return String containing the server's response if func is not null or undefined,
+ * null if the call is asynchronous.
+ * 
+ * @throws Error when unable to create an XMLHttpRequest object
+ */
+function pentahoPost( url, query, func, mimeType ) {
+	var async = undefined != func && null != func;
+	
+	var http_request = null;
+	var returnType = "text/xml";
+	if( mimeType ) {
+		returnType = mimeType;
+	}
+  
+	// create an HTTP request object
+	if (window.XMLHttpRequest) { // Mozilla, Safari,...
+		http_request = new XMLHttpRequest();
+		if (http_request.overrideMimeType) {
+			http_request.overrideMimeType(returnType);
+		}
+	} else if (window.ActiveXObject) { // IE
+		try {
+			http_request = new ActiveXObject("Msxml2.XMLHTTP");
+		} catch (e) {
+			try {
+				http_request = new ActiveXObject("Microsoft.XMLHTTP");
+			} catch (e) 
+			{
+				http_request = null;
+			}
+		}
+	}
+	if (!http_request) {
+		throw new Error('Cannot create XMLHTTP instance');
+	}
+  
+  // set the callback function
+  if ( async )
+  {
+  	http_request.onreadystatechange = function() { pentahoResponse(http_request, func); };
+  }
+
+  // submit the request
+  http_request.open('POST', url, async);
+  http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
+  http_request.setRequestHeader("Content-length", query.length);
+  http_request.setRequestHeader("Connection", "close");
+	http_request.send(query);
+	if ( !async )
+	{
+		return getResponse( http_request );
+	}
+	else
+	{
+		return null;
+	}
+}
+
+/**
+ * NOTE: http://radio.javaranch.com/pascarello/2006/02/07/1139345471027.html discusses the necessity of the try/catch block
+ * 
+ * @param http_request instance of XMLHttpRequest object, actually object is platform dependent.
+ * @param func String, object, or function. Required. Refers to the function to call when the client 
+ * receives the server's response. If the parameter is:
+ *   of type String or string:
+ *     the name of the function to call
+ *   of type function:
+ *     the function object to call
+ *   of type object, where the object has the properties obj and method:
+ *     func.obj is the object to call the method func.method on,
+ *     e.g. obj.method()
+ */
+function pentahoResponse(http_request, func) {
+  
+	// see if we got a good response back
+	if (http_request.readyState == COMPLETE ) {
+		try
+		{
+			var content = getResponse( http_request );
+			
+			// execute the callback function
+			if ( typeof( func ) == "function" )
+			{
+				func( content );
+			}
+			else if ( typeof( func ) == "object" && undefined != func.obj )
+			{
+				func.method.call( func.obj, content );
+			}
+			else if ( typeof( func ) == "string" )
+			{
+				// must be a string
+				eval( func + "( content );" );
+			}
+			else
+			{
+				//func must be null, which means caller wanted to run async, which means we should never get here
+				throw new Error( "Invalid state in pentahoResponse, unrecognized callback function." );
+			}
+		}catch( e )
+		{
+			var msg = e.message;
+			alert( "pentaho-ajax.js.pentahoResponse(): " + e );
+			throw e;
+		}
+	}
+}
+
+function getResponse( http_request )
+{
+	switch ( http_request.status )
+	{
+		case STATUS_OK:
+			return http_request.responseText;
+			break;
+		case STATUS_UNAUTHORIZED:
+			return getUnauthorizedMsg();
+			break;
+		case STATUS_NOT_FOUND:
+			return getNotFoundMsg();
+			break;
+		default:
+			return null;
+			break;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/js/prototype/prototype.js	Tue May 27 16:07:57 2008 +0000
@@ -0,0 +1,4221 @@
+/*  Prototype JavaScript framework, version 1.6.0.2
+ *  (c) 2005-2008 Sam Stephenson
+ *
+ *  Prototype is freely distributable under the terms of an MIT-style license.
+ *  For details, see the Prototype web site: http://www.prototypejs.org/
+ *
+ *--------------------------------------------------------------------------*/
+
+var Prototype = {
+  Version: '1.6.0.2',
+
+  Browser: {
+    IE:     !!(window.attachEvent && !window.opera),
+    Opera:  !!window.opera,
+    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
+    Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
+    MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
+  },
+
+  BrowserFeatures: {
+    XPath: !!document.evaluate,
+    ElementExtensions: !!window.HTMLElement,
+    SpecificElementExtensions:
+      document.createElement('div').__proto__ &&
+      document.createElement('div').__proto__ !==
+        document.createElement('form').__proto__
+  },
+
+  ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
+  JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,
+
+  emptyFunction: function() { },
+  K: function(x) { return x }
+};
+
+if (Prototype.Browser.MobileSafari)
+  Prototype.BrowserFeatures.SpecificElementExtensions = false;
+
+
+/* Based on Alex Arnell's inheritance implementation. */
+var Class = {
+  create: function() {
+    var parent = null, properties = $A(arguments);
+    if (Object.isFunction(properties[0]))
+      parent = properties.shift();
+
+    function klass() {
+      this.initialize.apply(this, arguments);
+    }
+
+    Object.extend(klass, Class.Methods);
+    klass.superclass = parent;
+    klass.subclasses = [];
+
+    if (parent) {
+      var subclass = function() { };
+      subclass.prototype = parent.prototype;
+      klass.prototype = new subclass;
+      parent.subclasses.push(klass);
+    }
+
+    for (var i = 0; i < properties.length; i++)
+      klass.addMethods(properties[i]);
+
+    if (!klass.prototype.initialize)
+      klass.prototype.initialize = Prototype.emptyFunction;
+
+    klass.prototype.constructor = klass;
+
+    return klass;
+  }
+};
+
+Class.Methods = {
+  addMethods: function(source) {
+    var ancestor   = this.superclass && this.superclass.prototype;
+    var properties = Object.keys(source);
+
+    if (!Object.keys({ toString: true }).length)
+      properties.push("toString", "valueOf");
+
+    for (var i = 0, length = properties.length; i < length; i++) {
+      var property = properties[i], value = source[property];
+      if (ancestor && Object.isFunction(value) &&
+          value.argumentNames().first() == "$super") {
+        var method = value, value = Object.extend((function(m) {
+          return function() { return ancestor[m].apply(this, arguments) };
+        })(property).wrap(method), {
+          valueOf:  function() { return method },
+          toString: function() { return method.toString() }
+        });
+      }
+      this.prototype[property] = value;
+    }
+
+    return this;
+  }
+};
+
+var Abstract = { };
+
+Object.extend = function(destination, source) {
+  for (var property in source)
+    destination[property] = source[property];
+  return destination;
+};
+
+Object.extend(Object, {
+  inspect: function(object) {
+    try {
+      if (Object.isUndefined(object)) return 'undefined';
+      if (object === null) return 'null';
+      return object.inspect ? object.inspect() : String(object);
+    } catch (e) {
+      if (e instanceof RangeError) return '...';
+      throw e;
+    }
+  },
+
+  toJSON: function(object) {
+    var type = typeof object;
+    switch (type) {
+      case 'undefined':
+      case 'function':
+      case 'unknown': return;
+      case 'boolean': return object.toString();
+    }
+
+    if (object === null) return 'null';
+    if (object.toJSON) return object.toJSON();
+    if (Object.isElement(object)) return;
+
+    var results = [];
+    for (var property in object) {
+      var value = Object.toJSON(object[property]);
+      if (!Object.isUndefined(value))
+        results.push(property.toJSON() + ': ' + value);
+    }
+
+    return '{' + results.join(', ') + '}';
+  },
+
+  toQueryString: function(object) {
+    return $H(object).toQueryString();
+  },
+
+  toHTML: function(object) {
+    return object && object.toHTML ? object.toHTML() : String.interpret(object);
+  },
+
+  keys: function(object) {
+    var keys = [];
+    for (var property in object)
+      keys.push(property);
+    return keys;
+  },
+
+  values: function(object) {
+    var values = [];
+    for (var property in object)
+      values.push(object[property]);
+    return values;
+  },
+
+  clone: function(object) {
+    return Object.extend({ }, object);
+  },
+
+  isElement: function(object) {
+    return object && object.nodeType == 1;
+  },
+
+  isArray: function(object) {
+    return object != null && typeof object == "object" &&
+      'splice' in object && 'join' in object;
+  },
+
+  isHash: function(object) {
+    return object instanceof Hash;
+  },
+
+  isFunction: function(object) {
+    return typeof object == "function";
+  },
+
+  isString: function(object) {
+    return typeof object == "string";
+  },
+
+  isNumber: function(object) {
+    return typeof object == "number";
+  },
+
+  isUndefined: function(object) {
+    return typeof object == "undefined";
+  }
+});
+
+Object.extend(Function.prototype, {
+  argumentNames: function() {
+    var names = this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");
+    return names.length == 1 && !names[0] ? [] : names;
+  },
+
+  bind: function() {
+    if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this;
+    var __method = this, args = $A(arguments), object = args.shift();
+    return function() {
+      return __method.apply(object, args.concat($A(arguments)));
+    }
+  },
+
+  bindAsEventListener: function() {
+    var __method = this, args = $A(arguments), object = args.shift();
+    return function(event) {
+      return __method.apply(object, [event || window.event].concat(args));
+    }
+  },
+
+  curry: function() {
+    if (!arguments.length) return this;
+    var __method = this, args = $A(arguments);
+    return function() {
+      return __method.apply(this, args.concat($A(arguments)));
+    }
+  },
+
+  delay: function() {
+    var __method = this, args = $A(arguments), timeout = args.shift() * 1000;
+    return window.setTimeout(function() {
+      return __method.apply(__method, args);
+    }, timeout);
+  },
+
+  wrap: function(wrapper) {
+    var __method = this;
+    return function() {
+      return wrapper.apply(this, [__method.bind(this)].concat($A(arguments)));
+    }
+  },
+
+  methodize: function() {
+    if (this._methodized) return this._methodized;
+    var __method = this;
+    return this._methodized = function() {
+      return __method.apply(null, [this].concat($A(arguments)));
+    };
+  }
+});
+
+Function.prototype.defer = Function.prototype.delay.curry(0.01);
+
+Date.prototype.toJSON = function() {
+  return '"' + this.getUTCFullYear() + '-' +
+    (this.getUTCMonth() + 1).toPaddedString(2) + '-' +
+    this.getUTCDate().toPaddedString(2) + 'T' +
+    this.getUTCHours().toPaddedString(2) + ':' +
+    this.getUTCMinutes().toPaddedString(2) + ':' +
+    this.getUTCSeconds().toPaddedString(2) + 'Z"';
+};
+
+var Try = {
+  these: function() {
+    var returnValue;
+
+    for (var i = 0, length = arguments.length; i < length; i++) {
+      var lambda = arguments[i];
+      try {
+        returnValue = lambda();
+        break;
+      } catch (e) { }
+    }
+
+    return returnValue;
+  }
+};
+
+RegExp.prototype.match = RegExp.prototype.test;
+
+RegExp.escape = function(str) {
+  return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
+};
+
+/*--------------------------------------------------------------------------*/
+
+var PeriodicalExecuter = Class.create({
+  initialize: function(callback, frequency) {
+    this.callback = callback;
+    this.frequency = frequency;
+    this.currentlyExecuting = false;
+
+    this.registerCallback();
+  },
+
+  registerCallback: function() {
+    this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);
+  },
+
+  execute: function() {
+    this.callback(this);
+  },
+
+  stop: function() {
+    if (!this.timer) return;
+    clearInterval(this.timer);
+    this.timer = null;
+  },
+
+  onTimerEvent: function() {
+    if (!this.currentlyExecuting) {
+      try {
+        this.currentlyExecuting = true;
+        this.execute();
+      } finally {
+        this.currentlyExecuting = false;
+      }
+    }
+  }
+});
+Object.extend(String, {
+  interpret: function(value) {
+    return value == null ? '' : String(value);
+  },
+  specialChar: {
+    '\b': '\\b',
+    '\t': '\\t',
+    '\n': '\\n',
+    '\f': '\\f',
+    '\r': '\\r',
+    '\\': '\\\\'
+  }
+});
+
+Object.extend(String.prototype, {
+  gsub: function(pattern, replacement) {
+    var result = '', source = this, match;
+    replacement = arguments.callee.prepareReplacement(replacement);
+
+    while (source.length > 0) {
+      if (match = source.match(pattern)) {
+        result += source.slice(0, match.index);
+        result += String.interpret(replacement(match));
+        source  = source.slice(match.index + match[0].length);
+      } else {
+        result += source, source = '';
+      }
+    }
+    return result;
+  },
+
+  sub: function(pattern, replacement, count) {
+    replacement = this.gsub.prepareReplacement(replacement);
+    count = Object.isUndefined(count) ? 1 : count;
+
+    return this.gsub(pattern, function(match) {
+      if (--count < 0) return match[0];
+      return replacement(match);
+    });
+  },
+
+  scan: function(pattern, iterator) {
+    this.gsub(pattern, iterator);
+    return String(this);
+  },
+
+  truncate: function(length, truncation) {
+    length = length || 30;
+    truncation = Object.isUndefined(truncation) ? '...' : truncation;
+    return this.length > length ?
+      this.slice(0, length - truncation.length) + truncation : String(this);
+  },
+
+  strip: function() {
+    return this.replace(/^\s+/, '').replace(/\s+$/, '');
+  },
+
+  stripTags: function() {
+    return this.replace(/<\/?[^>]+>/gi, '');
+  },
+
+  stripScripts: function() {
+    return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');
+  },
+
+  extractScripts: function() {
+    var matchAll = new RegExp(Prototype.ScriptFragment, 'img');
+    var matchOne = new RegExp(Prototype.ScriptFragment, 'im');
+    return (this.match(matchAll) || []).map(function(scriptTag) {
+      return (scriptTag.match(matchOne) || ['', ''])[1];
+    });
+  },
+
+  evalScripts: function() {
+    return this.extractScripts().map(function(script) { return eval(script) });
+  },
+
+  escapeHTML: function() {
+    var self = arguments.callee;
+    self.text.data = this;
+    return self.div.innerHTML;
+  },
+
+  unescapeHTML: function() {
+    var div = new Element('div');
+    div.innerHTML = this.stripTags();
+    return div.childNodes[0] ? (div.childNodes.length > 1 ?
+      $A(div.childNodes).inject('', function(memo, node) { return memo+node.nodeValue }) :
+      div.childNodes[0].nodeValue) : '';
+  },
+
+  toQueryParams: function(separator) {
+    var match = this.strip().match(/([^?#]*)(#.*)?$/);
+    if (!match) return { };
+
+    return match[1].split(separator || '&').inject({ }, function(hash, pair) {
+      if ((pair = pair.split('='))[0]) {
+        var key = decodeURIComponent(pair.shift());
+        var value = pair.length > 1 ? pair.join('=') : pair[0];
+        if (value != undefined) value = decodeURIComponent(value);
+
+        if (key in hash) {
+          if (!Object.isArray(hash[key])) hash[key] = [hash[key]];
+          hash[key].push(value);
+        }
+        else hash[key] = value;
+      }
+      return hash;
+    });
+  },
+
+  toArray: function() {
+    return this.split('');
+  },
+
+  succ: function() {
+    return this.slice(0, this.length - 1) +
+      String.fromCharCode(this.charCodeAt(this.length - 1) + 1);
+  },
+
+  times: function(count) {
+    return count < 1 ? '' : new Array(count + 1).join(this);
+  },
+
+  camelize: function() {
+    var parts = this.split('-'), len = parts.length;
+    if (len == 1) return parts[0];
+
+    var camelized = this.charAt(0) == '-'
+      ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)
+      : parts[0];
+
+    for (var i = 1; i < len; i++)
+      camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1);
+
+    return camelized;
+  },
+
+  capitalize: function() {
+    return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
+  },
+
+  underscore: function() {
+    return this.gsub(/::/, '/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase();
+  },
+
+  dasherize: function() {
+    return this.gsub(/_/,'-');
+  },
+
+  inspect: function(useDoubleQuotes) {
+    var escapedString = this.gsub(/[\x00-\x1f\\]/, function(match) {
+      var character = String.specialChar[match[0]];
+      return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16);
+    });
+    if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"';
+    return "'" + escapedString.replace(/'/g, '\\\'') + "'";
+  },
+
+  toJSON: function() {
+    return this.inspect(true);
+  },
+
+  unfilterJSON: function(filter) {
+    return this.sub(filter || Prototype.JSONFilter, '#{1}');
+  },
+
+  isJSON: function() {
+    var str = this;
+    if (str.blank()) return false;
+    str = this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');
+    return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
+  },
+
+  evalJSON: function(sanitize) {
+    var json = this.unfilterJSON();
+    try {
+      if (!sanitize || json.isJSON()) return eval('(' + json + ')');
+    } catch (e) { }
+    throw new SyntaxError('Badly formed JSON string: ' + this.inspect());
+  },
+
+  include: function(pattern) {
+    return this.indexOf(pattern) > -1;
+  },
+
+  startsWith: function(pattern) {
+    return this.indexOf(pattern) === 0;
+  },
+
+  endsWith: function(pattern) {
+    var d = this.length - pattern.length;
+    return d >= 0 && this.lastIndexOf(pattern) === d;
+  },
+
+  empty: function() {
+    return this == '';
+  },
+
+  blank: function() {
+    return /^\s*$/.test(this);
+  },
+
+  interpolate: function(object, pattern) {
+    return new Template(this, pattern).evaluate(object);
+  }
+});
+
+if (Prototype.Browser.WebKit || Prototype.Browser.IE) Object.extend(String.prototype, {
+  escapeHTML: function() {
+    return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
+  },
+  unescapeHTML: function() {
+    return this.replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>');
+  }
+});
+
+String.prototype.gsub.prepareReplacement = function(replacement) {
+  if (Object.isFunction(replacement)) return replacement;
+  var template = new Template(replacement);
+  return function(match) { return template.evaluate(match) };
+};
+
+String.prototype.parseQuery = String.prototype.toQueryParams;
+
+Object.extend(String.prototype.escapeHTML, {
+  div:  document.createElement('div'),
+  text: document.createTextNode('')
+});
+
+with (String.prototype.escapeHTML) div.appendChild(text);
+
+var Template = Class.create({
+  initialize: function(template, pattern) {
+    this.template = template.toString();
+    this.pattern = pattern || Template.Pattern;
+  },
+
+  evaluate: function(object) {
+    if (Object.isFunction(object.toTemplateReplacements))
+      object = object.toTemplateReplacements();
+
+    return this.template.gsub(this.pattern, function(match) {
+      if (object == null) return '';
+
+      var before = match[1] || '';
+      if (before == '\\') return match[2];
+
+      var ctx = object, expr = match[3];
+      var pattern = /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;
+      match = pattern.exec(expr);
+      if (match == null) return before;
+
+      while (match != null) {
+        var comp = match[1].startsWith('[') ? match[2].gsub('\\\\]', ']') : match[1];
+        ctx = ctx[comp];
+        if (null == ctx || '' == match[3]) break;
+        expr = expr.substring('[' == match[3] ? match[1].length : match[0].length);
+        match = pattern.exec(expr);
+      }
+
+      return before + String.interpret(ctx);
+    });
+  }
+});
+Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/;
+
+var $break = { };
+
+var Enumerable = {
+  each: function(iterator, context) {
+    var index = 0;
+    iterator = iterator.bind(context);
+    try {
+      this._each(function(value) {
+        iterator(value, index++);
+      });
+    } catch (e) {
+      if (e != $break) throw e;
+    }
+    return this;
+  },
+
+  eachSlice: function(number, iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var index = -number, slices = [], array = this.toArray();
+    while ((index += number) < array.length)
+      slices.push(array.slice(index, index+number));
+    return slices.collect(iterator, context);
+  },
+
+  all: function(iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var result = true;
+    this.each(function(value, index) {
+      result = result && !!iterator(value, index);
+      if (!result) throw $break;
+    });
+    return result;
+  },
+
+  any: function(iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var result = false;
+    this.each(function(value, index) {
+      if (result = !!iterator(value, index))
+        throw $break;
+    });
+    return result;
+  },
+
+  collect: function(iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var results = [];
+    this.each(function(value, index) {
+      results.push(iterator(value, index));
+    });
+    return results;
+  },
+
+  detect: function(iterator, context) {
+    iterator = iterator.bind(context);
+    var result;
+    this.each(function(value, index) {
+      if (iterator(value, index)) {
+        result = value;
+        throw $break;
+      }
+    });
+    return result;
+  },
+
+  findAll: function(iterator, context) {
+    iterator = iterator.bind(context);
+    var results = [];
+    this.each(function(value, index) {
+      if (iterator(value, index))
+        results.push(value);
+    });
+    return results;
+  },
+
+  grep: function(filter, iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var results = [];
+
+    if (Object.isString(filter))
+      filter = new RegExp(filter);
+
+    this.each(function(value, index) {
+      if (filter.match(value))
+        results.push(iterator(value, index));
+    });
+    return results;
+  },
+
+  include: function(object) {
+    if (Object.isFunction(this.indexOf))
+      if (this.indexOf(object) != -1) return true;
+
+    var found = false;
+    this.each(function(value) {
+      if (value == object) {
+        found = true;
+        throw $break;
+      }
+    });
+    return found;
+  },
+
+  inGroupsOf: function(number, fillWith) {
+    fillWith = Object.isUndefined(fillWith) ? null : fillWith;
+    return this.eachSlice(number, function(slice) {
+      while(slice.length < number) slice.push(fillWith);
+      return slice;
+    });
+  },
+
+  inject: function(memo, iterator, context) {
+    iterator = iterator.bind(context);
+    this.each(function(value, index) {
+      memo = iterator(memo, value, index);
+    });
+    return memo;
+  },
+
+  invoke: function(method) {
+    var args = $A(arguments).slice(1);
+    return this.map(function(value) {
+      return value[method].apply(value, args);
+    });
+  },
+
+  max: function(iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var result;
+    this.each(function(value, index) {
+      value = iterator(value, index);
+      if (result == null || value >= result)
+        result = value;
+    });
+    return result;
+  },
+
+  min: function(iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var result;
+    this.each(function(value, index) {
+      value = iterator(value, index);
+      if (result == null || value < result)
+        result = value;
+    });
+    return result;
+  },
+
+  partition: function(iterator, context) {
+    iterator = iterator ? iterator.bind(context) : Prototype.K;
+    var trues = [], falses = [];
+    this.each(function(value, index) {
+      (iterator(value, index) ?
+        trues : falses).push(value);
+    });
+    return [trues, falses];
+  },
+
+  pluck: function(property) {
+    var results = [];
+    this.each(function(value) {
+      results.push(value[property]);
+    });
+    return results;
+  },
+
+  reject: function(iterator, context) {
+    iterator = iterator.bind(context);
+    var results = [];
+    this.each(function(value, index) {
+      if (!iterator(value, index))
+        results.push(value);
+    });
+    return results;
+  },
+
+  sortBy: function(iterator, context) {
+    iterator = iterator.bind(context);
+    return this.map(function(value, index) {
+      return {value: value, criteria: iterator(value, index)};
+    }).sort(function(left, right) {
+      var a = left.criteria, b = right.criteria;
+      return a < b ? -1 : a > b ? 1 : 0;
+    }).pluck('value');
+  },
+
+  toArray: function() {
+    return this.map();
+  },
+
+  zip: function() {
+    var iterator = Prototype.K, args = $A(arguments);
+    if (Object.isFunction(args.last()))
+      iterator = args.pop();
+
+    var collections = [this].concat(args).map($A);
+    return this.map(function(value, index) {
+      return iterator(collections.pluck(index));
+    });
+  },
+
+  size: function() {
+    return this.toArray().length;
+  },
+
+  inspect: function() {
+    return '#<Enumerable:' + this.toArray().inspect() + '>';
+  }
+};
+
+Object.extend(Enumerable, {
+  map:     Enumerable.collect,
+  find:    Enumerable.detect,
+  select:  Enumerable.findAll,
+  filter:  Enumerable.findAll,
+  member:  Enumerable.include,
+  entries: Enumerable.toArray,
+  every:   Enumerable.all,
+  some:    Enumerable.any
+});
+function $A(iterable) {
+  if (!iterable) return [];
+  if (iterable.toArray) return iterable.toArray();
+  var length = iterable.length || 0, results = new Array(length);
+  while (length--) results[length] = iterable[length];
+  return results;
+}
+
+if (Prototype.Browser.WebKit) {
+  $A = function(iterable) {
+    if (!iterable) return [];
+    if (!(Object.isFunction(iterable) && iterable == '[object NodeList]') &&
+        iterable.toArray) return iterable.toArray();
+    var length = iterable.length || 0, results = new Array(length);
+    while (length--) results[length] = iterable[length];
+    return results;
+  };
+}
+
+Array.from = $A;
+
+Object.extend(Array.prototype, Enumerable);
+
+if (!Array.prototype._reverse) Array.prototype._reverse = Array.prototype.reverse;
+
+Object.extend(Array.prototype, {
+  _each: function(iterator) {
+    for (var i = 0, length = this.length; i < length; i++)
+      iterator(this[i]);
+  },
+
+  clear: function() {
+    this.length = 0;
+    return this;
+  },
+
+  first: function() {
+    return this[0];
+  },
+
+  last: function() {
+    return this[this.length - 1];
+  },
+
+  compact: function() {
+    return this.select(function(value) {
+      return value != null;
+    });
+  },
+
+  flatten: function() {
+    return this.inject([], function(array, value) {
+      return array.concat(Object.isArray(value) ?
+        value.flatten() : [value]);
+    });
+  },
+
+  without: function() {
+    var values = $A(arguments);
+    return this.select(function(value) {
+      return !values.include(value);
+    });
+  },
+
+  reverse: function(inline) {
+    return (inline !== false ? this : this.toArray())._reverse();
+  },
+
+  reduce: function() {
+    return this.length > 1 ? this : this[0];
+  },
+
+  uniq: function(sorted) {
+    return this.inject([], function(array, value, index) {
+      if (0 == index || (sorted ? array.last() != value : !array.include(value)))
+        array.push(value);
+      return array;
+    });
+  },
+
+  intersect: function(array) {
+    return this.uniq().findAll(function(item) {
+      return array.detect(function(value) { return item === value });
+    });
+  },
+
+  clone: function() {
+    return [].concat(this);
+  },
+
+  size: function() {
+    return this.length;
+  },
+
+  inspect: function() {
+    return '[' + this.map(Object.inspect).join(', ') + ']';
+  },
+
+  toJSON: function() {
+    var results = [];
+    this.each(function(object) {
+      var value = Object.toJSON(object);
+      if (!Object.isUndefined(value)) results.push(value);
+    });
+    return '[' + results.join(', ') + ']';
+  }
+});
+
+// use native browser JS 1.6 implementation if available
+if (Object.isFunction(Array.prototype.forEach))
+  Array.prototype._each = Array.prototype.forEach;
+
+if (!Array.prototype.indexOf) Array.prototype.indexOf = function(item, i) {
+  i || (i = 0);
+  var length = this.length;
+  if (i < 0) i = length + i;
+  for (; i < length; i++)
+    if (this[i] === item) return i;
+  return -1;
+};
+
+if (!Array.prototype.lastIndexOf) Array.prototype.lastIndexOf = function(item, i) {
+  i = isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1;
+  var n = this.slice(0, i).reverse().indexOf(item);
+  return (n < 0) ? n : i - n - 1;
+};
+
+Array.prototype.toArray = Array.prototype.clone;
+
+function $w(string) {
+  if (!Object.isString(string)) return [];
+  string = string.strip();
+  return string ? string.split(/\s+/) : [];
+}
+
+if (Prototype.Browser.Opera){
+  Array.prototype.concat = function() {
+    var array = [];
+    for (var i = 0, length = this.length; i < length; i++) array.push(this[i]);
+    for (var i = 0, length = arguments.length; i < length; i++) {
+      if (Object.isArray(arguments[i])) {
+        for (var j = 0, arrayLength = arguments[i].length; j < arrayLength; j++)
+          array.push(arguments[i][j]);
+      } else {
+        array.push(arguments[i]);
+      }
+    }
+    return array;
+  };
+}
+Object.extend(Number.prototype, {
+  toColorPart: function() {
+    return this.toPaddedString(2, 16);
+  },
+
+  succ: function() {
+    return this + 1;
+  },
+
+  times: function(iterator) {
+    $R(0, this, true).each(iterator);
+    return this;
+  },
+
+  toPaddedString: function(length, radix) {
+    var string = this.toString(radix || 10);
+    return '0'.times(length - string.length) + string;
+  },
+
+  toJSON: function() {
+    return isFinite(this) ? this.toString() : 'null';
+  }
+});
+
+$w('abs round ceil floor').each(function(method){
+  Number.prototype[method] = Math[method].methodize();
+});
+function $H(object) {
+  return new Hash(object);
+};
+
+var Hash = Class.create(Enumerable, (function() {
+
+  function toQueryPair(key, value) {
+    if (Object.isUndefined(value)) return key;
+    return key + '=' + encodeURIComponent(String.interpret(value));
+  }
+
+  return {
+    initialize: function(object) {
+      this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);
+    },
+
+    _each: function(iterator) {
+      for (var key in this._object) {
+        var value = this._object[key], pair = [key, value];
+        pair.key = key;
+        pair.value = value;
+        iterator(pair);
+      }
+    },
+
+    set: function(key, value) {
+      return this._object[key] = value;
+    },
+
+    get: function(key) {
+      return this._object[key];
+    },
+
+    unset: function(key) {
+      var value = this._object[key];
+      delete this._object[key];
+      return value;
+    },
+
+    toObject: function() {
+      return Object.clone(this._object);
+    },
+
+    keys: function() {
+      return this.pluck('key');
+    },
+
+    values: function() {
+      return this.pluck('value');
+    },
+
+    index: function(value) {
+      var match = this.detect(function(pair) {
+        return pair.value === value;
+      });
+      return match && match.key;
+    },
+
+    merge: function(object) {
+      return this.clone().update(object);
+    },
+
+    update: function(object) {
+      return new Hash(object).inject(this, function(result, pair) {
+        result.set(pair.key, pair.value);
+        return result;
+      });
+    },
+
+    toQueryString: function() {
+      return this.map(function(pair) {
+        var key = encodeURIComponent(pair.key), values = pair.value;
+
+        if (values && typeof values == 'object') {
+          if (Object.isArray(values))
+            return values.map(toQueryPair.curry(key)).join('&');
+        }
+        return toQueryPair(key, values);
+      }).join('&');
+    },
+
+    inspect: function() {
+      return '#<Hash:{' + this.map(function(pair) {
+        return pair.map(Object.inspect).join(': ');
+      }).join(', ') + '}>';
+    },
+
+    toJSON: function() {
+      return Object.toJSON(this.toObject());
+    },
+
+    clone: function() {
+      return new Hash(this);
+    }
+  }
+})());
+
+Hash.prototype.toTemplateReplacements = Hash.prototype.toObject;
+Hash.from = $H;
+var ObjectRange = Class.create(Enumerable, {
+  initialize: function(start, end, exclusive) {
+    this.start = start;
+    this.end = end;
+    this.exclusive = exclusive;
+  },
+
+  _each: function(iterator) {
+    var value = this.start;
+    while (this.include(value)) {
+      iterator(value);
+      value = value.succ();
+    }
+  },
+
+  include: function(value) {
+    if (value < this.start)
+      return false;
+    if (this.exclusive)
+      return value < this.end;
+    return value <= this.end;
+  }
+});
+
+var $R = function(start, end, exclusive) {
+  return new ObjectRange(start, end, exclusive);
+};
+
+var Ajax = {
+  getTransport: function() {
+    return Try.these(
+      function() {return new XMLHttpRequest()},
+      function() {return new ActiveXObject('Msxml2.XMLHTTP')},
+      function() {return new ActiveXObject('Microsoft.XMLHTTP')}
+    ) || false;
+  },
+
+  activeRequestCount: 0
+};
+
+Ajax.Responders = {
+  responders: [],
+
+  _each: function(iterator) {
+    this.responders._each(iterator);
+  },
+
+  register: function(responder) {
+    if (!this.include(responder))
+      this.responders.push(responder);
+  },
+
+  unregister: function(responder) {
+    this.responders = this.responders.without(responder);
+  },
+
+  dispatch: function(callback, request, transport, json) {
+    this.each(function(responder) {
+      if (Object.isFunction(responder[callback])) {
+        try {
+          responder[callback].apply(responder, [request, transport, json]);
+        } catch (e) { }
+      }
+    });
+  }
+};
+
+Object.extend(Ajax.Responders, Enumerable);
+
+Ajax.Responders.register({
+  onCreate:   function() { Ajax.activeRequestCount++ },
+  onComplete: function() { Ajax.activeRequestCount-- }
+});
+
+Ajax.Base = Class.create({
+  initialize: function(options) {
+    this.options = {
+      method:       'post',
+      asynchronous: true,
+      contentType:  'application/x-www-form-urlencoded',
+      encoding:     'UTF-8',
+      parameters:   '',
+      evalJSON:     true,
+      evalJS:       true
+    };
+    Object.extend(this.options, options || { });
+
+    this.options.method = this.options.method.toLowerCase();
+
+    if (Object.isString(this.options.parameters))
+      this.options.parameters = this.options.parameters.toQueryParams();
+    else if (Object.isHash(this.options.parameters))
+      this.options.parameters = this.options.parameters.toObject();
+  }
+});
+
+Ajax.Request = Class.create(Ajax.Base, {
+  _complete: false,
+
+  initialize: function($super, url, options) {
+    $super(options);
+    this.transport = Ajax.getTransport();
+    this.request(url);
+  },
+
+  request: function(url) {
+    this.url = url;
+    this.method = this.options.method;
+    var params = Object.clone(this.options.parameters);
+
+    if (!['get', 'post'].include(this.method)) {
+      // simulate other verbs over post
+      params['_method'] = this.method;
+      this.method = 'post';
+    }
+
+    this.parameters = params;
+
+    if (params = Object.toQueryString(params)) {
+      // when GET, append parameters to URL
+      if (this.method == 'get')
+        this.url += (this.url.include('?') ? '&' : '?') + params;
+      else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))
+        params += '&_=';
+    }
+
+    try {
+      var response = new Ajax.Response(this);
+      if (this.options.onCreate) this.options.onCreate(response);
+      Ajax.Responders.dispatch('onCreate', this, response);
+
+      this.transport.open(this.method.toUpperCase(), this.url,
+        this.options.asynchronous);
+
+      if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1);
+
+      this.transport.onreadystatechange = this.onStateChange.bind(this);
+      this.setRequestHeaders();
+
+      this.body = this.method == 'post' ? (this.options.postBody || params) : null;
+      this.transport.send(this.body);
+
+      /* Force Firefox to handle ready state 4 for synchronous requests */
+      if (!this.options.asynchronous && this.transport.overrideMimeType)
+        this.onStateChange();
+
+    }
+    catch (e) {
+      this.dispatchException(e);
+    }
+  },
+
+  onStateChange: function() {
+    var readyState = this.transport.readyState;
+    if (readyState > 1 && !((readyState == 4) && this._complete))
+      this.respondToReadyState(this.transport.readyState);
+  },
+
+  setRequestHeaders: function() {
+    var headers = {
+      'X-Requested-With': 'XMLHttpRequest',
+      'X-Prototype-Version': Prototype.Version,
+      'Accept': 'text/javascript, text/html, application/xml, text/xml, */*'
+    };
+
+    if (this.method == 'post') {
+      headers['Content-type'] = this.options.contentType +
+        (this.options.encoding ? '; charset=' + this.options.encoding : '');
+
+      /* Force "Connection: close" for older Mozilla browsers to work
+       * around a bug where XMLHttpRequest sends an incorrect
+       * Content-length header. See Mozilla Bugzilla #246651.
+       */
+      if (this.transport.overrideMimeType &&
+          (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005)
+            headers['Connection'] = 'close';
+    }
+
+    // user-defined headers
+    if (typeof this.options.requestHeaders == 'object') {
+      var extras = this.options.requestHeaders;
+
+      if (Object.isFunction(extras.push))
+        for (var i = 0, length = extras.length; i < length; i += 2)
+          headers[extras[i]] = extras[i+1];
+      else
+        $H(extras).each(function(pair) { headers[pair.key] = pair.value });
+    }
+
+    for (var name in headers)
+      this.transport.setRequestHeader(name, headers[name]);
+  },
+
+  success: function() {
+    var status = this.getStatus();
+    return !status || (status >= 200 && status < 300);
+  },
+
+  getStatus: function() {
+    try {
+      return this.transport.status || 0;
+    } catch (e) { return 0 }
+  },
+
+  respondToReadyState: function(readyState) {
+    var state = Ajax.Request.Events[readyState], response = new Ajax.Response(this);
+
+    if (state == 'Complete') {
+      try {
+        this._complete = true;
+        (this.options['on' + response.status]
+         || this.options['on' + (this.success() ? 'Success' : 'Failure')]
+         || Prototype.emptyFunction)(response, response.headerJSON);
+      } catch (e) {
+        this.dispatchException(e);
+      }
+
+      var contentType = response.getHeader('Content-type');
+      if (this.options.evalJS == 'force'
+          || (this.options.evalJS && this.isSameOrigin() && contentType
+          && contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i)))
+        this.evalResponse();
+    }
+
+    try {
+      (this.options['on' + state] || Prototype.emptyFunction)(response, response.headerJSON);
+      Ajax.Responders.dispatch('on' + state, this, response, response.headerJSON);
+    } catch (e) {
+      this.dispatchException(e);
+    }
+
+    if (state == 'Complete') {
+      // avoid memory leak in MSIE: clean up
+      this.transport.onreadystatechange = Prototype.emptyFunction;
+    }
+  },
+
+  isSameOrigin: function() {
+    var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
+    return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({
+      protocol: location.protocol,
+      domain: document.domain,
+      port: location.port ? ':' + location.port : ''
+    }));
+  },
+
+  getHeader: function(name) {
+    try {
+      return this.transport.getResponseHeader(name) || null;
+    } catch (e) { return null }
+  },
+
+  evalResponse: function() {
+    try {
+      return eval((this.transport.responseText || '').unfilterJSON());
+    } catch (e) {
+      this.dispatchException(e);
+    }
+  },
+
+  dispatchException: function(exception) {
+    (this.options.onException || Prototype.emptyFunction)(this, exception);
+    Ajax.Responders.dispatch('onException', this, exception);
+  }
+});
+
+Ajax.Request.Events =
+  ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];
+
+Ajax.Response = Class.create({
+  initialize: function(request){
+    this.request = request;
+    var transport  = this.transport  = request.transport,
+        readyState = this.readyState = transport.readyState;
+
+    if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) {
+      this.status       = this.getStatus();
+      this.statusText   = this.getStatusText();
+      this.responseText = String.interpret(transport.responseText);
+      this.headerJSON   = this._getHeaderJSON();
+    }
+
+    if(readyState == 4) {
+      var xml = transport.responseXML;
+      this.responseXML  = Object.isUndefined(xml) ? null : xml;
+      this.responseJSON = this._getResponseJSON();
+    }
+  },
+
+  status:      0,
+  statusText: '',
+
+  getStatus: Ajax.Request.prototype.getStatus,
+
+  getStatusText: function() {
+    try {
+      return this.transport.statusText || '';
+    } catch (e) { return '' }
+  },
+
+  getHeader: Ajax.Request.prototype.getHeader,
+
+  getAllHeaders: function() {
+    try {
+      return this.getAllResponseHeaders();
+    } catch (e) { return null }
+  },
+
+  getResponseHeader: function(name) {
+    return this.transport.getResponseHeader(name);
+  },
+
+  getAllResponseHeaders: function() {
+    return this.transport.getAllResponseHeaders();
+  },
+
+  _getHeaderJSON: function() {
+    var json = this.getHeader('X-JSON');
+    if (!json) return null;
+    json = decodeURIComponent(escape(json));
+    try {
+      return json.evalJSON(this.request.options.sanitizeJSON ||
+        !this.request.isSameOrigin());
+    } catch (e) {
+      this.request.dispatchException(e);
+    }
+  },
+
+  _getResponseJSON: function() {
+    var options = this.request.options;
+    if (!options.evalJSON || (options.evalJSON != 'force' &&
+      !(this.getHeader('Content-type') || '').include('application/json')) ||
+        this.responseText.blank())
+          return null;
+    try {
+      return this.responseText.evalJSON(options.sanitizeJSON ||
+        !this.request.isSameOrigin());
+    } catch (e) {
+      this.request.dispatchException(e);
+    }
+  }
+});
+
+Ajax.Updater = Class.create(Ajax.Request, {
+  initialize: function($super, container, url, options) {
+    this.container = {
+      success: (container.success || container),
+      failure: (container.failure || (container.success ? null : container))
+    };
+
+    options = Object.clone(options);
+    var onComplete = options.onComplete;
+    options.onComplete = (function(response, json) {
+      this.updateContent(response.responseText);
+      if (Object.isFunction(onComplete)) onComplete(response, json);
+    }).bind(this);
+
+    $super(url, options);
+  },
+
+  updateContent: function(responseText) {
+    var receiver = this.container[this.success() ? 'success' : 'failure'],
+        options = this.options;
+
+    if (!options.evalScripts) responseText = responseText.stripScripts();
+
+    if (receiver = $(receiver)) {
+      if (options.insertion) {
+        if (Object.isString(options.insertion)) {
+          var insertion = { }; insertion[options.insertion] = responseText;
+          receiver.insert(insertion);
+        }
+        else options.insertion(receiver, responseText);
+      }
+      else receiver.update(responseText);
+    }
+  }
+});
+
+Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
+  initialize: function($super, container, url, options) {
+    $super(options);
+    this.onComplete = this.options.onComplete;
+
+    this.frequency = (this.options.frequency || 2);
+    this.decay = (this.options.decay || 1);
+
+    this.updater = { };
+    this.container = container;
+    this.url = url;
+
+    this.start();
+  },
+
+  start: function() {
+    this.options.onComplete = this.updateComplete.bind(this);
+    this.onTimerEvent();
+  },
+
+  stop: function() {
+    this.updater.options.onComplete = undefined;
+    clearTimeout(this.timer);
+    (this.onComplete || Prototype.emptyFunction).apply(this, arguments);
+  },
+
+  updateComplete: function(response) {
+    if (this.options.decay) {
+      this.decay = (response.responseText == this.lastText ?
+        this.decay * this.options.decay : 1);
+
+      this.lastText = response.responseText;
+    }
+    this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency);
+  },
+
+  onTimerEvent: function() {
+    this.updater = new Ajax.Updater(this.container, this.url, this.options);
+  }
+});
+function $(element) {
+  if (arguments.length > 1) {
+    for (var i = 0, elements = [], length = arguments.length; i < length; i++)
+      elements.push($(arguments[i]));
+    return elements;
+  }
+  if (Object.isString(element))
+    element = document.getElementById(element);
+  return Element.extend(element);
+}
+
+if (Prototype.BrowserFeatures.XPath) {
+  document._getElementsByXPath = function(expression, parentElement) {
+    var results = [];
+    var query = document.evaluate(expression, $(parentElement) || document,
+      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
+    for (var i = 0, length = query.snapshotLength; i < length; i++)
+      results.push(Element.extend(query.snapshotItem(i)));
+    return results;
+  };
+}
+
+/*--------------------------------------------------------------------------*/
+
+if (!window.Node) var Node = { };
+
+if (!Node.ELEMENT_NODE) {
+  // DOM level 2 ECMAScript Language Binding
+  Object.extend(Node, {
+    ELEMENT_NODE: 1,
+    ATTRIBUTE_NODE: 2,
+    TEXT_NODE: 3,
+    CDATA_SECTION_NODE: 4,
+    ENTITY_REFERENCE_NODE: 5,
+    ENTITY_NODE: 6,
+    PROCESSING_INSTRUCTION_NODE: 7,
+    COMMENT_NODE: 8,
+    DOCUMENT_NODE: 9,
+    DOCUMENT_TYPE_NODE: 10,
+    DOCUMENT_FRAGMENT_NODE: 11,
+    NOTATION_NODE: 12
+  });
+}
+
+(function() {
+  var element = this.Element;
+  this.Element = function(tagName, attributes) {
+    attributes = attributes || { };
+    tagName = tagName.toLowerCase();
+    var cache = Element.cache;
+    if (Prototype.Browser.IE && attributes.name) {
+      tagName = '<' + tagName + ' name="' + attributes.name + '">';
+      delete attributes.name;
+      return Element.writeAttribute(document.createElement(tagName), attributes);
+    }
+    if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName));
+    return Element.writeAttribute(cache[tagName].cloneNode(false), attributes);
+  };
+  Object.extend(this.Element, element || { });
+}).call(window);
+
+Element.cache = { };
+
+Element.Methods = {
+  visible: function(element) {
+    return $(element).style.display != 'none';
+  },
+
+  toggle: function(element) {
+    element = $(element);
+    Element[Element.visible(element) ? 'hide' : 'show'](element);
+    return element;
+  },
+
+  hide: function(element) {
+    $(element).style.display = 'none';
+    return element;
+  },
+
+  show: function(element) {
+    $(element).style.display = '';
+    return element;
+  },
+
+  remove: function(element) {
+    element = $(element);
+    element.parentNode.removeChild(element);
+    return element;
+  },
+
+  update: function(element, content) {
+    element = $(element);
+    if (content && content.toElement) content = content.toElement();
+    if (Object.isElement(content)) return element.update().insert(content);
+    content = Object.toHTML(content);
+    element.innerHTML = content.stripScripts();
+    content.evalScripts.bind(content).defer();
+    return element;
+  },
+
+  replace: function(element, content) {
+    element = $(element);
+    if (content && content.toElement) content = content.toElement();
+    else if (!Object.isElement(content)) {
+      content = Object.toHTML(content);
+      var range = element.ownerDocument.createRange();
+      range.selectNode(element);
+      content.evalScripts.bind(content).defer();
+      content = range.createContextualFragment(content.stripScripts());
+    }
+    element.parentNode.replaceChild(content, element);
+    return element;
+  },
+
+  insert: function(element, insertions) {
+    element = $(element);
+
+    if (Object.isString(insertions) || Object.isNumber(insertions) ||
+        Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
+          insertions = {bottom:insertions};
+
+    var content, insert, tagName, childNodes;
+
+    for (var position in insertions) {
+      content  = insertions[position];
+      position = position.toLowerCase();
+      insert = Element._insertionTranslations[position];
+
+      if (content && content.toElement) content = content.toElement();
+      if (Object.isElement(content)) {
+        insert(element, content);
+        continue;
+      }
+
+      content = Object.toHTML(content);
+
+      tagName = ((position == 'before' || position == 'after')
+        ? element.parentNode : element).tagName.toUpperCase();
+
+      childNodes = Element._getContentFromAnonymousElement(tagName, content.stripScripts());
+
+      if (position == 'top' || position == 'after') childNodes.reverse();
+      childNodes.each(insert.curry(element));
+
+      content.evalScripts.bind(content).defer();
+    }
+
+    return element;
+  },
+
+  wrap: function(element, wrapper, attributes) {
+    element = $(element);
+    if (Object.isElement(wrapper))
+      $(wrapper).writeAttribute(attributes || { });
+    else if (Object.isString(wrapper)) wrapper = new Element(wrapper, attributes);
+    else wrapper = new Element('div', wrapper);
+    if (element.parentNode)
+      element.parentNode.replaceChild(wrapper, element);
+    wrapper.appendChild(element);
+    return wrapper;
+  },
+
+  inspect: function(element) {
+    element = $(element);
+    var result = '<' + element.tagName.toLowerCase();
+    $H({'id': 'id', 'className': 'class'}).each(function(pair) {
+      var property = pair.first(), attribute = pair.last();
+      var value = (element[property] || '').toString();
+      if (value) result += ' ' + attribute + '=' + value.inspect(true);
+    });
+    return result + '>';
+  },
+
+  recursivelyCollect: function(element, property) {
+    element = $(element);
+    var elements = [];
+    while (element = element[property])
+      if (element.nodeType == 1)
+        elements.push(Element.extend(element));
+    return elements;
+  },
+
+  ancestors: function(element) {
+    return $(element).recursivelyCollect('parentNode');
+  },
+
+  descendants: function(element) {
+    return $(element).select("*");
+  },
+
+  firstDescendant: function(element) {
+    element = $(element).firstChild;
+    while (element && element.nodeType != 1) element = element.nextSibling;
+    return $(element);
+  },
+
+  immediateDescendants: function(element) {
+    if (!(element = $(element).firstChild)) return [];
+    while (element && element.nodeType != 1) element = element.nextSibling;
+    if (element) return [element].concat($(element).nextSiblings());
+    return [];
+  },
+
+  previousSiblings: function(element) {
+    return $(element).recursivelyCollect('previousSibling');
+  },
+
+  nextSiblings: function(element) {
+    return $(element).recursivelyCollect('nextSibling');
+  },
+
+  siblings: function(element) {
+    element = $(element);
+    return element.previousSiblings().reverse().concat(element.nextSiblings());
+  },
+
+  match: function(element, selector) {
+    if (Object.isString(selector))
+      selector = new Selector(selector);
+    return selector.match($(element));
+  },
+
+  up: function(element, expression, index) {
+    element = $(element);
+    if (arguments.length == 1) return $(element.parentNode);
+    var ancestors = element.ancestors();
+    return Object.isNumber(expression) ? ancestors[expression] :
+      Selector.findElement(ancestors, expression, index);
+  },
+
+  down: function(element, expression, index) {
+    element = $(element);
+    if (arguments.length == 1) return element.firstDescendant();
+    return Object.isNumber(expression) ? element.descendants()[expression] :
+      element.select(expression)[index || 0];
+  },
+
+  previous: function(element, expression, index) {
+    element = $(element);
+    if (arguments.length == 1) return $(Selector.handlers.previousElementSibling(element));
+    var previousSiblings = element.previousSiblings();
+    return Object.isNumber(expression) ? previousSiblings[expression] :
+      Selector.findElement(previousSiblings, expression, index);
+  },
+
+  next: function(element, expression, index) {
+    element = $(element);
+    if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element));
+    var nextSiblings = element.nextSiblings();
+    return Object.isNumber(expression) ? nextSiblings[expression] :
+      Selector.findElement(nextSiblings, expression, index);
+  },
+
+  select: function() {
+    var args = $A(arguments), element = $(args.shift());
+    return Selector.findChildElements(element, args);
+  },
+
+  adjacent: function() {
+    var args = $A(arguments), element = $(args.shift());
+    return Selector.findChildElements(element.parentNode, args).without(element);
+  },
+
+  identify: function(element) {
+    element = $(element);
+    var id = element.readAttribute('id'), self = arguments.callee;
+    if (id) return id;
+    do { id = 'anonymous_element_' + self.counter++ } while ($(id));
+    element.writeAttribute('id', id);
+    return id;
+  },
+
+  readAttribute: function(element, name) {
+    element = $(element);
+    if (Prototype.Browser.IE) {
+      var t = Element._attributeTranslations.read;
+      if (t.values[name]) return t.values[name](element, name);
+      if (t.names[name]) name = t.names[name];
+      if (name.include(':')) {
+        return (!element.attributes || !element.attributes[name]) ? null :
+         element.attributes[name].value;
+      }
+    }
+    return element.getAttribute(name);
+  },
+
+  writeAttribute: function(element, name, value) {
+    element = $(element);
+    var attributes = { }, t = Element._attributeTranslations.write;
+
+    if (typeof name == 'object') attributes = name;
+    else attributes[name] = Object.isUndefined(value) ? true : value;
+
+    for (var attr in attributes) {
+      name = t.names[attr] || attr;
+      value = attributes[attr];
+      if (t.values[attr]) name = t.values[attr](element, value);
+      if (value === false || value === null)
+        element.removeAttribute(name);
+      else if (value === true)
+        element.setAttribute(name, name);
+      else element.setAttribute(name, value);
+    }
+    return element;
+  },
+
+  getHeight: function(element) {
+    return $(element).getDimensions().height;
+  },
+
+  getWidth: function(element) {
+    return $(element).getDimensions().width;
+  },
+
+  classNames: function(element) {
+    return new Element.ClassNames(element);
+  },
+
+  hasClassName: function(element, className) {
+    if (!(element = $(element))) return;
+    var elementClassName = element.className;
+    return (elementClassName.length > 0 && (elementClassName == className ||
+      new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName)));
+  },
+
+  addClassName: function(element, className) {
+    if (!(element = $(element))) return;
+    if (!element.hasClassName(className))
+      element.className += (element.className ? ' ' : '') + className;
+    return element;
+  },
+
+  removeClassName: function(element, className) {
+    if (!(element = $(element))) return;
+    element.className = element.className.replace(
+      new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip();
+    return element;
+  },
+
+  toggleClassName: function(element, className) {
+    if (!(element = $(element))) return;
+    return element[element.hasClassName(className) ?
+      'removeClassName' : 'addClassName'](className);
+  },
+
+  // removes whitespace-only text node children
+  cleanWhitespace: function(element) {
+    element = $(element);
+    var node = element.firstChild;
+    while (node) {
+      var nextNode = node.nextSibling;
+      if (node.nodeType == 3 && !/\S/.test(node.nodeValue))
+        element.removeChild(node);
+      node = nextNode;
+    }
+    return element;
+  },
+
+  empty: function(element) {
+    return $(element).innerHTML.blank();
+  },
+
+  descendantOf: function(element, ancestor) {
+    element = $(element), ancestor = $(ancestor);
+    var originalAncestor = ancestor;
+
+    if (element.compareDocumentPosition)
+      return (element.compareDocumentPosition(ancestor) & 8) === 8;
+
+    if (element.sourceIndex && !Prototype.Browser.Opera) {
+      var e = element.sourceIndex, a = ancestor.sourceIndex,
+       nextAncestor = ancestor.nextSibling;
+      if (!nextAncestor) {
+        do { ancestor = ancestor.parentNode; }
+        while (!(nextAncestor = ancestor.nextSibling) && ancestor.parentNode);
+      }
+      if (nextAncestor && nextAncestor.sourceIndex)
+       return (e > a && e < nextAncestor.sourceIndex);
+    }
+
+    while (element = element.parentNode)
+      if (element == originalAncestor) return true;
+    return false;
+  },
+
+  scrollTo: function(element) {
+    element = $(element);
+    var pos = element.cumulativeOffset();
+    window.scrollTo(pos[0], pos[1]);
+    return element;
+  },
+
+  getStyle: function(element, style) {
+    element = $(element);
+    style = style == 'float' ? 'cssFloat' : style.camelize();
+    var value = element.style[style];
+    if (!value) {
+      var css = document.defaultView.getComputedStyle(element, null);
+      value = css ? css[style] : null;
+    }
+    if (style == 'opacity') return value ? parseFloat(value) : 1.0;
+    return value == 'auto' ? null : value;
+  },
+
+  getOpacity: function(element) {
+    return $(element).getStyle('opacity');
+  },
+
+  setStyle: function(element, styles) {
+    element = $(element);
+    var elementStyle = element.style, match;
+    if (Object.isString(styles)) {
+      element.style.cssText += ';' + styles;
+      return styles.include('opacity') ?
+        element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : element;
+    }
+    for (var property in styles)
+      if (property == 'opacity') element.setOpacity(styles[property]);
+      else
+        elementStyle[(property == 'float' || property == 'cssFloat') ?
+          (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 'styleFloat') :
+            property] = styles[property];
+
+    return element;
+  },
+
+  setOpacity: function(element, value) {
+    element = $(element);
+    element.style.opacity = (value == 1 || value === '') ? '' :
+      (value < 0.00001) ? 0 : value;
+    return element;
+  },
+
+  getDimensions: function(element) {
+    element = $(element);
+    var display = $(element).getStyle('display');
+    if (display != 'none' && display != null) // Safari bug
+      return {width: element.offsetWidth, height: element.offsetHeight};
+
+    // All *Width and *Height properties give 0 on elements with display none,
+    // so enable the element temporarily
+    var els = element.style;
+    var originalVisibility = els.visibility;
+    var originalPosition = els.position;
+    var originalDisplay = els.display;
+    els.visibility = 'hidden';
+    els.position = 'absolute';
+    els.display = 'block';
+    var originalWidth = element.clientWidth;
+    var originalHeight = element.clientHeight;
+    els.display = originalDisplay;
+    els.position = originalPosition;
+    els.visibility = originalVisibility;
+    return {width: originalWidth, height: originalHeight};
+  },
+
+  makePositioned: function(element) {
+    element = $(element);
+    var pos = Element.getStyle(element, 'position');
+    if (pos == 'static' || !pos) {
+      element._madePositioned = true;
+      element.style.position = 'relative';
+      // Opera returns the offset relative to the positioning context, when an
+      // element is position relative but top and left have not been defined
+      if (window.opera) {
+        element.style.top = 0;
+        element.style.left = 0;
+      }
+    }
+    return element;
+  },
+
+  undoPositioned: function(element) {
+    element = $(element);
+    if (element._madePositioned) {
+      element._madePositioned = undefined;
+      element.style.position =
+        element.style.top =
+        element.style.left =
+        element.style.bottom =
+        element.style.right = '';
+    }
+    return element;
+  },
+
+  makeClipping: function(element) {
+    element = $(element);
+    if (element._overflow) return element;
+    element._overflow = Element.getStyle(element, 'overflow') || 'auto';
+    if (element._overflow !== 'hidden')
+      element.style.overflow = 'hidden';
+    return element;
+  },
+
+  undoClipping: function(element) {
+    element = $(element);
+    if (!element._overflow) return element;
+    element.style.overflow = element._overflow == 'auto' ? '' : element._overflow;
+    element._overflow = null;
+    return element;
+  },
+
+  cumulativeOffset: function(element) {
+    var valueT = 0, valueL = 0;
+    do {
+      valueT += element.offsetTop  || 0;
+      valueL += element.offsetLeft || 0;
+      element = element.offsetParent;
+    } while (element);
+    return Element._returnOffset(valueL, valueT);
+  },
+
+  positionedOffset: function(element) {
+    var valueT = 0, valueL = 0;
+    do {
+      valueT += element.offsetTop  || 0;
+      valueL += element.offsetLeft || 0;
+      element = element.offsetParent;
+      if (element) {
+        if (element.tagName == 'BODY') break;
+        var p = Element.getStyle(element, 'position');
+        if (p !== 'static') break;
+      }
+    } while (element);
+    return Element._returnOffset(valueL, valueT);
+  },
+
+  absolutize: function(element) {
+    element = $(element);
+    if (element.getStyle('position') == 'absolute') return;
+    // Position.prepare(); // To be done manually by Scripty when it needs it.
+
+    var offsets = element.positionedOffset();
+    var top     = offsets[1];
+    var left    = offsets[0];
+    var width   = element.clientWidth;
+    var height  = element.clientHeight;
+
+    element._originalLeft   = left - parseFloat(element.style.left  || 0);
+    element._originalTop    = top  - parseFloat(element.style.top || 0);
+    element._originalWidth  = element.style.width;
+    element._originalHeight = element.style.height;
+
+    element.style.position = 'absolute';
+    element.style.top    = top + 'px';
+    element.style.left   = left + 'px';
+    element.style.width  = width + 'px';
+    element.style.height = height + 'px';
+    return element;
+  },
+
+  relativize: function(element) {
+    element = $(element);
+    if (element.getStyle('position') == 'relative') return;
+    // Position.prepare(); // To be done manually by Scripty when it needs it.
+
+    element.style.position = 'relative';
+    var top  = parseFloat(element.style.top  || 0) - (element._originalTop || 0);
+    var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);
+
+    element.style.top    = top + 'px';
+    element.style.left   = left + 'px';
+    element.style.height = element._originalHeight;
+    element.style.width  = element._originalWidth;
+    return element;
+  },
+
+  cumulativeScrollOffset: function(element) {
+    var valueT = 0, valueL = 0;
+    do {
+      valueT += element.scrollTop  || 0;
+      valueL += element.scrollLeft || 0;
+      element = element.parentNode;
+    } while (element);
+    return Element._returnOffset(valueL, valueT);
+  },
+
+  getOffsetParent: function(element) {
+    if (element.offsetParent) return $(element.offsetParent);
+    if (element == document.body) return $(element);
+
+    while ((element = element.parentNode) && element != document.body)
+      if (Element.getStyle(element, 'position') != 'static')
+        return $(element);
+
+    return $(document.body);
+  },
+
+  viewportOffset: function(forElement) {
+    var valueT = 0, valueL = 0;
+
+    var element = forElement;
+    do {
+      valueT += element.offsetTop  || 0;
+      valueL += element.offsetLeft || 0;
+
+      // Safari fix
+      if (element.offsetParent == document.body &&
+        Element.getStyle(element, 'position') == 'absolute') break;
+
+    } while (element = element.offsetParent);
+
+    element = forElement;
+    do {
+      if (!Prototype.Browser.Opera || element.tagName == 'BODY') {
+        valueT -= element.scrollTop  || 0;
+        valueL -= element.scrollLeft || 0;
+      }
+    } while (element = element.parentNode);
+
+    return Element._returnOffset(valueL, valueT);
+  },
+
+  clonePosition: function(element, source) {
+    var options = Object.extend({
+      setLeft:    true,
+      setTop:     true,
+      setWidth:   true,
+      setHeight:  true,
+      offsetTop:  0,
+      offsetLeft: 0
+    }, arguments[2] || { });
+
+    // find page position of source
+    source = $(source);
+    var p = source.viewportOffset();
+
+    // find coordinate system to use
+    element = $(element);
+    var delta = [0, 0];
+    var parent = null;
+    // delta [0,0] will do fine with position: fixed elements,
+    // position:absolute needs offsetParent deltas
+    if (Element.getStyle(element, 'position') == 'absolute') {
+      parent = element.getOffsetParent();
+      delta = parent.viewportOffset();
+    }
+
+    // correct by body offsets (fixes Safari)
+    if (parent == document.body) {
+      delta[0] -= document.body.offsetLeft;
+      delta[1] -= document.body.offsetTop;
+    }
+
+    // set position
+    if (options.setLeft)   element.style.left  = (p[0] - delta[0] + options.offsetLeft) + 'px';
+    if (options.setTop)    element.style.top   = (p[1] - delta[1] + options.offsetTop) + 'px';
+    if (options.setWidth)  element.style.width = source.offsetWidth + 'px';
+    if (options.setHeight) element.style.height = source.offsetHeight + 'px';
+    return element;
+  }
+};
+
+Element.Methods.identify.counter = 1;
+
+Object.extend(Element.Methods, {
+  getElementsBySelector: Element.Methods.select,
+  childElements: Element.Methods.immediateDescendants
+});
+
+Element._attributeTranslations = {
+  write: {
+    names: {
+      className: 'class',
+      htmlFor:   'for'
+    },
+    values: { }
+  }
+};
+
+if (Prototype.Browser.Opera) {
+  Element.Methods.getStyle = Element.Methods.getStyle.wrap(
+    function(proceed, element, style) {
+      switch (style) {
+        case 'left': case 'top': case 'right': case 'bottom':
+          if (proceed(element, 'position') === 'static') return null;
+        case 'height': case 'width':
+          // returns '0px' for hidden elements; we want it to return null
+          if (!Element.visible(element)) return null;
+
+          // returns the border-box dimensions rather than the content-box
+          // dimensions, so we subtract padding and borders from the value
+          var dim = parseInt(proceed(element, style), 10);
+
+          if (dim !== element['offset' + style.capitalize()])
+            return dim + 'px';
+
+          var properties;
+          if (style === 'height') {
+            properties = ['border-top-width', 'padding-top',
+             'padding-bottom', 'border-bottom-width'];
+          }
+          else {
+            properties = ['border-left-width', 'padding-left',
+             'padding-right', 'border-right-width'];
+          }
+          return properties.inject(dim, function(memo, property) {
+            var val = proceed(element, property);
+            return val === null ? memo : memo - parseInt(val, 10);
+          }) + 'px';
+        default: return proceed(element, style);
+      }
+    }
+  );
+
+  Element.Methods.readAttribute = Element.Methods.readAttribute.wrap(
+    function(proceed, element, attribute) {
+      if (attribute === 'title') return element.title;
+      return proceed(element, attribute);
+    }
+  );
+}
+
+else if (Prototype.Browser.IE) {
+  // IE doesn't report offsets correctly for static elements, so we change them
+  // to "relative" to get the values, then change them back.
+  Element.Methods.getOffsetParent = Element.Methods.getOffsetParent.wrap(
+    function(proceed, element) {
+      element = $(element);
+      var position = element.getStyle('position');
+      if (position !== 'static') return proceed(element);
+      element.setStyle({ position: 'relative' });
+      var value = proceed(element);
+      element.setStyle({ position: position });
+      return value;
+    }
+  );
+
+  $w('positionedOffset viewportOffset').each(function(method) {
+    Element.Methods[method] = Element.Methods[method].wrap(
+      function(proceed, element) {
+        element = $(element);
+        var position = element.getStyle('position');
+        if (position !== 'static') return proceed(element);
+        // Trigger hasLayout on the offset parent so that IE6 reports
+        // accurate offsetTop and offsetLeft values for position: fixed.
+        var offsetParent = element.getOffsetParent();
+        if (offsetParent && offsetParent.getStyle('position') === 'fixed')
+          offsetParent.setStyle({ zoom: 1 });
+        element.setStyle({ position: 'relative' });
+        var value = proceed(element);
+        element.setStyle({ position: position });
+        return value;
+      }
+    );
+  });
+
+  Element.Methods.getStyle = function(element, style) {
+    element = $(element);
+    style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize();
+    var value = element.style[style];
+    if (!value && element.currentStyle) value = element.currentStyle[style];
+
+    if (style == 'opacity') {
+      if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/))
+        if (value[1]) return parseFloat(value[1]) / 100;
+      return 1.0;
+    }
+
+    if (value == 'auto') {
+      if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none'))
+        return element['offset' + style.capitalize()] + 'px';
+      return null;
+    }
+    return value;
+  };
+
+  Element.Methods.setOpacity = function(element, value) {
+    function stripAlpha(filter){
+      return filter.replace(/alpha\([^\)]*\)/gi,'');
+    }
+    element = $(element);
+    var currentStyle = element.currentStyle;
+    if ((currentStyle && !currentStyle.hasLayout) ||
+      (!currentStyle && element.style.zoom == 'normal'))
+        element.style.zoom = 1;
+
+    var filter = element.getStyle('filter'), style = element.style;
+    if (value == 1 || value === '') {
+      (filter = stripAlpha(filter)) ?
+        style.filter = filter : style.removeAttribute('filter');
+      return element;
+    } else if (value < 0.00001) value = 0;
+    style.filter = stripAlpha(filter) +
+      'alpha(opacity=' + (value * 100) + ')';
+    return element;
+  };
+
+  Element._attributeTranslations = {
+    read: {
+      names: {
+        'class': 'className',
+        'for':   'htmlFor'
+      },
+      values: {
+        _getAttr: function(element, attribute) {
+          return element.getAttribute(attribute, 2);
+        },
+        _getAttrNode: function(element, attribute) {
+          var node = element.getAttributeNode(attribute);
+          return node ? node.value : "";
+        },
+        _getEv: function(element, attribute) {
+          attribute = element.getAttribute(attribute);
+          return attribute ? attribute.toString().slice(23, -2) : null;
+        },
+        _flag: function(element, attribute) {
+          return $(element).hasAttribute(attribute) ? attribute : null;
+        },
+        style: function(element) {
+          return element.style.cssText.toLowerCase();
+        },
+        title: function(element) {
+          return element.title;
+        }
+      }
+    }
+  };
+
+  Element._attributeTranslations.write = {
+    names: Object.extend({
+      cellpadding: 'cellPadding',
+      cellspacing: 'cellSpacing'
+    }, Element._attributeTranslations.read.names),
+    values: {
+      checked: function(element, value) {
+        element.checked = !!value;
+      },
+
+      style: function(element, value) {
+        element.style.cssText = value ? value : '';
+      }
+    }
+  };
+
+  Element._attributeTranslations.has = {};
+
+  $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' +
+      'encType maxLength readOnly longDesc').each(function(attr) {
+    Element._attributeTranslations.write.names[attr.toLowerCase()] = attr;
+    Element._attributeTranslations.has[attr.toLowerCase()] = attr;
+  });
+
+  (function(v) {
+    Object.extend(v, {
+      href:        v._getAttr,
+      src:         v._getAttr,
+      type:        v._getAttr,
+      action:      v._getAttrNode,
+      disabled:    v._flag,
+      checked:     v._flag,
+      readonly:    v._flag,
+      multiple:    v._flag,
+      onload:      v._getEv,
+      onunload:    v._getEv,
+      onclick:     v._getEv,
+      ondblclick:  v._getEv,
+      onmousedown: v._getEv,
+      onmouseup:   v._getEv,
+      onmouseover: v._getEv,
+      onmousemove: v._getEv,
+      onmouseout:  v._getEv,
+      onfocus:     v._getEv,
+      onblur:      v._getEv,
+      onkeypress:  v._getEv,
+      onkeydown:   v._getEv,
+      onkeyup:     v._getEv,
+      onsubmit:    v._getEv,
+      onreset:     v._getEv,
+      onselect:    v._getEv,
+      onchange:    v._getEv
+    });
+  })(Element._attributeTranslations.read.values);
+}
+
+else if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) {
+  Element.Methods.setOpacity = function(element, value) {
+    element = $(element);
+    element.style.opacity = (value == 1) ? 0.999999 :
+      (value === '') ? '' : (value < 0.00001) ? 0 : value;
+    return element;
+  };
+}
+
+else if (Prototype.Browser.WebKit) {
+  Element.Methods.setOpacity = function(element, value) {
+    element = $(element);
+    element.style.opacity = (value == 1 || value === '') ? '' :
+      (value < 0.00001) ? 0 : value;
+
+    if (value == 1)
+      if(element.tagName == 'IMG' && element.width) {
+        element.width++; element.width--;
+      } else try {
+        var n = document.createTextNode(' ');
+        element.appendChild(n);
+        element.removeChild(n);
+      } catch (e) { }
+
+    return element;
+  };
+
+  // Safari returns margins on body which is incorrect if the child is absolutely
+  // positioned.  For performance reasons, redefine Element#cumulativeOffset for
+  // KHTML/WebKit only.
+  Element.Methods.cumulativeOffset = function(element) {
+    var valueT = 0, valueL = 0;
+    do {
+      valueT += element.offsetTop  || 0;
+      valueL += element.offsetLeft || 0;
+      if (element.offsetParent == document.body)
+        if (Element.getStyle(element, 'position') == 'absolute') break;
+
+      element = element.offsetParent;
+    } while (element);
+
+    return Element._returnOffset(valueL, valueT);
+  };
+}
+
+if (Prototype.Browser.IE || Prototype.Browser.Opera) {
+  // IE and Opera are missing .innerHTML support for TABLE-related and SELECT elements
+  Element.Methods.update = function(element, content) {
+    element = $(element);
+
+    if (content && content.toElement) content = content.toElement();
+    if (Object.isElement(content)) return element.update().insert(content);
+
+    content = Object.toHTML(content);
+    var tagName = element.tagName.toUpperCase();
+
+    if (tagName in Element._insertionTranslations.tags) {
+      $A(element.childNodes).each(function(node) { element.removeChild(node) });
+      Element._getContentFromAnonymousElement(tagName, content.stripScripts())
+        .each(function(node) { element.appendChild(node) });
+    }
+    else element.innerHTML = content.stripScripts();
+
+    content.evalScripts.bind(content).defer();
+    return element;
+  };
+}
+
+if ('outerHTML' in document.createElement('div')) {
+  Element.Methods.replace = function(element, content) {
+    element = $(element);
+
+    if (content && content.toElement) content = content.toElement();
+    if (Object.isElement(content)) {
+      element.parentNode.replaceChild(content, element);
+      return element;
+    }
+
+    content = Object.toHTML(content);
+    var parent = element.parentNode, tagName = parent.tagName.toUpperCase();
+
+    if (Element._insertionTranslations.tags[tagName]) {
+      var nextSibling = element.next();
+      var fragments = Element._getContentFromAnonymousElement(tagName, content.stripScripts());
+      parent.removeChild(element);
+      if (nextSibling)
+        fragments.each(function(node) { parent.insertBefore(node, nextSibling) });
+      else
+        fragments.each(function(node) { parent.appendChild(node) });
+    }
+    else element.outerHTML = content.stripScripts();
+
+    content.evalScripts.bind(content).defer();
+    return element;
+  };
+}
+
+Element._returnOffset = function(l, t) {
+  var result = [l, t];
+  result.left = l;
+  result.top = t;
+  return result;
+};
+
+Element._getContentFromAnonymousElement = function(tagName, html) {
+  var div = new Element('div'), t = Element._insertionTranslations.tags[tagName];
+  if (t) {
+    div.innerHTML = t[0] + html + t[1];
+    t[2].times(function() { div = div.firstChild });
+  } else div.innerHTML = html;
+  return $A(div.childNodes);
+};
+
+Element._insertionTranslations = {
+  before: function(element, node) {
+    element.parentNode.insertBefore(node, element);
+  },
+  top: function(element, node) {
+    element.insertBefore(node, element.firstChild);
+  },
+  bottom: function(element, node) {
+    element.appendChild(node);
+  },
+  after: function(element, node) {
+    element.parentNode.insertBefore(node, element.nextSibling);
+  },
+  tags: {
+    TABLE:  ['<table>',                '</table>',                   1],
+    TBODY:  ['<table><tbody>',         '</tbody></table>',           2],
+    TR:     ['<table><tbody><tr>',     '</tr></tbody></table>',      3],
+    TD:     ['<table><tbody><tr><td>', '</td></tr></tbody></table>', 4],
+    SELECT: ['<select>',               '</select>',                  1]
+  }
+};
+
+(function() {
+  Object.extend(this.tags, {
+    THEAD: this.tags.TBODY,
+    TFOOT: this.tags.TBODY,
+    TH:    this.tags.TD
+  });
+}).call(Element._insertionTranslations);
+
+Element.Methods.Simulated = {
+  hasAttribute: function(element, attribute) {
+    attribute = Element._attributeTranslations.has[attribute] || attribute;
+    var node = $(element).getAttributeNode(attribute);
+    return node && node.specified;
+  }
+};
+
+Element.Methods.ByTag = { };
+
+Object.extend(Element, Element.Methods);
+
+if (!Prototype.BrowserFeatures.ElementExtensions &&
+    document.createElement('div').__proto__) {
+  window.HTMLElement = { };
+  window.HTMLElement.prototype = document.createElement('div').__proto__;
+  Prototype.BrowserFeatures.ElementExtensions = true;
+}
+
+Element.extend = (function() {
+  if (Prototype.BrowserFeatures.SpecificElementExtensions)
+    return Prototype.K;
+
+  var Methods = { }, ByTag = Element.Methods.ByTag;
+
+  var extend = Object.extend(function(element) {
+    if (!element || element._extendedByPrototype ||
+        element.nodeType != 1 || element == window) return element;
+
+    var methods = Object.clone(Methods),
+      tagName = element.tagName, property, value;
+
+    // extend methods for specific tags
+    if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);
+
+    for (property in methods) {
+      value = methods[property];
+      if (Object.isFunction(value) && !(property in element))
+        element[property] = value.methodize();
+    }
+
+    element._extendedByPrototype = Prototype.emptyFunction;
+    return element;
+
+  }, {
+    refresh: function() {
+      // extend methods for all tags (Safari doesn't need this)
+      if (!Prototype.BrowserFeatures.ElementExtensions) {
+        Object.extend(Methods, Element.Methods);
+        Object.extend(Methods, Element.Methods.Simulated);
+      }
+    }
+  });
+
+  extend.refresh();
+  return extend;
+})();
+
+Element.hasAttribute = function(element, attribute) {
+  if (element.hasAttribute) return element.hasAttribute(attribute);
+  return Element.Methods.Simulated.hasAttribute(element, attribute);
+};
+
+Element.addMethods = function(methods) {
+  var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;
+
+  if (!methods) {
+    Object.extend(Form, Form.Methods);
+    Object.extend(Form.Element, Form.Element.Methods);
+    Object.extend(Element.Methods.ByTag, {
+      "FORM":     Object.clone(Form.Methods),
+      "INPUT":    Object.clone(Form.Element.Methods),
+      "SELECT":   Object.clone(Form.Element.Methods),
+      "TEXTAREA": Object.clone(Form.Element.Methods)
+    });
+  }
+
+  if (arguments.length == 2) {
+    var tagName = methods;
+    methods = arguments[1];
+  }
+
+  if (!tagName) Object.extend(Element.Methods, methods || { });
+  else {
+    if (Object.isArray(tagName)) tagName.each(extend);
+    else extend(tagName);
+  }
+
+  function extend(tagName) {
+    tagName = tagName.toUpperCase();
+    if (!Element.Methods.ByTag[tagName])
+      Element.Methods.ByTag[tagName] = { };
+    Object.extend(Element.Methods.ByTag[tagName], methods);
+  }
+
+  function copy(methods, destination, onlyIfAbsent) {
+    onlyIfAbsent = onlyIfAbsent || false;
+    for (var property in methods) {
+      var value = methods[property];
+      if (!Object.isFunction(value)) continue;
+      if (!onlyIfAbsent || !(property in destination))
+        destination[property] = value.methodize();
+    }
+  }
+
+  function findDOMClass(tagName) {
+    var klass;
+    var trans = {
+      "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph",
+      "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": "DList",
+      "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": "Heading",
+      "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote",
+      "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", "CAPTION":
+      "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", "THEAD":
+      "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", "TR":
+      "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET":
+      "FrameSet", "IFRAME": "IFrame"
+    };
+    if (trans[tagName]) klass = 'HTML' + trans[tagName] + 'Element';
+    if (window[klass]) return window[klass];
+    klass = 'HTML' + tagName + 'Element';
+    if (window[klass]) return window[klass];
+    klass = 'HTML' + tagName.capitalize() + 'Element';
+    if (window[klass]) return window[klass];
+
+    window[klass] = { };
+    window[klass].prototype = document.createElement(tagName).__proto__;
+    return window[klass];
+  }
+
+  if (F.ElementExtensions) {
+    copy(Element.Methods, HTMLElement.prototype);
+    copy(Element.Methods.Simulated, HTMLElement.prototype, true);
+  }
+
+  if (F.SpecificElementExtensions) {
+    for (var tag in Element.Methods.ByTag) {
+      var klass = findDOMClass(tag);
+      if (Object.isUndefined(klass)) continue;
+      copy(T[tag], klass.prototype);
+    }
+  }
+
+  Object.extend(Element, Element.Methods);
+  delete Element.ByTag;
+
+  if (Element.extend.refresh) Element.extend.refresh();
+  Element.cache = { };
+};
+
+document.viewport = {
+  getDimensions: function() {
+    var dimensions = { };
+    var B = Prototype.Browser;
+    $w('width height').each(function(d) {
+      var D = d.capitalize();
+      dimensions[d] = (B.WebKit && !document.evaluate) ? self['inner' + D] :
+        (B.Opera) ? document.body['client' + D] : document.documentElement['client' + D];
+    });
+    return dimensions;
+  },
+
+  getWidth: function() {
+    return this.getDimensions().width;
+  },
+
+  getHeight: function() {
+    return this.getDimensions().height;
+  },
+
+  getScrollOffsets: function() {
+    return Element._returnOffset(
+      window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft,
+      window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop);
+  }
+};
+/* Portions of the Selector class are derived from Jack Slocum’s DomQuery,
+ * part of YUI-Ext version 0.40, distributed under the terms of an MIT-style
+ * license.  Please see http://www.yui-ext.com/ for more information. */
+
+var Selector = Class.create({
+  initialize: function(expression) {
+    this.expression = expression.strip();
+    this.compileMatcher();
+  },
+
+  shouldUseXPath: function() {
+    if (!Prototype.BrowserFeatures.XPath) return false;
+
+    var e = this.expression;
+
+    // Safari 3 chokes on :*-of-type and :empty
+    if (Prototype.Browser.WebKit &&
+     (e.include("-of-type") || e.include(":empty")))
+      return false;
+
+    // XPath can't do namespaced attributes, nor can it read
+    // the "checked" property from DOM nodes
+    if ((/(\[[\w-]*?:|:checked)/).test(this.expression))
+      return false;
+
+    return true;
+  },
+
+  compileMatcher: function() {
+    if (this.shouldUseXPath())
+      return this.compileXPathMatcher();
+
+    var e = this.expression, ps = Selector.patterns, h = Selector.handlers,
+        c = Selector.criteria, le, p, m;
+
+    if (Selector._cache[e]) {
+      this.matcher = Selector._cache[e];
+      return;
+    }
+
+    this.matcher = ["this.matcher = function(root) {",
+                    "var r = root, h = Selector.handlers, c = false, n;"];
+
+    while (e && le != e && (/\S/).test(e)) {
+      le = e;
+      for (var i in ps) {
+        p = ps[i];
+        if (m = e.match(p)) {
+          this.matcher.push(Object.isFunction(c[i]) ? c[i](m) :
+    	      new Template(c[i]).evaluate(m));
+          e = e.replace(m[0], '');
+          break;
+        }
+      }
+    }
+
+    this.matcher.push("return h.unique(n);\n}");
+    eval(this.matcher.join('\n'));
+    Selector._cache[this.expression] = this.matcher;
+  },
+
+  compileXPathMatcher: function() {
+    var e = this.expression, ps = Selector.patterns,
+        x = Selector.xpath, le, m;
+
+    if (Selector._cache[e]) {
+      this.xpath = Selector._cache[e]; return;
+    }
+
+    this.matcher = ['.//*'];
+    while (e && le != e && (/\S/).test(e)) {
+      le = e;
+      for (var i in ps) {
+        if (m = e.match(ps[i])) {
+          this.matcher.push(Object.isFunction(x[i]) ? x[i](m) :
+            new Template(x[i]).evaluate(m));
+          e = e.replace(m[0], '');
+          break;
+        }
+      }
+    }
+
+    this.xpath = this.matcher.join('');
+    Selector._cache[this.expression] = this.xpath;
+  },
+
+  findElements: function(root) {
+    root = root || document;
+    if (this.xpath) return document._getElementsByXPath(this.xpath, root);
+    return this.matcher(root);
+  },
+
+  match: function(element) {
+    this.tokens = [];
+
+    var e = this.expression, ps = Selector.patterns, as = Selector.assertions;
+    var le, p, m;
+
+    while (e && le !== e && (/\S/).test(e)) {
+      le = e;
+      for (var i in ps) {
+        p = ps[i];
+        if (m = e.match(p)) {
+          // use the Selector.assertions methods unless the selector
+          // is too complex.
+          if (as[i]) {
+            this.tokens.push([i, Object.clone(m)]);
+            e = e.replace(m[0], '');
+          } else {
+            // reluctantly do a document-wide search
+            // and look for a match in the array
+            return this.findElements(document).include(element);
+          }
+        }
+      }
+    }
+
+    var match = true, name, matches;
+    for (var i = 0, token; token = this.tokens[i]; i++) {
+      name = token[0], matches = token[1];
+      if (!Selector.assertions[name](element, matches)) {
+        match = false; break;
+      }
+    }
+
+    return match;
+  },
+
+  toString: function() {
+    return this.expression;
+  },
+
+  inspect: function() {
+    return "#<Selector:" + this.expression.inspect() + ">";
+  }
+});
+
+Object.extend(Selector, {
+  _cache: { },
+
+  xpath: {
+    descendant:   "//*",
+    child:        "/*",
+    adjacent:     "/following-sibling::*[1]",
+    laterSibling: '/following-sibling::*',
+    tagName:      function(m) {
+      if (m[1] == '*') return '';
+      return "[local-name()='" + m[1].toLowerCase() +
+             "' or local-name()='" + m[1].toUpperCase() + "']";
+    },
+    className:    "[contains(concat(' ', @class, ' '), ' #{1} ')]",
+    id:           "[@id='#{1}']",
+    attrPresence: function(m) {
+      m[1] = m[1].toLowerCase();
+      return new Template("[@#{1}]").evaluate(m);
+    },
+    attr: function(m) {
+      m[1] = m[1].toLowerCase();
+      m[3] = m[5] || m[6];
+      return new Template(Selector.xpath.operators[m[2]]).evaluate(m);
+    },
+    pseudo: function(m) {
+      var h = Selector.xpath.pseudos[m[1]];
+      if (!h) return '';
+      if (Object.isFunction(h)) return h(m);
+      return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);
+    },
+    operators: {
+      '=':  "[@#{1}='#{3}']",
+      '!=': "[@#{1}!='#{3}']",
+      '^=': "[starts-with(@#{1}, '#{3}')]",
+      '$=': "[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']",
+      '*=': "[contains(@#{1}, '#{3}')]",
+      '~=': "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",
+      '|=': "[contains(concat('-', @#{1}, '-'), '-#{3}-')]"
+    },
+    pseudos: {
+      'first-child': '[not(preceding-sibling::*)]',
+      'last-child':  '[not(following-sibling::*)]',
+      'only-child':  '[not(preceding-sibling::* or following-sibling::*)]',
+      'empty':       "[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]",
+      'checked':     "[@checked]",
+      'disabled':    "[@disabled]",
+      'enabled':     "[not(@disabled)]",
+      'not': function(m) {
+        var e = m[6], p = Selector.patterns,
+            x = Selector.xpath, le, v;
+
+        var exclusion = [];
+        while (e && le != e && (/\S/).test(e)) {
+          le = e;
+          for (var i in p) {
+            if (m = e.match(p[i])) {
+              v = Object.isFunction(x[i]) ? x[i](m) : new Template(x[i]).evaluate(m);
+              exclusion.push("(" + v.substring(1, v.length - 1) + ")");
+              e = e.replace(m[0], '');
+              break;
+            }
+          }
+        }
+        return "[not(" + exclusion.join(" and ") + ")]";
+      },
+      'nth-child':      function(m) {
+        return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m);
+      },
+      'nth-last-child': function(m) {
+        return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m);
+      },
+      'nth-of-type':    function(m) {
+        return Selector.xpath.pseudos.nth("position() ", m);
+      },
+      'nth-last-of-type': function(m) {
+        return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", m);
+      },
+      'first-of-type':  function(m) {
+        m[6] = "1"; return Selector.xpath.pseudos['nth-of-type'](m);
+      },
+      'last-of-type':   function(m) {
+        m[6] = "1"; return Selector.xpath.pseudos['nth-last-of-type'](m);
+      },
+      'only-of-type':   function(m) {
+        var p = Selector.xpath.pseudos; return p['first-of-type'](m) + p['last-of-type'](m);
+      },
+      nth: function(fragment, m) {
+        var mm, formula = m[6], predicate;
+        if (formula == 'even') formula = '2n+0';
+        if (formula == 'odd')  formula = '2n+1';
+        if (mm = formula.match(/^(\d+)$/)) // digit only
+          return '[' + fragment + "= " + mm[1] + ']';
+        if (mm = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
+          if (mm[1] == "-") mm[1] = -1;
+          var a = mm[1] ? Number(mm[1]) : 1;
+          var b = mm[2] ? Number(mm[2]) : 0;
+          predicate = "[((#{fragment} - #{b}) mod #{a} = 0) and " +
+          "((#{fragment} - #{b}) div #{a} >= 0)]";
+          return new Template(predicate).evaluate({
+            fragment: fragment, a: a, b: b });
+        }
+      }
+    }
+  },
+
+  criteria: {
+    tagName:      'n = h.tagName(n, r, "#{1}", c);      c = false;',
+    className:    'n = h.className(n, r, "#{1}", c);    c = false;',
+    id:           'n = h.id(n, r, "#{1}", c);           c = false;',
+    attrPresence: 'n = h.attrPresence(n, r, "#{1}", c); c = false;',
+    attr: function(m) {
+      m[3] = (m[5] || m[6]);
+      return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m);
+    },
+    pseudo: function(m) {
+      if (m[6]) m[6] = m[6].replace(/"/g, '\\"');
+      return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m);
+    },
+    descendant:   'c = "descendant";',
+    child:        'c = "child";',
+    adjacent:     'c = "adjacent";',
+    laterSibling: 'c = "laterSibling";'
+  },
+
+  patterns: {
+    // combinators must be listed first
+    // (and descendant needs to be last combinator)
+    laterSibling: /^\s*~\s*/,
+    child:        /^\s*>\s*/,
+    adjacent:     /^\s*\+\s*/,
+    descendant:   /^\s/,
+
+    // selectors follow
+    tagName:      /^\s*(\*|[\w\-]+)(\b|$)?/,
+    id:           /^#([\w\-\*]+)(\b|$)/,
+    className:    /^\.([\w\-\*]+)(\b|$)/,
+    pseudo:
+/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,
+    attrPresence: /^\[([\w]+)\]/,
+    attr:         /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/
+  },
+
+  // for Selector.match and Element#match
+  assertions: {
+    tagName: function(element, matches) {
+      return matches[1].toUpperCase() == element.tagName.toUpperCase();
+    },
+
+    className: function(element, matches) {
+      return Element.hasClassName(element, matches[1]);
+    },
+
+    id: function(element, matches) {
+      return element.id === matches[1];
+    },
+
+    attrPresence: function(element, matches) {
+      return Element.hasAttribute(element, matches[1]);
+    },
+
+    attr: function(element, matches) {
+      var nodeValue = Element.readAttribute(element, matches[1]);
+      return nodeValue && Selector.operators[matches[2]](nodeValue, matches[5] || matches[6]);
+    }
+  },
+
+  handlers: {
+    // UTILITY FUNCTIONS
+    // joins two collections
+    concat: function(a, b) {
+      for (var i = 0, node; node = b[i]; i++)
+        a.push(node);
+      return a;
+    },
+
+    // marks an array of nodes for counting
+    mark: function(nodes) {
+      var _true = Prototype.emptyFunction;
+      for (var i = 0, node; node = nodes[i]; i++)
+        node._countedByPrototype = _true;
+      return nodes;
+    },
+
+    unmark: function(nodes) {
+      for (var i = 0, node; node = nodes[i]; i++)
+        node._countedByPrototype = undefined;
+      return nodes;
+    },
+
+    // mark each child node with its position (for nth calls)
+    // "ofType" flag indicates whether we're indexing for nth-of-type
+    // rather than nth-child
+    index: function(parentNode, reverse, ofType) {
+      parentNode._countedByPrototype = Prototype.emptyFunction;
+      if (reverse) {
+        for (var nodes = parentNode.childNodes, i = nodes.length - 1, j = 1; i >= 0; i--) {
+          var node = nodes[i];
+          if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++;
+        }
+      } else {
+        for (var i = 0, j = 1, nodes = parentNode.childNodes; node = nodes[i]; i++)
+          if (node.nodeType == 1 && (!ofType || node._countedByPrototype)) node.nodeIndex = j++;
+      }
+    },
+
+    // filters out duplicates and extends all nodes
+    unique: function(nodes) {
+      if (nodes.length == 0) return nodes;
+      var results = [], n;
+      for (var i = 0, l = nodes.length; i < l; i++)
+        if (!(n = nodes[i])._countedByPrototype) {
+          n._countedByPrototype = Prototype.emptyFunction;
+          results.push(Element.extend(n));
+        }
+      return Selector.handlers.unmark(results);
+    },
+
+    // COMBINATOR FUNCTIONS
+    descendant: function(nodes) {
+      var h = Selector.handlers;
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        h.concat(results, node.getElementsByTagName('*'));
+      return results;
+    },
+
+    child: function(nodes) {
+      var h = Selector.handlers;
+      for (var i = 0, results = [], node; node = nodes[i]; i++) {
+        for (var j = 0, child; child = node.childNodes[j]; j++)
+          if (child.nodeType == 1 && child.tagName != '!') results.push(child);
+      }
+      return results;
+    },
+
+    adjacent: function(nodes) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++) {
+        var next = this.nextElementSibling(node);
+        if (next) results.push(next);
+      }
+      return results;
+    },
+
+    laterSibling: function(nodes) {
+      var h = Selector.handlers;
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        h.concat(results, Element.nextSiblings(node));
+      return results;
+    },
+
+    nextElementSibling: function(node) {
+      while (node = node.nextSibling)
+	      if (node.nodeType == 1) return node;
+      return null;
+    },
+
+    previousElementSibling: function(node) {
+      while (node = node.previousSibling)
+        if (node.nodeType == 1) return node;
+      return null;
+    },
+
+    // TOKEN FUNCTIONS
+    tagName: function(nodes, root, tagName, combinator) {
+      var uTagName = tagName.toUpperCase();
+      var results = [], h = Selector.handlers;
+      if (nodes) {
+        if (combinator) {
+          // fastlane for ordinary descendant combinators
+          if (combinator == "descendant") {
+            for (var i = 0, node; node = nodes[i]; i++)
+              h.concat(results, node.getElementsByTagName(tagName));
+            return results;
+          } else nodes = this[combinator](nodes);
+          if (tagName == "*") return nodes;
+        }
+        for (var i = 0, node; node = nodes[i]; i++)
+          if (node.tagName.toUpperCase() === uTagName) results.push(node);
+        return results;
+      } else return root.getElementsByTagName(tagName);
+    },
+
+    id: function(nodes, root, id, combinator) {
+      var targetNode = $(id), h = Selector.handlers;
+      if (!targetNode) return [];
+      if (!nodes && root == document) return [targetNode];
+      if (nodes) {
+        if (combinator) {
+          if (combinator == 'child') {
+            for (var i = 0, node; node = nodes[i]; i++)
+              if (targetNode.parentNode == node) return [targetNode];
+          } else if (combinator == 'descendant') {
+            for (var i = 0, node; node = nodes[i]; i++)
+              if (Element.descendantOf(targetNode, node)) return [targetNode];
+          } else if (combinator == 'adjacent') {
+            for (var i = 0, node; node = nodes[i]; i++)
+              if (Selector.handlers.previousElementSibling(targetNode) == node)
+                return [targetNode];
+          } else nodes = h[combinator](nodes);
+        }
+        for (var i = 0, node; node = nodes[i]; i++)
+          if (node == targetNode) return [targetNode];
+        return [];
+      }
+      return (targetNode && Element.descendantOf(targetNode, root)) ? [targetNode] : [];
+    },
+
+    className: function(nodes, root, className, combinator) {
+      if (nodes && combinator) nodes = this[combinator](nodes);
+      return Selector.handlers.byClassName(nodes, root, className);
+    },
+
+    byClassName: function(nodes, root, className) {
+      if (!nodes) nodes = Selector.handlers.descendant([root]);
+      var needle = ' ' + className + ' ';
+      for (var i = 0, results = [], node, nodeClassName; node = nodes[i]; i++) {
+        nodeClassName = node.className;
+        if (nodeClassName.length == 0) continue;
+        if (nodeClassName == className || (' ' + nodeClassName + ' ').include(needle))
+          results.push(node);
+      }
+      return results;
+    },
+
+    attrPresence: function(nodes, root, attr, combinator) {
+      if (!nodes) nodes = root.getElementsByTagName("*");
+      if (nodes && combinator) nodes = this[combinator](nodes);
+      var results = [];
+      for (var i = 0, node; node = nodes[i]; i++)
+        if (Element.hasAttribute(node, attr)) results.push(node);
+      return results;
+    },
+
+    attr: function(nodes, root, attr, value, operator, combinator) {
+      if (!nodes) nodes = root.getElementsByTagName("*");
+      if (nodes && combinator) nodes = this[combinator](nodes);
+      var handler = Selector.operators[operator], results = [];
+      for (var i = 0, node; node = nodes[i]; i++) {
+        var nodeValue = Element.readAttribute(node, attr);
+        if (nodeValue === null) continue;
+        if (handler(nodeValue, value)) results.push(node);
+      }
+      return results;
+    },
+
+    pseudo: function(nodes, name, value, root, combinator) {
+      if (nodes && combinator) nodes = this[combinator](nodes);
+      if (!nodes) nodes = root.getElementsByTagName("*");
+      return Selector.pseudos[name](nodes, value, root);
+    }
+  },
+
+  pseudos: {
+    'first-child': function(nodes, value, root) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++) {
+        if (Selector.handlers.previousElementSibling(node)) continue;
+          results.push(node);
+      }
+      return results;
+    },
+    'last-child': function(nodes, value, root) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++) {
+        if (Selector.handlers.nextElementSibling(node)) continue;
+          results.push(node);
+      }
+      return results;
+    },
+    'only-child': function(nodes, value, root) {
+      var h = Selector.handlers;
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        if (!h.previousElementSibling(node) && !h.nextElementSibling(node))
+          results.push(node);
+      return results;
+    },
+    'nth-child':        function(nodes, formula, root) {
+      return Selector.pseudos.nth(nodes, formula, root);
+    },
+    'nth-last-child':   function(nodes, formula, root) {
+      return Selector.pseudos.nth(nodes, formula, root, true);
+    },
+    'nth-of-type':      function(nodes, formula, root) {
+      return Selector.pseudos.nth(nodes, formula, root, false, true);
+    },
+    'nth-last-of-type': function(nodes, formula, root) {
+      return Selector.pseudos.nth(nodes, formula, root, true, true);
+    },
+    'first-of-type':    function(nodes, formula, root) {
+      return Selector.pseudos.nth(nodes, "1", root, false, true);
+    },
+    'last-of-type':     function(nodes, formula, root) {
+      return Selector.pseudos.nth(nodes, "1", root, true, true);
+    },
+    'only-of-type':     function(nodes, formula, root) {
+      var p = Selector.pseudos;
+      return p['last-of-type'](p['first-of-type'](nodes, formula, root), formula, root);
+    },
+
+    // handles the an+b logic
+    getIndices: function(a, b, total) {
+      if (a == 0) return b > 0 ? [b] : [];
+      return $R(1, total).inject([], function(memo, i) {
+        if (0 == (i - b) % a && (i - b) / a >= 0) memo.push(i);
+        return memo;
+      });
+    },
+
+    // handles nth(-last)-child, nth(-last)-of-type, and (first|last)-of-type
+    nth: function(nodes, formula, root, reverse, ofType) {
+      if (nodes.length == 0) return [];
+      if (formula == 'even') formula = '2n+0';
+      if (formula == 'odd')  formula = '2n+1';
+      var h = Selector.handlers, results = [], indexed = [], m;
+      h.mark(nodes);
+      for (var i = 0, node; node = nodes[i]; i++) {
+        if (!node.parentNode._countedByPrototype) {
+          h.index(node.parentNode, reverse, ofType);
+          indexed.push(node.parentNode);
+        }
+      }
+      if (formula.match(/^\d+$/)) { // just a number
+        formula = Number(formula);
+        for (var i = 0, node; node = nodes[i]; i++)
+          if (node.nodeIndex == formula) results.push(node);
+      } else if (m = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
+        if (m[1] == "-") m[1] = -1;
+        var a = m[1] ? Number(m[1]) : 1;
+        var b = m[2] ? Number(m[2]) : 0;
+        var indices = Selector.pseudos.getIndices(a, b, nodes.length);
+        for (var i = 0, node, l = indices.length; node = nodes[i]; i++) {
+          for (var j = 0; j < l; j++)
+            if (node.nodeIndex == indices[j]) results.push(node);
+        }
+      }
+      h.unmark(nodes);
+      h.unmark(indexed);
+      return results;
+    },
+
+    'empty': function(nodes, value, root) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++) {
+        // IE treats comments as element nodes
+        if (node.tagName == '!' || (node.firstChild && !node.innerHTML.match(/^\s*$/))) continue;
+        results.push(node);
+      }
+      return results;
+    },
+
+    'not': function(nodes, selector, root) {
+      var h = Selector.handlers, selectorType, m;
+      var exclusions = new Selector(selector).findElements(root);
+      h.mark(exclusions);
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        if (!node._countedByPrototype) results.push(node);
+      h.unmark(exclusions);
+      return results;
+    },
+
+    'enabled': function(nodes, value, root) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        if (!node.disabled) results.push(node);
+      return results;
+    },
+
+    'disabled': function(nodes, value, root) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        if (node.disabled) results.push(node);
+      return results;
+    },
+
+    'checked': function(nodes, value, root) {
+      for (var i = 0, results = [], node; node = nodes[i]; i++)
+        if (node.checked) results.push(node);
+      return results;
+    }
+  },
+
+  operators: {
+    '=':  function(nv, v) { return nv == v; },
+    '!=': function(nv, v) { return nv != v; },
+    '^=': function(nv, v) { return nv.startsWith(v); },
+    '$=': function(nv, v) { return nv.endsWith(v); },
+    '*=': function(nv, v) { return nv.include(v); },
+    '~=': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + ' '); },
+    '|=': function(nv, v) { return ('-' + nv.toUpperCase() + '-').include('-' + v.toUpperCase() + '-'); }
+  },
+
+  split: function(expression) {
+    var expressions = [];
+    expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) {
+      expressions.push(m[1].strip());
+    });
+    return expressions;
+  },
+
+  matchElements: function(elements, expression) {
+    var matches = $$(expression), h = Selector.handlers;
+    h.mark(matches);
+    for (var i = 0, results = [], element; element = elements[i]; i++)
+      if (element._countedByPrototype) results.push(element);
+    h.unmark(matches);
+    return results;
+  },
+
+  findElement: function(elements, expression, index) {
+    if (Object.isNumber(expression)) {
+      index = expression; expression = false;
+    }
+    return Selector.matchElements(elements, expression || '*')[index || 0];
+  },
+
+  findChildElements: function(element, expressions) {
+    expressions = Selector.split(expressions.join(','));
+    var results = [], h = Selector.handlers;
+    for (var i = 0, l = expressions.length, selector; i < l; i++) {
+      selector = new Selector(expressions[i].strip());
+      h.concat(results, selector.findElements(element));
+    }
+    return (l > 1) ? h.unique(results) : results;
+  }
+});
+
+if (Prototype.Browser.IE) {
+  Object.extend(Selector.handlers, {
+    // IE returns comment nodes on getElementsByTagName("*").
+    // Filter them out.
+    concat: function(a, b) {
+      for (var i = 0, node; node = b[i]; i++)
+        if (node.tagName !== "!") a.push(node);
+      return a;
+    },
+
+    // IE improperly serializes _countedByPrototype in (inner|outer)HTML.
+    unmark: function(nodes) {
+      for (var i = 0, node; node = nodes[i]; i++)
+        node.removeAttribute('_countedByPrototype');
+      return nodes;
+    }
+  });
+}
+
+function $$() {
+  return Selector.findChildElements(document, $A(arguments));
+}
+var Form = {
+  reset: function(form) {
+    $(form).reset();
+    return form;
+  },
+
+  serializeElements: function(elements, options) {
+    if (typeof options != 'object') options = { hash: !!options };
+    else if (Object.isUndefined(options.hash)) options.hash = true;
+    var key, value, submitted = false, submit = options.submit;
+
+    var data = elements.inject({ }, function(result, element) {
+      if (!element.disabled && element.name) {
+        key = element.name; value = $(element).getValue();
+        if (value != null && (element.type != 'submit' || (!submitted &&
+            submit !== false && (!submit || key == submit) && (submitted = true)))) {
+          if (key in result) {
+            // a key is already present; construct an array of values
+            if (!Object.isArray(result[key])) result[key] = [result[key]];
+            result[key].push(value);
+          }
+          else result[key] = value;
+        }
+      }
+      return result;
+    });
+
+    return options.hash ? data : Object.toQueryString(data);
+  }
+};
+
+Form.Methods = {
+  serialize: function(form, options) {
+    return Form.serializeElements(Form.getElements(form), options);
+  },
+
+  getElements: function(form) {
+    return $A($(form).getElementsByTagName('*')).inject([],
+      function(elements, child) {
+        if (Form.Element.Serializers[child.tagName.toLowerCase()])
+          elements.push(Element.extend(child));
+        return elements;
+      }
+    );
+  },
+
+  getInputs: function(form, typeName, name) {
+    form = $(form);
+    var inputs = form.getElementsByTagName('input');
+
+    if (!typeName && !name) return $A(inputs).map(Element.extend);
+
+    for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) {
+      var input = inputs[i];
+      if ((typeName && input.type != typeName) || (name && input.name != name))
+        continue;
+      matchingInputs.push(Element.extend(input));
+    }
+
+    return matchingInputs;
+  },
+
+  disable: function(form) {
+    form = $(form);
+    Form.getElements(form).invoke('disable');
+    return form;
+  },
+
+  enable: function(form) {
+    form = $(form);
+    Form.getElements(form).invoke('enable');
+    return form;
+  },
+
+  findFirstElement: function(form) {
+    var elements = $(form).getElements().findAll(function(element) {
+      return 'hidden' != element.type && !element.disabled;
+    });
+    var firstByIndex = elements.findAll(function(element) {
+      return element.hasAttribute('tabIndex') && element.tabIndex >= 0;
+    }).sortBy(function(element) { return element.tabIndex }).first();
+
+    return firstByIndex ? firstByIndex : elements.find(function(element) {
+      return ['input', 'select', 'textarea'].include(element.tagName.toLowerCase());
+    });
+  },
+
+  focusFirstElement: function(form) {
+    form = $(form);
+    form.findFirstElement().activate();
+    return form;
+  },
+
+  request: function(form, options) {
+    form = $(form), options = Object.clone(options || { });
+
+    var params = options.parameters, action = form.readAttribute('action') || '';
+    if (action.blank()) action = window.location.href;
+    options.parameters = form.serialize(true);
+
+    if (params) {
+      if (Object.isString(params)) params = params.toQueryParams();
+      Object.extend(options.parameters, params);
+    }
+
+    if (form.hasAttribute('method') && !options.method)
+      options.method = form.method;
+
+    return new Ajax.Request(action, options);
+  }
+};
+
+/*--------------------------------------------------------------------------*/
+
+Form.Element = {
+  focus: function(element) {
+    $(element).focus();
+    return element;
+  },
+
+  select: function(element) {
+    $(element).select();
+    return element;
+  }
+};
+
+Form.Element.Methods = {
+  serialize: function(element) {
+    element = $(element);
+    if (!element.disabled && element.name) {
+      var value = element.getValue();
+      if (value != undefined) {
+        var pair = { };
+        pair[element.name] = value;
+        return Object.toQueryString(pair);
+      }
+    }
+    return '';
+  },
+
+  getValue: function(element) {
+    element = $(element);
+    var method = element.tagName.toLowerCase();
+    return Form.Element.Serializers[method](element);
+  },
+
+  setValue: function(element, value) {
+    element = $(element);
+    var method = element.tagName.toLowerCase();
+    Form.Element.Serializers[method](element, value);
+    return element;
+  },
+
+  clear: function(element) {
+    $(element).value = '';
+    return element;
+  },
+
+  present: function(element) {
+    return $(element).value != '';
+  },
+
+  activate: function(element) {
+    element = $(element);
+    try {
+      element.focus();
+      if (element.select && (element.tagName.toLowerCase() != 'input' ||
+          !['button', 'reset', 'submit'].include(element.type)))
+        element.select();
+    } catch (e) { }
+    return element;
+  },
+
+  disable: function(element) {
+    element = $(element);
+    element.blur();
+    element.disabled = true;
+    return element;
+  },
+
+  enable: function(element) {
+    element = $(element);
+    element.disabled = false;
+    return element;
+  }
+};
+
+/*--------------------------------------------------------------------------*/
+
+var Field = Form.Element;
+var $F = Form.Element.Methods.getValue;
+
+/*--------------------------------------------------------------------------*/
+
+Form.Element.Serializers = {
+  input: function(element, value) {
+    switch (element.type.toLowerCase()) {
+      case 'checkbox':
+      case 'radio':
+        return Form.Element.Serializers.inputSelector(element, value);
+      default:
+        return Form.Element.Serializers.textarea(element, value);
+    }
+  },
+
+  inputSelector: function(element, value) {
+    if (Object.isUndefined(value)) return element.checked ? element.value : null;
+    else element.checked = !!value;
+  },
+
+  textarea: function(element, value) {
+    if (Object.isUndefined(value)) return element.value;
+    else element.value = value;
+  },
+
+  select: function(element, index) {
+    if (Object.isUndefined(index))
+      return this[element.type == 'select-one' ?
+        'selectOne' : 'selectMany'](element);
+    else {
+      var opt, value, single = !Object.isArray(index);
+      for (var i = 0, length = element.length; i < length; i++) {
+        opt = element.options[i];
+        value = this.optionValue(opt);
+        if (single) {
+          if (value == index) {
+            opt.selected = true;
+            return;
+          }
+        }
+        else opt.selected = index.include(value);
+      }
+    }
+  },
+
+  selectOne: function(element) {
+    var index = element.selectedIndex;
+    return index >= 0 ? this.optionValue(element.options[index]) : null;
+  },
+
+  selectMany: function(element) {
+    var values, length = element.length;
+    if (!length) return null;
+
+    for (var i = 0, values = []; i < length; i++) {
+      var opt = element.options[i];
+      if (opt.selected) values.push(this.optionValue(opt));
+    }
+    return values;
+  },
+
+  optionValue: function(opt) {
+    // extend element because hasAttribute may not be native
+    return Element.extend(opt).hasAttribute('value') ? opt.value : opt.text;
+  }
+};
+
+/*--------------------------------------------------------------------------*/
+
+Abstract.TimedObserver = Class.create(PeriodicalExecuter, {
+  initialize: function($super, element, frequency, callback) {
+    $super(callback, frequency);
+    this.element   = $(element);
+    this.lastValue = this.getValue();
+  },
+
+  execute: function() {
+    var value = this.getValue();
+    if (Object.isString(this.lastValue) && Object.isString(value) ?
+        this.lastValue != value : String(this.lastValue) != String(value)) {
+      this.callback(this.element, value);
+      this.lastValue = value;
+    }
+  }
+});
+
+Form.Element.Observer = Class.create(Abstract.TimedObserver, {
+  getValue: function() {
+    return Form.Element.getValue(this.element);
+  }
+});
+
+Form.Observer = Class.create(Abstract.TimedObserver, {
+  getValue: function() {
+    return Form.serialize(this.element);
+  }
+});
+
+/*--------------------------------------------------------------------------*/
+
+Abstract.EventObserver = Class.create({
+  initialize: function(element, callback) {
+    this.element  = $(element);
+    this.callback = callback;
+
+    this.lastValue = this.getValue();
+    if (this.element.tagName.toLowerCase() == 'form')
+      this.registerFormCallbacks();
+    else
+      this.registerCallback(this.element);
+  },
+
+  onElementEvent: function() {
+    var value = this.getValue();
+    if (this.lastValue != value) {
+      this.callback(this.element, value);
+      this.lastValue = value;
+    }
+  },
+
+  registerFormCallbacks: function() {
+    Form.getElements(this.element).each(this.registerCallback, this);
+  },
+
+  registerCallback: function(element) {
+    if (element.type) {
+      switch (element.type.toLowerCase()) {
+        case 'checkbox':
+        case 'radio':
+          Event.observe(element, 'click', this.onElementEvent.bind(this));
+          break;
+        default:
+          Event.observe(element, 'change', this.onElementEvent.bind(this));
+          break;
+      }
+    }
+  }
+});
+
+Form.Element.EventObserver = Class.create(Abstract.EventObserver, {
+  getValue: function() {
+    return Form.Element.getValue(this.element);
+  }
+});
+
+Form.EventObserver = Class.create(Abstract.EventObserver, {
+  getValue: function() {
+    return Form.serialize(this.element);
+  }
+});
+if (!window.Event) var Event = { };
+
+Object.extend(Event, {
+  KEY_BACKSPACE: 8,
+  KEY_TAB:       9,
+  KEY_RETURN:   13,
+  KEY_ESC:      27,
+  KEY_LEFT:     37,
+  KEY_UP:       38,
+  KEY_RIGHT:    39,
+  KEY_DOWN:     40,
+  KEY_DELETE:   46,
+  KEY_HOME:     36,
+  KEY_END:      35,
+  KEY_PAGEUP:   33,
+  KEY_PAGEDOWN: 34,
+  KEY_INSERT:   45,
+
+  cache: { },
+
+  relatedTarget: function(event) {
+    var element;
+    switch(event.type) {
+      case 'mouseover': element = event.fromElement; break;
+      case 'mouseout':  element = event.toElement;   break;
+      default: return null;
+    }
+    return Element.extend(element);
+  }
+});
+
+Event.Methods = (function() {
+  var isButton;
+
+  if (Prototype.Browser.IE) {
+    var buttonMap = { 0: 1, 1: 4, 2: 2 };
+    isButton = function(event, code) {
+      return event.button == buttonMap[code];
+    };
+
+  } else if (Prototype.Browser.WebKit) {
+    isButton = function(event, code) {
+      switch (code) {
+        case 0: return event.which == 1 && !event.metaKey;
+        case 1: return event.which == 1 && event.metaKey;
+        default: return false;
+      }
+    };
+
+  } else {
+    isButton = function(event, code) {
+      return event.which ? (event.which === code + 1) : (event.button === code);
+    };
+  }
+
+  return {
+    isLeftClick:   function(event) { return isButton(event, 0) },
+    isMiddleClick: function(event) { return isButton(event, 1) },
+    isRightClick:  function(event) { return isButton(event, 2) },
+
+    element: function(event) {
+      var node = Event.extend(event).target;
+      return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node);
+    },
+
+    findElement: function(event, expression) {
+      var element = Event.element(event);
+      if (!expression) return element;
+      var elements = [element].concat(element.ancestors());
+      return Selector.findElement(elements, expression, 0);
+    },
+
+    pointer: function(event) {
+      return {
+        x: event.pageX || (event.clientX +
+          (document.documentElement.scrollLeft || document.body.scrollLeft)),
+        y: event.pageY || (event.clientY +
+          (document.documentElement.scrollTop || document.body.scrollTop))
+      };
+    },
+
+    pointerX: function(event) { return Event.pointer(event).x },
+    pointerY: function(event) { return Event.pointer(event).y },
+
+    stop: function(event) {
+      Event.extend(event);
+      event.preventDefault();
+      event.stopPropagation();
+      event.stopped = true;
+    }
+  };
+})();
+
+Event.extend = (function() {
+  var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {
+    m[name] = Event.Methods[name].methodize();
+    return m;
+  });
+
+  if (Prototype.Browser.IE) {
+    Object.extend(methods, {
+      stopPropagation: function() { this.cancelBubble = true },
+      preventDefault:  function() { this.returnValue = false },
+      inspect: function() { return "[object Event]" }
+    });
+
+    return function(event) {
+      if (!event) return false;
+      if (event._extendedByPrototype) return event;
+
+      event._extendedByPrototype = Prototype.emptyFunction;
+      var pointer = Event.pointer(event);
+      Object.extend(event, {
+        target: event.srcElement,
+        relatedTarget: Event.relatedTarget(event),
+        pageX:  pointer.x,
+        pageY:  pointer.y
+      });
+      return Object.extend(event, methods);
+    };
+
+  } else {
+    Event.prototype = Event.prototype || document.createEvent("HTMLEvents").__proto__;
+    Object.extend(Event.prototype, methods);
+    return Prototype.K;
+  }
+})();
+
+Object.extend(Event, (function() {
+  var cache = Event.cache;
+
+  function getEventID(element) {
+    if (element._prototypeEventID) return element._prototypeEventID[0];
+    arguments.callee.id = arguments.callee.id || 1;
+    return element._prototypeEventID = [++arguments.callee.id];
+  }
+
+  function getDOMEventName(eventName) {
+    if (eventName && eventName.include(':')) return "dataavailable";
+    return eventName;
+  }
+
+  function getCacheForID(id) {
+    return cache[id] = cache[id] || { };
+  }
+
+  function getWrappersForEventName(id, eventName) {
+    var c = getCacheForID(id);
+    return c[eventName] = c[eventName] || [];
+  }
+
+  function createWrapper(element, eventName, handler) {
+    var id = getEventID(element);
+    var c = getWrappersForEventName(id, eventName);
+    if (c.pluck("handler").include(handler)) return false;
+
+    var wrapper = function(event) {
+      if (!Event || !Event.extend ||
+        (event.eventName && event.eventName != eventName))
+          return false;
+
+      Event.extend(event);
+      handler.call(element, event);
+    };
+
+    wrapper.handler = handler;
+    c.push(wrapper);
+    return wrapper;
+  }
+
+  function findWrapper(id, eventName, handler) {
+    var c = getWrappersForEventName(id, eventName);
+    return c.find(function(wrapper) { return wrapper.handler == handler });
+  }
+
+  function destroyWrapper(id, eventName, handler) {
+    var c = getCacheForID(id);
+    if (!c[eventName]) return false;
+    c[eventName] = c[eventName].without(findWrapper(id, eventName, handler));
+  }
+
+  function destroyCache() {
+    for (var id in cache)
+      for (var eventName in cache[id])
+        cache[id][eventName] = null;
+  }
+
+  if (window.attachEvent) {
+    window.attachEvent("onunload", destroyCache);
+  }
+
+  return {
+    observe: function(element, eventName, handler) {
+      element = $(element);
+      var name = getDOMEventName(eventName);
+
+      var wrapper = createWrapper(element, eventName, handler);
+      if (!wrapper) return element;
+
+      if (element.addEventListener) {
+        element.addEventListener(name, wrapper, false);
+      } else {
+        element.attachEvent("on" + name, wrapper);
+      }
+
+      return element;
+    },
+
+    stopObserving: function(element, eventName, handler) {
+      element = $(element);
+      var id = getEventID(element), name = getDOMEventName(eventName);
+
+      if (!handler && eventName) {
+        getWrappersForEventName(id, eventName).each(function(wrapper) {
+          element.stopObserving(eventName, wrapper.handler);
+        });
+        return element;
+
+      } else if (!eventName) {
+        Object.keys(getCacheForID(id)).each(function(eventName) {
+          element.stopObserving(eventName);
+        });
+        return element;
+      }
+
+      var wrapper = findWrapper(id, eventName, handler);
+      if (!wrapper) return element;
+
+      if (element.removeEventListener) {
+        element.removeEventListener(name, wrapper, false);
+      } else {
+        element.detachEvent("on" + name, wrapper);
+      }
+
+      destroyWrapper(id, eventName, handler);
+
+      return element;
+    },
+
+    fire: function(element, eventName, memo) {
+      element = $(element);
+      if (element == document && document.createEvent && !element.dispatchEvent)
+        element = document.documentElement;
+
+      var event;
+      if (document.createEvent) {
+        event = document.createEvent("HTMLEvents");
+        event.initEvent("dataavailable", true, true);
+      } else {
+        event = document.createEventObject();
+        event.eventType = "ondataavailable";
+      }
+
+      event.eventName = eventName;
+      event.memo = memo || { };
+
+      if (document.createEvent) {
+        element.dispatchEvent(event);
+      } else {
+        element.fireEvent(event.eventType, event);
+      }
+
+      return Event.extend(event);
+    }
+  };
+})());
+
+Object.extend(Event, Event.Methods);
+
+Element.addMethods({
+  fire:          Event.fire,
+  observe:       Event.observe,
+  stopObserving: Event.stopObserving
+});
+
+Object.extend(document, {
+  fire:          Element.Methods.fire.methodize(),
+  observe:       Element.Methods.observe.methodize(),
+  stopObserving: Element.Methods.stopObserving.methodize(),
+  loaded:        false
+});
+
+(function() {
+  /* Support for the DOMContentLoaded event is based on work by Dan Webb,
+     Matthias Miller, Dean Edwards and John Resig. */
+
+  var timer;
+
+  function fireContentLoadedEvent() {
+    if (document.loaded) return;
+    if (timer) window.clearInterval(timer);
+    document.fire("dom:loaded");
+    document.loaded = true;
+  }
+
+  if (document.addEventListener) {
+    if (Prototype.Browser.WebKit) {
+      timer = window.setInterval(function() {
+        if (/loaded|complete/.test(document.readyState))
+          fireContentLoadedEvent();
+      }, 0);
+
+      Event.observe(window, "load", fireContentLoadedEvent);
+
+    } else {
+      document.addEventListener("DOMContentLoaded",
+        fireContentLoadedEvent, false);
+    }
+
+  } else {
+    document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");
+    $("__onDOMContentLoaded").onreadystatechange = function() {
+      if (this.readyState == "complete") {
+        this.onreadystatechange = null;
+        fireContentLoadedEvent();
+      }
+    };
+  }
+})();
+/*------------------------------- DEPRECATED -------------------------------*/
+
+Hash.toQueryString = Object.toQueryString;
+
+var Toggle = { display: Element.toggle };
+
+Element.Methods.childOf = Element.Methods.descendantOf;
+
+var Insertion = {
+  Before: function(element, content) {
+    return Element.insert(element, {before:content});
+  },
+
+  Top: function(element, content) {
+    return Element.insert(element, {top:content});
+  },
+
+  Bottom: function(element, content) {
+    return Element.insert(element, {bottom:content});
+  },
+
+  After: function(element, content) {
+    return Element.insert(element, {after:content});
+  }
+};
+
+var $continue = new Error('"throw $continue" is deprecated, use "return" instead');
+
+// This should be moved to script.aculo.us; notice the deprecated methods
+// further below, that map to the newer Element methods.
+var Position = {
+  // set to true if needed, warning: firefox performance problems
+  // NOT neeeded for page scrolling, only if draggable contained in
+  // scrollable elements
+  includeScrollOffsets: false,
+
+  // must be called before calling withinIncludingScrolloffset, every time the
+  // page is scrolled
+  prepare: function() {
+    this.deltaX =  window.pageXOffset
+                || document.documentElement.scrollLeft
+                || document.body.scrollLeft
+                || 0;
+    this.deltaY =  window.pageYOffset
+                || document.documentElement.scrollTop
+                || document.body.scrollTop
+                || 0;
+  },
+
+  // caches x/y coordinate pair to use with overlap
+  within: function(element, x, y) {
+    if (this.includeScrollOffsets)
+      return this.withinIncludingScrolloffsets(element, x, y);
+    this.xcomp = x;
+    this.ycomp = y;
+    this.offset = Element.cumulativeOffset(element);
+
+    return (y >= this.offset[1] &&
+            y <  this.offset[1] + element.offsetHeight &&
+            x >= this.offset[0] &&
+            x <  this.offset[0] + element.offsetWidth);
+  },
+
+  withinIncludingScrolloffsets: function(element, x, y) {
+    var offsetcache = Element.cumulativeScrollOffset(element);
+
+    this.xcomp = x + offsetcache[0] - this.deltaX;
+    this.ycomp = y + offsetcache[1] - this.deltaY;
+    this.offset = Element.cumulativeOffset(element);
+
+    return (this.ycomp >= this.offset[1] &&
+            this.ycomp <  this.offset[1] + element.offsetHeight &&
+            this.xcomp >= this.offset[0] &&
+            this.xcomp <  this.offset[0] + element.offsetWidth);
+  },
+
+  // within must be called directly before
+  overlap: function(mode, element) {
+    if (!mode) return 0;
+    if (mode == 'vertical')
+      return ((this.offset[1] + element.offsetHeight) - this.ycomp) /
+        element.offsetHeight;
+    if (mode == 'horizontal')
+      return ((this.offset[0] + element.offsetWidth) - this.xcomp) /
+        element.offsetWidth;
+  },
+
+  // Deprecation layer -- use newer Element methods now (1.5.2).
+
+  cumulativeOffset: Element.Methods.cumulativeOffset,
+
+  positionedOffset: Element.Methods.positionedOffset,
+
+  absolutize: function(element) {
+    Position.prepare();
+    return Element.absolutize(element);
+  },
+
+  relativize: function(element) {
+    Position.prepare();
+    return Element.relativize(element);
+  },
+
+  realOffset: Element.Methods.cumulativeScrollOffset,
+
+  offsetParent: Element.Methods.getOffsetParent,
+
+  page: Element.Methods.viewportOffset,
+
+  clone: function(source, target, options) {
+    options = options || { };
+    return Element.clonePosition(target, source, options);
+  }
+};
+
+/*--------------------------------------------------------------------------*/
+
+if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
+  function iter(name) {
+    return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
+  }
+
+  instanceMethods.getElementsByClassName = Prototype.BrowserFeatures.XPath ?
+  function(element, className) {
+    className = className.toString().strip();
+    var cond = /\s/.test(className) ? $w(className).map(iter).join('') : iter(className);
+    return cond ? document._getElementsByXPath('.//*' + cond, element) : [];
+  } : function(element, className) {
+    className = className.toString().strip();
+    var elements = [], classNames = (/\s/.test(className) ? $w(className) : null);
+    if (!classNames && !className) return elements;
+
+    var nodes = $(element).getElementsByTagName('*');
+    className = ' ' + className + ' ';
+
+    for (var i = 0, child, cn; child = nodes[i]; i++) {
+      if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) ||
+          (classNames && classNames.all(function(name) {
+            return !name.toString().blank() && cn.include(' ' + name + ' ');
+          }))))
+        elements.push(Element.extend(child));
+    }
+    return elements;
+  };
+
+  return function(className, parentElement) {
+    return $(parentElement || document.body).getElementsByClassName(className);
+  };
+}(Element.Methods);
+
+/*--------------------------------------------------------------------------*/
+
+Element.ClassNames = Class.create();
+Element.ClassNames.prototype = {
+  initialize: function(element) {
+    this.element = $(element);
+  },
+
+  _each: function(iterator) {
+    this.element.className.split(/\s+/).select(function(name) {
+      return name.length > 0;
+    })._each(iterator);
+  },
+
+  set: function(className) {
+    this.element.className = className;
+  },
+
+  add: function(classNameToAdd) {
+    if (this.include(classNameToAdd)) return;
+    this.set($A(this).concat(classNameToAdd).join(' '));
+  },
+
+  remove: function(classNameToRemove) {
+    if (!this.include(classNameToRemove)) return;
+    this.set($A(this).without(classNameToRemove).join(' '));
+  },
+
+  toString: function() {
+    return $A(this).join(' ');
+  }
+};
+
+Object.extend(Element.ClassNames.prototype, Enumerable);
+
+/*--------------------------------------------------------------------------*/
+
+Element.addMethods();
\ No newline at end of file