var popUp;

function SetControlValue(controlID, newDate, isPostBack)
{
    popUp.close();
    document.forms[0].elements[controlID].value=newDate;
   
}

function SetControlValue2()
{
    popUp.close();
     __doPostBack();
   
}
function abrirVentana (pageUrl,weight,height,left,top,scroll)
{
    popUp=window.open(pageUrl,'popupcal', 'width='+ weight +',height='+ height +',left='+ left +',top='+ top +',scrollbars='+scroll); 
}
  function Mensaje(mens){
        return confirm(" "+ mens);
        
        }


function OpenPopupPage (pageUrl, controlID, isPostBack)
{
    popUp=window.open(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack,'popupcal', 'width=250,height=300,left=200,top=250,scrollbars=1'); 
}

function OpenPopupPageNoticia (pageUrl, controlID, isPostBack)
{
    popUp=window.open(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack,'popupcal', 'width=325,height=300,left=300,top=250,scrollbars=1'); 
}

function OpenPopupPageNoticia2 (pageUrl, controlID, isPostBack,otro)
{
    popUp=window.open(pageUrl+'?controlID='+controlID+'&idcliente='+ otro +'&isPostBack='+ isPostBack,'popupcal', 'width=325,height=300,left=300,top=250,scrollbars=1'); 


}

function OpenPopupPageNoticiaModificar (pageUrl, controlID, isPostBack,otro,parametro)
{
    popUp=window.open(pageUrl+'?controlID='+controlID+'&parametro='+parametro+'&idcliente='+ otro +'&isPostBack='+ isPostBack,'popupcal', 'width=305,height=300,left=300,top=250,scrollbars=1'); 


}

function OpenPopupPage2 (pageUrl)
{
    popUp=window.open(pageUrl,'popupcal', 'width=450,height=410,left=240,top=80,scrollbars=1'); 
}
	
function OpenPopupPage3 (pageUrl)
{
    popUp=window.open(pageUrl,'popupcal', 'width=580,height=380,left=200,top=140,scrollbars=1'); 
}	 
                        
function OpenPopupPage4 (pageUrl)
{
    popUp=window.open(pageUrl,'popupcal', 'width=430,height=420,left=200,top=20,scrollbars=1'); 
}	                         


function abrirpop (pageUrl)
{
    popUp=window.open(pageUrl+'&isPostBack=True','popupcal', 'width=410,height=240,left=200,top=200'); 
}

function NoticiaDetalle (pageUrl)
{
    popUp=window.open(pageUrl,'popupcal', 'width=660,height=600,left=180,top=50,scrollbars=1'); 
}