﻿// Archivo JScript

                 function OpenModalDialog(url,btnName,diaHeight,diaWidth)
                {
                    var vReturnValue;
                    if(diaHeight == null || diaHeight == "")
                        diaHeight = "300";
                    if(diaWidth == null || diaWidth == "")
                        diaWidth = "400";
                    if(url != null)
                    {
                        vReturnValue = window.showModalDialog(url,"#1","dialogHeight: " + diaHeight +"px; dialogWidth: " + diaWidth + "px; dialogTop: " + (screen.height-diaHeight)/2 + "px; dialogLeft: " + (screen.width-diaWidth)/2 + "px; edge: Raised; center: Yes; help: No; scroll: No; resizable: No; status: No;");
                        
                    }
                    else
                    {
                        alert("No URL passed to open");
                    }
                    if(vReturnValue != null && vReturnValue == true)
                    {             
                        var oo=document.getElementById(btnName);
                        if (oo==null)
                            return true;
                        else
                            oo.click();
                    }
                    else
                    {   
                        return false;
                    }
                }
                function GetparentValue(name)
                
                {
                debugger;
                 return parent.document.getelementbyid(name).value;
                }
                function HandleKeyDown(obj) {
                    var tabKeyCode = 9;
                    if (event.keyCode == tabKeyCode && event.srcElement == obj) {
                        obj.selection = document.selection.createRange();
                        obj.selection.text = String.fromCharCode(tabKeyCode);
                        event.returnValue = false;
                    }
                }
