/* var OBJdivLoading = document.getElementById("divLoading"); OBJdivLoading.innerHTML = ""; function loadingWait(){ $(function() { $("#dialog").html(""); $("#dialog").dialog({ closeOnEscape: false, title: "Cargando, por favor espere...", modal: true, width: 250, height: '150', position: 'center', close: function(event, ui) { $("#dialog").dialog("destroy")} }); //$("#dialog").dialog( "option" , position , 'center' ) }); } var OBJdivError = document.getElementById("divError"); OBJdivError.innerHTML = ""; function ShowStatus(div,state){ if(state){ loadingWait(); } else {$("#dialog").dialog("destroy");} } function ShowError(title,err, w){ var width = 'auto'; var titleMinus=title.toLowerCase(); if(w) { var width = w} else { var width = 'auto';} if(titleMinus.indexOf('error')>=0){ title='' + title; width=350; w=350; } if(TimeOutError){clearTimeout(TimeOutError);} if($.browser.msie){ if(w){width = w} else{width = 400} } $(function() { $("#dialog").html(err) $("#dialog").dialog({ closeOnEscape: true, title: title, modal: true, width: width, height: 'auto', close: function(event, ui) { $("#dialog").dialog("destroy")} }); }); } function ShowTimePicking(obj){ $(function() { $("#dialog").html(AJX.SendS('post','/includes/Time.Selection.asp','Time=' + obj.value + '&objId=' + obj.id)) $("#dialog").dialog({ closeOnEscape: true, title: 'Seleccionar Hora', modal: true, width: 320, height: 'auto', close: function(event, ui) { $("#dialog").dialog("destroy")} }); }); } var TimeOutError; function ShowErrorDelay(title,err){ if(TimeOutError){clearTimeout(TimeOutError);} $(function() { $("#dialog").html(err) $("#dialog").dialog({ closeOnEscape: true, title: title, modal: true, width: 250, height: 'auto', close: function(event, ui) { $("#dialog").dialog("destroy")} }); }); TimeOutError=setTimeout('CloseError()',5000); } function CloseError(){ $("#dialog").dialog("destroy"); }*/