
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - CSJSRequestObject.js - */
// http://www.lugabe.net/portal_javascripts/CSJSRequestObject.js?original=1
function RObj(ea){var LS="";var QS=new Object();var un="undefined";var x=null;var f="function";var n="number";var r="string";var e1="ERROR:Index out of range in\r\nRequest.QueryString";var e2="ERROR:Wrong number of arguments or invalid property assignment\r\nRequest.QueryString";var e3="ERROR:Object doesn't support this property or method\r\nRequest.QueryString.Key";var dU=window.decodeURIComponent?1:0;function Err(arg){if(ea){alert("Request Object:\r\n"+arg)}};function URID(t){var d="";if(t){for(var i=0;i<t.length;++i){var c=t.charAt(i);d+=(c=="+"?" ":c)}}return(dU?decodeURIComponent(d):unescape(d))};function OL(o){var l=0;for(var i in o){if(typeof o[i]!=f){l++}};return l};function AK(key){var auk=true;for(var u in QS){if(typeof QS[u]!=f&&u.toString().toLowerCase()==key.toLowerCase()){auk=false;return u}}if(auk){QS[key]=new Object();QS[key].toString=function(){return TS(QS[key])};QS[key].Count=function(){return OL(QS[key])};QS[key].Count.toString=function(){return OL(QS[key]).toString()};QS[key].Item=function(e){if(typeof e==un){return QS[key]}else{if(typeof e==n){var a=QS[key][Math.ceil(e)];if(typeof a==un){Err(e1+"(\""+key+"\").Item("+e+")")};return a}else{Err("ERROR:Expecting numeric input in\r\nRequest.QueryString(\""+key+"\").Item(\""+e+"\")")}}};QS[key].Item.toString=function(e){if(typeof e==un){return QS[key].toString()}else{var a=QS[key][e];if(typeof a==un){Err(e1+"(\""+key+"\").Item("+e+")")};return a.toString()}};QS[key].Key=function(e){var t=typeof e;if(t==r){var a=QS[key][e];return(typeof a!=un&&a&&a.toString()?e:"")}else{Err(e3+"("+(e?e:"")+")")}};QS[key].Key.toString=function(){return x}};return key};function AVTK(key,val){if(key!=""){var key=AK(key);var l=OL(QS[key]);QS[key][l+1]=val}};function TS(o){var s="";for(var i in o){var ty=typeof o[i];if(ty=="object"){s+=TS(o[i])}else if(ty!=f){s+=o[i]+", "}};var l=s.length;if(l>1){return(s.substring(0,l-2))}return(s==""?x:s)};function KM(k,o){var k=k.toLowerCase();for(var u in o){if(typeof o[u]!=f&&u.toString().toLowerCase()==k){return u}}}if(window.location&&window.location.search){LS=window.location.search;var l=LS.length;if(l>0){LS=LS.substring(1,l);var preAmpAt=0;var ampAt=-1;var eqAt=-1;var k=0;var skip=false;for(var i=0;i<l;++i){var c=LS.charAt(i);if(LS.charAt(preAmpAt)=="="||(preAmpAt==0&&i==0&&c=="=")){skip=true}if(c=="="&&eqAt==-1&&!skip){eqAt=i}if(c=="&"&&ampAt==-1){if(eqAt!=-1){ampAt=i}if(skip){preAmpAt=i+1};skip=false}if(ampAt>eqAt){AVTK(URID(LS.substring(preAmpAt,eqAt)),URID(LS.substring(eqAt+1,ampAt)));preAmpAt=ampAt+1;eqAt=ampAt=-1;++k}}if(LS.charAt(preAmpAt)!="="&&(preAmpAt!=0||i!=0||c!="=")){if(preAmpAt!=l){if(eqAt!=-1){AVTK(URID(LS.substring(preAmpAt,eqAt)),URID(LS.substring(eqAt+1,l)))}else if(preAmpAt!=l-1){AVTK(URID(LS.substring(preAmpAt,l)),"")}}if(l==1){AVTK(LS.substring(0,1),"")}}}};var TC=OL(QS);if(!TC){TC=0};QS.toString=function(){return LS.toString()};QS.Count=function(){return(TC?TC:0)};QS.Count.toString=function(){return(TC?TC.toString():"0")};QS.Item=function(e){if(typeof e==un){return LS}else{if(typeof e==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof QS[i]!=f&&++c==e){return QS[i]}};Err(e1+"().Item("+e+")")}else{return QS[KM(e,QS)]}};return x};QS.Item.toString=function(){return LS.toString()};QS.Key=function(e){var t=typeof e;if(t==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof QS[i]!=f&&++c==e){return i}}}else if(t==r){var e=KM(e,QS);var a=QS[e];return(typeof a!=un&&a&&a.toString()?e:"")}else{Err(e2+"().Key("+(e?e:"")+")")};Err(e1+"().Item("+e+")")};QS.Key.toString=function(){Err(e2+"().Key")};this.QueryString=function(k){if(typeof k==un){return QS}else{if(typeof k==n){return QS.Item(k)};var k=KM(k,QS);if(typeof QS[k]==un){t=new Object();t.Count=function(){return 0};t.Count.toString=function(){return "0"};t.toString=function(){return x};t.Item=function(e){return x};t.Item.toString=function(){return x};t.Key=function(e){Err(e3+"("+(e?e:"")+")")};t.Key.toString=function(){return x};return t}else{return QS[k]}}};this.QueryString.toString=function(){return LS.toString()};this.QueryString.Count=function(){return(TC?TC:0)};this.QueryString.Count.toString=function(){return(TC?TC.toString():"0")};this.QueryString.Item=function(e){if(typeof e==un){return LS.toString()}else{if(typeof e==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof QS[i]!=f&&++c==e){return QS[i]}};Err(e1+".Item("+e+")")}else{return QS[KM(e,QS)]}}if(typeof e==n){Err(e1+".Item("+e+")")};return x};this.QueryString.Item.toString=function(){return LS.toString()};this.QueryString.Key=function(e){var t=typeof e;if(t==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof QS[i]=="object"&&(++c==e)){return i}}}else if(t==r){var e=KM(e,QS);var a=QS[e];return(typeof a!=un&&a&&a.toString()?e:"")}else{Err(e2+".Key("+(e?e:"")+")")};Err(e1+".Item("+e+")")};this.QueryString.Key.toString=function(){Err(e2+".Key")};this.Version=1.4;this.Author="Andrew Urquhart (http://andrewu.co.uk)"};var Request=new RObj(false);

