var timers;
$(document).ready(function(){
	$(".ficus_delete_list_button").animate({opacity: '.3'},{duration: 300});
});
function warning(err){
	var dat = "<p class='message warning'>"+err+"</p>";
	$("#error .bottom").html(dat);	
}
function error(err){
	var dat = "<p class='message error'>"+err+"</p>";
//	$("html").add("<div id='error_automatic'>"+dat+"</div>");
//	timers = setInterval("out()",2000);
	$("#error .bottom").html(dat);	
}
function out(){
	$("#error_automatic").remove();
	clearInterval(timers);
}
function ficus_deletelistitems(gotos){
	var ides="";
	$("input[type=checkbox]").each( 
		function() {
			if ($(this).attr("value")=="1") ides+=(ides==""?"":",")+$(this).attr("id").substr(4,$(this).attr("id").length);
		} 
	);

	if (ides==""){
		var dat = "<p class='message warning'>please Select any item</p>";
		$("#error .bottom").html(dat);
	}else{
		if(confirm('Do you really want to delete this info?')) document.location=gotos+"delete/"+ides;
	}
}
function uploadimage(id){

	var abc = window.opener.jQuery("input");
	var found=false;
	abc.each(function(){
		if ($(this).attr("id")=="99_textInput"){
			$(this).attr("value",id);
			found=true;
		}
	});
	self.close();
}
