﻿
    function openPopup(strOpen,width,height)
    {
        open(strOpen, "Info", "status=1, width=" + width + ", height=" + height + ", directories=no, status=no, menubar=no,scrollbars=yes,resizable=yes, top=100, left=300");
    }


    function OpenWindow(theURL,winName,features) { 
	myDate = new Date(); 
	txt = winName + myDate.getMinutes() + myDate.getSeconds() 
	window.open(theURL,txt,features); 
	} 

    function openSearch(strOpen)
    {
        open(strOpen, "Info", "status=1, width=600, height=700, directories=no, status=no, menubar=no,scrollbars=yes,resizable=yes,top=100, left=300");
    }
    
    function NoConfirm()
    {
        win = top;
        win.opener = top;
        win.close ();
    }
    function confirmClose() {
     
        if (confirm("Are you sure you want to cancel?")) {
          //parent.close();
            win = top;
            win.opener = top;
            win.close ();
            
            /*if (!window.closed) 
            {
                window.close();
            }*/
        }
    }

function UpdatePerson(name,id,txtBoxId,hid)
{
    var t = document.getElementById(txtBoxId);
    t.innerText = name;
    
    var h = document.getElementById(hid);
    h.value = id;

}
function Update(name,id,txtBoxId,hid)
{
  /*  alert(document.getElementById(txtBoxId));*/
    var t = document.getElementById(txtBoxId);
    t.innerText = name;
    var h = document.getElementById(hid);
    h.value = id;
}

