
// Pop-up window
imagename='';
function enlarge(imgnme) 
{
    lrgewin=window.open("about:blank","","height=200,width=200")
    imagename=imgnme;
    setTimeout('update()',500);
}
function update() 
{
    doc=lrgewin.document;
    doc.open('text/html');
    doc.write('<HTML><HEAD><TITLE>Enlarged Image<\/TITLE><\/HEAD><BODY bgcolor="white" onLoad="if  (self.resizeTo)self.resizeTo((document.images[0].width+10),(document.images[0].height+120))" topmargin="4" leftmargin="0" rightmargin="0" bottommargin="0"><table align=center width=""' + document.images[0].width + '" height="' + document.images[0].height +'" border="0" cellspacing="0" cellpadding="0"><tr><td>');
    doc.write('<IMG SRC="' + imagename + '"><\/td><\/tr><tr><td align=center><form name="viewn"><input type="image" src="../images/close.gif" align="right" value="Close Window" onClick="self.close()"><\/td><\/tr><\/table>');
    doc.write('<\/form><\/BODY><\/HTML>');
    doc.close();
}

        
// Hide/show div
function Toggle(item, imgitem) 
{
	obj=document.getElementById(item);
	visible=(obj.style.display!="none")
	obj2=document.getElementById(imgitem);
	if (visible) 
	{
		obj.style.display="none";
		obj2.src="images/arrow_rt.png";
	} 
	else 
	{
		obj.style.display="block";
		obj2.src="images/arrow_dw.png";
	}
}

 function win(filename) 
 {
    myFloater=window.open('','Slideshow','scrollbars=yes,resizable=no,location=no,status=no,width=850,height=600,left=150,top=50')
    myFloater.location.href=filename;
 }
 
function ConfirmDelete()
{
    var con=confirm('Are you sure you want to delete this Photo?');
    var hdnDelete=document.getElementById("ctl00_cPlhAdmin_hdnDelete")
    if(con)
    {
        hdnDelete.value="1"
        return true;
    }
    hdnDelete.value="0"
    return false;
}

function ConfirmEventDelete()
{
    var con=confirm('Are you sure you want to delete this News/Event?');
    var hdnDelete=document.getElementById("ctl00_cPlhAdmin_hdnDelete")
    if(con)
    {
        hdnDelete.value="1"
        return true;
    }
    hdnDelete.value="0"
    return false;
}

function ConfirmDocumentDelete()
{
    var con=confirm('Are you sure you want to delete this document?');
    var hdnDelete=document.getElementById("ctl00_cPlhAdmin_hdnDelete")
    if(con)
    {
        hdnDelete.value="1"
        return true;
    }
    hdnDelete.value="0"
    return false;
}

function ConfirmMemberDelete()
{
    var con=confirm('Are you sure you want to delete this member?');
    var hdnDelete=document.getElementById("ctl00_cPlhAdmin_hdnDelete")
    if(con)
    {
        hdnDelete.value="1"
        return true;
    }
    hdnDelete.value="0"
    return false;
}

//-->