		function lightbox_delete( mylbid, mylbname )
		{
			if ( confirm('Are you sure you want to delete the lightbox ('+mylbname+')?') ) {
				window.open("lightbox_delete.php?lb="+mylbid+"&lbname="+mylbname, "win_lb_delete", "height=150,width=400");
			}
			return false;
		}
		function lightbox_rename( mylbid, mylbname )
		{
			window.open("lightbox_rename.php?lb="+mylbid+"&lbname="+mylbname, "win_lb_rename", "height=150,width=400");
			return false;
		}
		function lightbox_share( mylbid, mylbname )
		{
			window.open("lightbox_share.php?lb="+mylbid+"&lbname="+mylbname, "win_lb_share", "height=150,width=400");
			return false;
		}
		function lightbox_add( mylbid )
		{
			window.open("lightbox_add.php?lb="+mylbid, "win_lb_add", "height=150,width=400");
			return false;
		}
		function lightbox_image_add( photoid )
		{
			return true;
/*
			window.open("lightbox_image_add.php?ret=jsclose&id="+photoid, "win_lb_addimage", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=10,width=10");
			return false;
*/
		}



		function collection_goto()
		{
			selectBox = document.forms["myowncollections"].lbox_myowncollections;
			mylbid = selectBox.options[selectBox.selectedIndex].value;
			if ( mylbid == 0 ) {
				alert("First select a collection from the list");
			} else {
				location.href = "collection.php?lb="+mylbid;
			}
			return false;
		}
		function collection_update()
		{
			selectBox = document.forms["myowncollections"].lbox_myowncollections;
			mylbid = selectBox.options[selectBox.selectedIndex].value;
			if ( mylbid == 0 ) {
				alert("First select a collection from the list");
			} else {
				location.href = "collection_update.php?lb="+mylbid;
			}
			return false;
		}
		function collection_delete()
		{
			selectBox = document.forms["myowncollections"].lbox_myowncollections;
			mylbname = selectBox.options[selectBox.selectedIndex].text;
			mylbid = selectBox.options[selectBox.selectedIndex].value;
			if ( mylbid == 0 ) {
				alert("First select a collection from the list");
			} else {
				if ( confirm('Are you sure you want to delete the collection ('+mylbname+')?') ) {
					window.open("collection_delete.php?lb="+mylbid+"&lbname="+mylbname, "win_lb_delete", "height=150,width=400");
				}
			}
			return false;
		}
		function collection_rename()
		{
			selectBox = document.forms["myowncollections"].lbox_myowncollections;
			mylbname = selectBox.options[selectBox.selectedIndex].text;
			mylbid = selectBox.options[selectBox.selectedIndex].value;
			if ( mylbid == 0 ) {
				alert("First select a collection from the list");
			} else {
				window.open("collection_rename.php?lb="+mylbid+"&lbname="+mylbname, "win_lb_rename", "height=150,width=400");
			}
			return false;
		}
		function collection_add()
		{
			selectBox = document.forms["myowncollections"].lbox_myowncollections;
			mylbname = selectBox.options[selectBox.selectedIndex].text;
			mylbid = selectBox.options[selectBox.selectedIndex].value;
			window.open("collection_add.php?lb="+mylbid, "win_lb_add", "height=150,width=400");
			return false;
		}
		function collection_image_add( photo_id )
		{
			window.open("collection_chooser.php?photo_id="+photo_id, "win_lb_addimage_chooser", "height=100,width=400");
			return false;
		}
		function collection_image_delete( photo_id,lbid )
		{
			if ( confirm('Are you sure you want to remove this image out of this collection?') ) {
				window.open("collection_image_delete.php?photo_id="+photo_id+"&lbid="+lbid, "win_lb_addimage_chooser", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=10,width=10");
			}
			return false;
		}


		function rankings_add( photoid )
		{
			window.open("rankingadd.php?id="+photoid, "win_ranking_add", "height=230,width=375");
			return false;
		}


		function pay_me()
		{
			window.open("payme.php", "win_pay_me", "height=200,width=350");
			return false;
		}


		function pay_author( author_id )
		{
			window.open("payauthor.php?author_id="+author_id, "win_pay_author", "height=400,width=500");
			return false;
		}


		function login2amember(u,p)
		{
			//window.open("login2amember.php?u="+u+"&p="+p, "win_login2amember", "height=30,width=30");
			return false;
		}

		function resize_this_image( id )
		{
			alert("resize_this_image(id)");
			window.open("resize_image.php?id="+id, "win_resize_image", "width=600,height=400");
		}


