function  inappropriate(){
	YAHOO.util.Dom.get("video_tools_feedback").style.display = "block";
}

function inappropriate_cancel(){
	YAHOO.util.Dom.get("video_tools_feedback").style.display = "none";
}

function feedback(){
	var abuse_type = document.form1.abuse_type.value;
	var comment = document.form1.abuse_comments.value;
	if (abuse_type == "") {
		alert("Please Select Abuse value");
	} else if(comment =="" ) {
		alert("You must enter comment");
	} else {
		var callback = { success:inappropriate_success, failure:inappropriate_failure, timeout: 10000 };
		var sUrl = baseurl + '/ajax/video_inappropriate.php?vid=' + vid + "&abuse_type=" + abuse_type + "&comment=" + escape(comment);
		YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
	}
}

function inappropriate_success(o){
	YAHOO.util.Dom.get("video_tools_feedback").style.display = "none";
	YAHOO.util.Dom.get('video_tools_result').style.display = 'block';
	YAHOO.util.Dom.get("video_tools_result").innerHTML=o.responseText;
}

function inappropriate_failure(){
	alert("connection failed");
}