/* - bilaketa.js - */
// http://www.lugabe.net/portal_javascripts/bilaketa.js?original=1
var xmlHttp7;
function aukerak(str){try{xmlHttp7=new XMLHttpRequest()}
catch(e){try{xmlHttp7=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{xmlHttp7=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}
xmlHttp7.open("GET","@@aukerak?ind="+str,true);xmlHttp7.onreadystatechange=callback7;xmlHttp7.send(null)}
function callback7(){if(xmlHttp7.readyState==4){parseMessage7()}}
function parseMessage7(){var combo=document.myform.periodos.options;combo.length=null;var ida=xmlHttp7.responseXML.getElementsByTagName("ida");var balioa=xmlHttp7.responseXML.getElementsByTagName("balioa");for(i=0;i<ida.length;i++){combo[i]=new Option(balioa[i].childNodes[0].nodeValue,ida[i].childNodes[0].nodeValue,"","");if(ida[i].childNodes[0].nodeValue==Request.QueryString("periodos")){combo[i].selected=true}}}
var xmlHttp;
function ajaxEsk(str){try{xmlHttp=new XMLHttpRequest()}
catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}
if(Request.QueryString("checkesk")=="on"){document.myform.checkesk.checked=true;habilitaDeshabilita(document.myform)}
if(document.myform.checkesk.checked==false){xmlHttp.open("GET","@@eskvoc?pro="+str,true);xmlHttp.onreadystatechange=callback;xmlHttp.send(null)}}
function callback(){if(xmlHttp.readyState==4){parseMessage()}}
function parseMessage(){var combo=document.myform.eskualdeak.options;combo.length=null;var combo2=document.myform.herriak.options;combo2.length=null;var ida=xmlHttp.responseXML.getElementsByTagName("ida");var balioa=xmlHttp.responseXML.getElementsByTagName("balioa");for(i=0;i<ida.length;i++){combo[i]=new Option(balioa[i].childNodes[0].nodeValue,ida[i].childNodes[0].nodeValue,"","");if(ida[i].childNodes[0].nodeValue==Request.QueryString("eskualdeak")){combo[i].selected=true}}}
var req;
function ajaxHerri(str){try{req=new XMLHttpRequest()}
catch(e){try{req=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}
if(Request.QueryString("checkherri")=="on"){document.myform.checkherri.checked=true;habilitaDeshabilitaHerri(document.myform)}
if(document.myform.checkherri.checked==false){req.open("GET","@@herrivoc?esk="+str,true);req.onreadystatechange=callbackHerri;req.send(null)}}
function callbackHerri(){if(req.readyState==4){parseMessageHerri()}}
function parseMessageHerri(){var combo=document.myform.herriak.options;combo.length=null;var ida=req.responseXML.getElementsByTagName("ida");var balioa=req.responseXML.getElementsByTagName("balioa");for(i=0;i<ida.length;i++){combo[i]=new Option(balioa[i].childNodes[0].nodeValue,ida[i].childNodes[0].nodeValue,"","");if(ida[i].childNodes[0].nodeValue==Request.QueryString("herriak")){combo[i].selected=true}}}
var xmlHttp2;
function ajaxVar(str){try{xmlHttp2=new XMLHttpRequest()}
catch(e){try{xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}
if(Request.QueryString("checkvar")=="on"){document.myform.checkvar.checked=true;habilitaDeshabilitaVarInd(document.myform)}
if(document.myform.checkvar.checked==false){xmlHttp2.open("GET","@@variable?area="+str,true);xmlHttp2.onreadystatechange=callbackVariable;xmlHttp2.send(null)}}
function callbackVariable(){if(xmlHttp2.readyState==4){parseMessageVariable()}}
function parseMessageVariable(){var combo=document.myform.variable.options;combo.length=null;var combo2=document.myform.indicator.options;combo2.length=null;var ida=xmlHttp2.responseXML.getElementsByTagName("ida");var balioa=xmlHttp2.responseXML.getElementsByTagName("balioa");for(i=0;i<ida.length;i++){combo[i]=new Option(balioa[i].childNodes[0].nodeValue,ida[i].childNodes[0].nodeValue,"","");if(ida[i].childNodes[0].nodeValue==Request.QueryString("variable")){combo[i].selected=true}}}
var req2;
function ajaxIndicator(str){try{req2=new XMLHttpRequest()}
catch(e){try{req2=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{req2=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}
if(Request.QueryString("checkind")=="on"){document.myform.checkind.checked=true;habilitaDeshabilitaInd(document.myform)}
if(document.myform.checkind.checked==false){req2.open("GET","@@indicador?var="+str,true);req2.onreadystatechange=callbackIndicator;req2.send(null)}}
function callbackIndicator(){if(req2.readyState==4){parseMessageIndicator()}}
function parseMessageIndicator(){var combo=document.myform.indicator.options;combo.length=null;var ida=req2.responseXML.getElementsByTagName("ida");var balioa=req2.responseXML.getElementsByTagName("balioa");for(i=0;i<ida.length;i++){combo[i]=new Option(balioa[i].childNodes[0].nodeValue,ida[i].childNodes[0].nodeValue,"","");if(ida[i].childNodes[0].nodeValue==Request.QueryString("indicator")){combo[i].selected=true}}}
function habilitaDeshabilita(form){if(form.checkesk.checked==true){form.eskualdeak.disabled=true;form.herriak.disabled=true;form.checkherri.disabled=true;document.myform.eskualdeak.options.length=null;document.myform.herriak.options.length=null;document.getElementById("esklabel").setAttribute("class","disabled");document.getElementById("checkherrilabel").setAttribute("class","disabled");document.getElementById("herrilabel").setAttribute("class","disabled")}
if(form.checkesk.checked==false){form.eskualdeak.disabled=false;form.herriak.disabled=false;form.checkherri.disabled=false;document.getElementById("esklabel").setAttribute("class","enabled");document.getElementById("checkherrilabel").setAttribute("class","enabled");document.getElementById("herrilabel").setAttribute("class","enabled");str=document.getElementById("probintziak").value;if(str=="undefined"){try{xmlHttp=new XMLHttpRequest()}
catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}}
xmlHttp.open("GET","@@eskvoc?pro="+str,true);xmlHttp.onreadystatechange=callback;xmlHttp.send(null)}}
function habilitaDeshabilitaHerri(form){if(form.checkherri.checked==true){form.herriak.disabled=true;document.getElementById("herrilabel").setAttribute("class","disabled");document.myform.herriak.options.length=null}
if(form.checkherri.checked==false){form.herriak.disabled=false;document.getElementById("herrilabel").setAttribute("class","enabled");str=document.getElementById("eskualdeak").value;req.open("GET","@@herrivoc?esk="+str,true);req.onreadystatechange=callbackHerri;req.send(null)}}
function habilitaDeshabilitaVarInd(form){if(form.checkvar.checked==true){form.variable.disabled=true;form.indicator.disabled=true;form.checkind.disabled=true;document.myform.variable.options.length=null;document.myform.indicator.options.length=null;document.getElementById("variablelabel").setAttribute("class","disabled");document.getElementById("checkidlabel").setAttribute("class","disabled");document.getElementById("indicatorlabel").setAttribute("class","disabled")}
if(form.checkvar.checked==false){form.variable.disabled=false;form.indicator.disabled=false;form.checkind.disabled=false;document.getElementById("variablelabel").setAttribute("class","enabled");document.getElementById("checkidlabel").setAttribute("class","enabled");document.getElementById("indicatorlabel").setAttribute("class","enabled");str=document.getElementById("area").value;if(str=="undefined"){try{xmlHttp2=new XMLHttpRequest()}
catch(e){try{xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){alert("Your browser does not support AJAX!");return false}}}}
xmlHttp2.open("GET","@@variable?area="+str,true);xmlHttp2.onreadystatechange=callbackVariable;xmlHttp2.send(null)}}
function habilitaDeshabilitaInd(form){if(form.checkind.checked==true){form.indicator.disabled=true;document.getElementById("indicatorlabel").setAttribute("class","disabled");document.myform.indicator.options.length=null}
if(form.checkind.checked==false){form.indicator.disabled=false;document.getElementById("indicatorlabel").setAttribute("class","enabled");str=document.getElementById("variable").value;req2.open("GET","@@indicador?var="+str,true);req2.onreadystatechange=callbackIndicator;req2.send(null)}}
function bilaketaAurreratuaErakutsi(){document.getElementById('ocultar').style.display='block';document.getElementById('filtro').style.display='block';document.getElementById('mostrar').style.display='none'}
function bilaketaAurreratuaEzkutatu(){document.getElementById('ocultar').style.display='none';document.getElementById('filtro').style.display='none';document.getElementById('mostrar').style.display='block'}

