function openWin(Loc){
		window.open(Loc,'','scrollbars=no,status=no,resizable=yes,width=450,height=650,top=20,left=50');
	}
function openPage(Loc){
		window.location=Loc;
	}
function openWinF(Loc,Width,Height){
		window.open(Loc,'','scrollbars=yes,status=no,resizable=yes,width='+Width+',height='+Height+',top=20,left=50');
	}
function openCloseDetails(divDetID, butClose, butOpen)
{
    if(document.getElementById(divDetID).style.display == "none")
    {
        document.getElementById(divDetID).style.display="block";
        document.getElementById(butOpen).style.display="none";
        document.getElementById(butClose).style.display="block";
    }
    else
    {
        document.getElementById(divDetID).style.display="none";
        document.getElementById(butOpen).style.display="block";
        document.getElementById(butClose).style.display="none";
    }
}
function closeAndUpdate(hfID)
{
    if(hfID!=0)
    {
        window.opener.document.getElementById(hfID).value="true";
    }
    window.opener.document.forms[0].submit();
    self.close();
}
function getEventSrcId(e)
{
    if (e.target) 
        return e. target.id; 
    else if (e.srcElement) 
        return e.srcElement.id;
}