function FK_Button() { this.L_ForeColor; this.L_Bold; this.L_Underline; this.L_Italic; this.L_Color; this.L_BorderColor; this.M_ForeColor; this.M_Bold; this.M_Underline; this.M_Italic; this.M_Color; this.M_BorderColor; this.C_ForeColor; this.C_Bold; this.C_Underline; this.C_Italic; this.C_Color; this.C_BorderColor; this.Width; this.Height; this.Caption; this.Font; this.Size; this.Visible; this.Enabled; this.DisabledForeColor; this.Image; this.show = function() { ///UserCodeRegionStart:[show] (do not remove this comment.) var buffer, bold, italic, underline; var abs_width, abs_height; if (this.Enabled == undefined) this.Enabled = true; if (this.Visible == undefined) this.Visible = true; bold = (this.L_Bold)? 'bold':''; underline = (this.L_Underline)? 'underline':''; italic = (this.L_Italic)? 'italic':'none'; //alert(this.C_Bold); //alert(this.C_Underline); //alert(this.C_Italic); if (parseInt(this.Width) > 4) abs_width = 'width="'+(parseInt(this.Width)-4)+'"' ; else abs_width =""; if (parseInt(this.Height) > 4) abs_height = 'height="'+(parseInt(this.Height)-4)+'"'; else abs_height =""; buffer = ''+ '' + ''+ ''+ ''+ ''+ ''+ ''+ ''; buffer += '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ '
'+ '
'; var img = ""; if (this.Image != undefined && this.Image != "") img = '
' + img + '
' + '
'; buffer += ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ ''+ ''+ '' + ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ ''+ ''+ '' + ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''; this.UpDown = 0; this.setHtml(buffer); if (this.Enabled !=true){ var b_width, b_height; b_width = parseInt(document.getElementById(this.ContainerName + '_Fondo_2_2').offsetWidth); b_height = parseInt(document.getElementById(this.ContainerName + '_Fondo_2_2').offsetHeight); var img = ""; if (this.Image != undefined && this.Image != "") img = ''; buffer = '' + img + '
' + ''+ this.Caption +'
'; document.getElementById(this.ContainerName + '_Fondo_2_2').innerHTML = buffer; document.getElementById(this.ContainerName + '_Fondo_2_2').style.width = b_width; document.getElementById(this.ContainerName + '_Fondo_2_2').style.height = b_height; ; } if (this.Visible != true){ //alert('ocultando'); document.getElementById(this.ContainerName + '_tabla_gral').style.visibility = "hidden"; } //alert(this.ContainerName + ' ' + this.Visible + ' ' + this.Enabled); ///UserCodeRegionEnd: (do not remove this comment.) } ///UserCodeRegionStart:[User Functions] (do not remove this comment.) this.HaceClick = function(){ if ((this.Click != undefined) && (this.Enabled == true)){ this.Click(); } } this.Over = function(){ if (this.Enabled == true) { if (this.UpDown!=1){ document.getElementById(this.ContainerName + "_Fondo_1_1_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_3").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_4").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_3").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_4").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_1").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_3").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_4").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_1").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_1").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_3").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_4").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Button").style.color = this.M_ForeColor.Html; document.getElementById(this.ContainerName + "_Button").style.textDecoration = (this.M_Underline)?'underline':''; document.getElementById(this.ContainerName + "_Button").style.fontStyle = (this.M_Italic)?'italic':''; document.getElementById(this.ContainerName + "_Button").style.fontWeight = (this.M_Bold)?'bold':''; document.getElementById(this.ContainerName + '_Sombra_1').style.visibility = ''; document.getElementById(this.ContainerName + '_Sombra_2').style.visibility = ''; document.getElementById(this.ContainerName + '_Sombra_3').style.visibility = ''; } } } this.Up = function(){ this.UpDown = 0; if (this.Enabled == true) { document.getElementById(this.ContainerName + "_Fondo_1_1_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_3").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_4").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_3").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_4").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_1").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_1").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_2").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_3").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_4").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_1").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_1").style.backgroundColor = this.M_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_2").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_3").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_4").style.backgroundColor = this.M_BorderColor.Html; document.getElementById(this.ContainerName + "_Button").style.color = this.M_ForeColor.Html; document.getElementById(this.ContainerName + "_Button").style.textDecoration = (this.M_Underline)?'underline':''; document.getElementById(this.ContainerName + "_Button").style.fontStyle = (this.M_Italic)?'italic':''; document.getElementById(this.ContainerName + "_Button").style.fontWeight = (this.M_Bold)?'bold':''; document.getElementById(this.ContainerName + '_Sombra_1').style.visibility = ''; document.getElementById(this.ContainerName + '_Sombra_2').style.visibility = ''; document.getElementById(this.ContainerName + '_Sombra_3').style.visibility = ''; } } this.Down = function(){ this.UpDown = 1; if (this.Enabled == true) { document.getElementById(this.ContainerName + "_Fondo_1_1_1").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_2").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_3").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_4").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_1").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_2").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_1").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_2").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_3").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_4").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_1").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_2").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_2").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_1").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_2").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_1").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_2").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_3").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_4").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_1").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_2").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_1").style.backgroundColor = this.C_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_2").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_3").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_4").style.backgroundColor = this.C_BorderColor.Html; document.getElementById(this.ContainerName + "_Button").style.color = this.C_ForeColor.Html; document.getElementById(this.ContainerName + "_Button").style.textDecoration = (this.C_Underline)?'underline':''; document.getElementById(this.ContainerName + "_Button").style.fontStyle = (this.C_Italic)?'italic':''; document.getElementById(this.ContainerName + "_Button").style.fontWeight = (this.C_Bold)?'bold':''; document.getElementById(this.ContainerName + '_Sombra_1').style.visibility = 'hidden'; document.getElementById(this.ContainerName + '_Sombra_2').style.visibility = 'hidden'; document.getElementById(this.ContainerName + '_Sombra_3').style.visibility = 'hidden'; } } this.Out = function(){ this.UpDown = 0; if (this.Enabled == true) { document.getElementById(this.ContainerName + "_Fondo_1_1_1").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_2").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_3").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_1_4").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_1").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_2_2").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_1").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_2").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_3").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_1_3_4").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_1").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_2_1_2").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_2").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_1").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_2_3_2").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_1").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_2").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_3").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_1_4").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_1").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_2_2").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_1").style.backgroundColor = this.L_Color.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_2").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_3").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Fondo_3_3_4").style.backgroundColor = this.L_BorderColor.Html; document.getElementById(this.ContainerName + "_Button").style.color = this.L_ForeColor.Html; document.getElementById(this.ContainerName + "_Button").style.textDecoration = (this.L_Underline)?'underline':''; document.getElementById(this.ContainerName + "_Button").style.fontStyle = (this.L_Italic)?'italic':''; document.getElementById(this.ContainerName + "_Button").style.fontWeight = (this.L_Bold)?'bold':''; document.getElementById(this.ContainerName + '_Sombra_1').style.visibility = 'hidden'; document.getElementById(this.ContainerName + '_Sombra_2').style.visibility = 'hidden'; document.getElementById(this.ContainerName + '_Sombra_3').style.visibility = 'hidden'; } } ///UserCodeRegionEnd: (do not remove this comment.): }