  function showPhotos(pageno,pagesize,owner,ownertype,pagecount,ctx,flag)
  {
  	if(flag=="pre")
  	{
	  	pageno = pageno-1;
  	}
  	else
  	{
  		pageno = pageno+1;
  	}
 	albumDwr.getPhotosForIndex(pageno,pagesize,owner,ownertype,function(arr)
 		{
 			var showDiv = document.getElementById("Photo");
 			var str = "";
 			for(var i=0;i<arr.length;i++)
 			{
 				str+="<div class='xc_pic'>";
				str+="<div class='xc_picc'>";
				str+="<a href='"+ctx+"/photo/photo!show.action?owner="+arr[i].owner+"&ownertype="+arr[i].ownerType+"&id="+arr[i].id+"&albumId="+arr[i].albumId+"'>";
				str+="<img src='"+arr[i].thumbPath+"'/>";
				str+="</a>";
				str+="</div>";
				str+="<div class='xc_picc1'>";
				str+="<a href='"+ctx+"/photo/photo!show.action?owner="+arr[i].owner+"&ownertype="+arr[i].ownerType+"&id="+arr[i].id+"&albumId="+arr[i].albumId+"'>"+arr[i].title+"</a>";
				str+="</div>";
				str+="</div>";
 			}
 			showDiv.innerHTML=str;
 			
 		});
  		
  }