function showMenu(id)
{
	var tmp=document.getElementById("menu"+id);
	if(tmp.style.display!="block")
		tmp.style.display="block";
	else
		tmp.style.display="none";
}

function showLarge(img)
{
	 /* var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	  } else if( document.documentElement &&
		  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	  }


	tmp=document.getElementById("pictureBox");
	tmp.style.display="block";
	tmp.style.left=((myWidth / 2) - 200) + "px";
	tmp.style.top="350px";
	
	tmp=document.getElementById("pictureBoxImg");
	tmp.innerHTML="<IMG vspace=12 src='thumbnail.php?name=" + img + "&size=400' /><br/><a href='javascript:closebox()'>close</a>";*/
	window.open("showpic.php?name=" + img + "&size=400","piccy","width=400,height=400");

}

function closebox()
{
	tmp=document.getElementById("pictureBox");
	tmp.style.display="none";
	
}
	
function confirmDelete(url)
{
	if(confirm("Are you sure?")){
		document.location.href=url;
	}
}	

function showDiv(n){
	tmp=document.getElementById(n);
	tmp.style.display="block";
}
