function MarkImp(ques_id)
{		

		if(confirm(' Click on `OK` to mark the question as important'))
		{			
			ajax_loadContent('show_mesg2','/ask-explore-answer/tpl/markimp.php?ques_id='+ques_id);
			show_div('show_mesg');
			hide_div('mark');
			return true;  
		}
		else 
		{
			
			return false;  
		}
	
	
}
function ReportAbuse(ans_id)
{		

		if(confirm(' Click on `OK` if you realy want to abuse this answer'))
		{			
			ajax_loadContent('show_mesg2','/ask-explore-answer/tpl/reportabuse.php?ans_id='+ans_id);
			show_div('abuse_mesg'+ans_id);
			hide_div('abuse'+ans_id);
			return true;  
		}
		else 
		{
			
			return false;  
		}
	
	
}

function GiveSaddy(ans_id,ques_id)
{


	if(confirm('Click on `OK` to  give the answer your Saddy'))
	{
		
		//alert("ansid");
		//alert('tpl/saddysmilly.php?smsd=sd&ans_id='+ans_id+'&ques_id='+ques_id);
		ajax_loadContent('show_mesg2','/ask-explore-answer/tpl/saddysmilly.php?smsd=sd&ans_id='+ans_id+'&ques_id='+ques_id);
		show_div('show_mesg_saddy'+ans_id);
		hide_div('saddy'+ans_id);
		hide_div('smilly'+ans_id);
		return true;
	}
	else
	{
		return false;
	}

}

function GiveSmilly(ans_id,ques_id)
{

	if(confirm('Click on `OK` to  give the answer your Gladdy'))
	{
		ajax_loadContent('show_mesg2','/ask-explore-answer/tpl/saddysmilly.php?smsd=sm&ans_id='+ans_id+'&ques_id='+ques_id);
		show_div('show_mesg_smilly'+ans_id);
		hide_div('smilly'+ans_id);
		hide_div('saddy'+ans_id);
		return true;
	}
	else
	{
		return false;
	}

}

function ActionOnQuestion(action,ques_id)
{
		
		var msg;
	if(action=='Closed')	{	msg	=	"Close";	}
	if(action=='repost'){	msg	=	"Repost";	}
	if(action=='Open')	{	msg	=	"Open";		}
	
	if(confirm('Click on `OK` to '+msg+' this question '))
	{
		ajax_loadContent('load_div','/ask-explore-answer/tpl/changequestionstatus.php?status='+action+'&ques_id='+ques_id);
		
		if(action=='Closed'){
		show_div('show_msg_closed'+ques_id);
		hide_div('hid_this_closed'+ques_id);
		}
		 if(action=='Open'){
		show_div('show_msg_open'+ques_id);
		hide_div('hid_this_open'+ques_id);
		}
		if(action=='repost')
		{
			show_div('show_msg_repost'+ques_id);
			hide_div('hid_this_repost'+ques_id);
		}
		
		hide_div('hid_this_repost'+ques_id);
		return true;
	}
}

