/* JOKERz JQuery Lib Fn */
/* ©2008 JOKERz */
/* jokerz.web.id */
/* No Licenced Needed, But keep my name at the top of this scripts*/
	function alertBox(txt){			
		$.prompt(txt,{ 
			prefix:'impromptu',
			opacity: 0.7,
			show:'slideDown',
			overlayspeed: 'slow',
			buttons:{Ok:true}
		});
	}
	function confirmBox(txt,url,rowID,funcName){			
		$.prompt(txt,{ 
			opacity: 0.7,
			show:'slideDown',
			overlayspeed: 'slow',
			buttons:{Delete:true, Cancel:false},
			callback: function(v,m){						
				if(v){
					funcName(url,rowID);
				}						
			}
		});
	}
	function confirmBox2(txt,url){			
		$.prompt(txt,{ 
			opacity: 0.7,
			show:'slideDown',
			overlayspeed: 'slow',
			buttons:{Yes:true, Cancel:false},
			callback: function(v,m){						
				if(v){
					window.location = url
				}
			}
		});
	}
	function delRow(url,rowID){
		$.ajax({
		   type: "POST",
		   url: url,
		   success: function(html){
		   	  recolorList(rowID);
		   }
		 });
	 }
	function recolorList(rowID){
		$("#"+rowID).hide("slow",function() {
			$(this).remove();
			var listItems = $(".tblRow:visible");
			$.each(listItems, function(i, n){
			if (i % 2)
				$(n).removeClass("tblAlt");
			else
				$(n).addClass("tblAlt");
			});			
		});
	}
	function delThumb(url,rowID){
		$.ajax({
		   type: "POST",
		   url: url,
		   success: function(html){
		   	  clearThumb(rowID);
		   }
		 });
	 }
	 function clearThumb(rowID){
		$("#"+rowID).hide("slow",function() {
			$(this).remove();		
		});
	}
	function toggleDetails(id){
		$("#hint"+id).slideToggle();
	}
