var SendIni=null var browseType=null //************************************************ //limittextto //06/08/2004 - por Carlos Oliveros //************************************************ function limittextto ( o,maxlimittext ){ if (o.value.length > maxlimittext -1 && event.keyCode!=8 && event.keyCode!=46 && event.keyCode!=37 && event.keyCode!=38 && event.keyCode!=39 && event.keyCode!=40){ event.returnValue=false } } //************************************************ //calendario //05/08/2004 - por Carlos Oliveros //************************************************ function calendario ( o ){ var sfecha = window.showModalDialog('htmllib/calendario.htm','Calendario','dialogWidth:35;dialogHeight:16;center:1'); if (sfecha != null) o.value = sfecha ; } //************************************************ //setcursor //03/08/2004 - por Carlos Oliveros //************************************************ function setcursor(pobj,cursorname){ pobj.style.cursor=cursorname } //************************************************ //openinwindowany //03/08/2004 - por Carlos Oliveros //************************************************ function openinwindowany(title,urlpage,pobjectconfig){ if (pobjectconfig=="") pobjectconfig="toolbar=no,location=no,directories=no,menubar=no,resizable=yes,width=769,height=509,top=10,left=10,scrollbars=yes,status=yes" window.open (urlpage,title,pobjectconfig) } //************************************************ //openinwindow //21/06/2004 - por Carlos Oliveros //************************************************ function openinwindow(pobjectid,pscriptdo,pobjectconfig){ var urlpage="openasportlet.asp?_portletid_="+pobjectid+"&scriptdo="+pscriptdo window.open (urlpage,"Portlet",pobjectconfig) } //************************************************ //openinwindowwithparams //21/06/2004 - por Carlos Oliveros //************************************************ function openinwindowwithparams(pobjectid,pscriptdo,pobjectconfig,paramsName,ParamsValue){ var urlpage="openasportlet.asp?_portletid_="+pobjectid+"&scriptdo="+pscriptdo for(var i=0;i=0) return var squery = eAnchor.href var UrlqueryPos = squery.indexOf("?") var qstring = squery.substring(UrlqueryPos) var lurlk="" if (eAnchor.getAttribute("_CALIFICADOR_")){ eForm=document.all.item(eAnchor.getAttribute("_CALIFICADOR_")) lurlk=eAnchor.href }else{ eForm=getForm(eForm) } if (eForm==null){return} if (qstring.search("_CALIFICADOR_")==-1 && qstring.search("_calificador_")==-1)qstring+="&_CALIFICADOR_="+eForm._CALIFICADOR_.value if (qstring.search("_REGIONID_")==-1 && qstring.search("_regionid_")==-1)qstring+="&_REGIONID_="+eForm._REGIONID_.value if (qstring.search("_PORTLETID_")==-1 && qstring.search("_portletid_")==-1)qstring+="&_PORTLETID_="+eForm._PORTLETID_.value if (qstring.search("_ORDERID_")==-1 && qstring.search("_orderid_")==-1)qstring+="&_ORDERID_="+eForm._ORDERID_.value if (qstring.search("_PAGEID_")==-1 && qstring.search("_pageid_")==-1)qstring+="&_PAGEID_="+eForm._PAGEID_.value if (qstring.search("_CONTENTID_")==-1 && qstring.search("_contentid_")==-1)qstring+="&_CONTENTID_="+eForm._CONTENTID_.value if (qstring.search("_USERID_")==-1 && qstring.search("_userid_")==-1)qstring+="&_USERID_="+eForm._USERID_.value if (qstring.search("_PRIVILEGEID_")==-1 && qstring.search("_privilegeid_")==-1)qstring+="&_PRIVILEGEID_="+eForm._PRIVILEGEID_.value if (lurlk==""){ var UrlqueryPosscriptdo = qstring.indexOf("scriptdo") if (UrlqueryPosscriptdo==-1) qstring+="&scriptdo="+squery.substring(0,UrlqueryPos) }else{ qstring="?" + qstring+"&scriptdo="+lurlk } window.status = qstring eAnchor.href=qstring SendIni=0 return }catch(e){alert (e.description);SendIni=null} } //********************************************* // //12/10/2006 //********************************************* function getForm(e){ try{ while (e.tagName!="FORM" && e.getAttribute("formportletname")==null){ //if (browseType!="MSIE"){ // alert (e.innerHTML) //} e=(browseType!="MSIE")? e.parentNode : e.parentElement; if (e==null) break; } return e }catch(e){ return null } return null } //********************************************* // // //********************************************* function makeobject(){} //********************************************* // // //********************************************* function _InsertRow_(pobjeto){ var irow=this.rows.length this.rows[irow]=pobjeto; var item=this.rows[irow] ; item.isnew=1 item.isupdate=0 item.isdelete=0 this.bfRow=item } //********************************************* // // //********************************************* function _DeleteRow_(row){ this.rows[row].isdelete=1 } //********************************************* // // //********************************************* function _UpdateRow_(row,object){ if (object.isnew==0){ object.isupdate=1 } object.isdelete=0 this.rows[row] = object; } //********************************************* // // //********************************************* function _RetrieveRow_(pobjeto){ var irow=this.rows.length this.rows[irow]=pobjeto; var item=this.rows[irow] ; item.isnew=0 item.isupdate=1 item.isdelete=0 this.bfRow=item } //********************************************* // // //********************************************* function _drawingGrid_(functionName){ var rtnString="" for (var i=0;i") var docRoot=rtnString.documentElement for (var i=0;i0 ){ var item= document.all.item("menu"+idc) if (item){ item.style.position="absolute" item.style.top==event.clientY+10 //item.style.left=obj.offsetLeft+(obj.offsetWidth/2) item.style.left=obj.parentElement.offsetLeft+(obj.parentElement.offsetWidth/3) item.style.display="" rolloveroutmouse_item[++level]=item } } //getForm(obj).myvar.value =event.clientY } function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=lib_bwcheck() /********************************************************************************* These are the variables you have to set: *********************************************************************************/ //The speed of the timeout between each scroll. timSpeed = 50 //The height of the container (change this when it scrolls to much or to little) contHeight = 100 /********************************************************************************* This is the object constructor function, which applies methods and properties to the Cross-browser layer object *********************************************************************************/ function makeScrollObj(obj,nest){ nest=(!nest) ? "":'document.'+nest+'.' this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; this.height=bw.ns4?this.css.document.height:this.el.offsetHeight this.top=b_gettop return this } // A unit of measure that will be added when setting the position of a layer. var px = bw.ns4||window.opera?"":"px"; //Getting the top for the top method function b_gettop(){ var gleft=(bw.ns4 || bw.ns6)?parseInt(this.css.top):eval(this.css.pixelTop); return gleft; } //Variables var scrollTim = 1; var active = 0; var oScroll=null /********************************************************************************* The scroll function. Checks what way to scroll and checks if the layer is not already on top or bottom. *********************************************************************************/ function scroll(obj,nest,speed){ clearTimeout(scrollTim) if (!oScroll) oScroll=new makeScrollObj(obj,nest) way = speed>0?1:0 if ((!way && oScroll.top()>-oScroll.height+contHeight) || (oScroll.top()<0 && way)){ oScroll.css.top = (oScroll.top()+speed)+px scrollTim = setTimeout("scroll('"+obj+"','"+nest+"',"+speed+")",timSpeed) } } //Clears the timeout so the scroll stops, this is called onmouseout. function noScroll(){ clearTimeout(scrollTim) oScroll=null } function syncportletonclick(portletid,scriptname){ var f=document.forms; for (var i=0;i0) { lobjlist[lobjlist.length]=lobjtarget.options(0) objtarget.remove(0) }//loop }//function this.sync=function(ovalue) { while(lobjtarget.options.length>0) { lobjtarget.remove(0) }//loop for(var i=0;i