function GetXmlHttpObject()
	
	{
	
	var xmlHttp=null;
	
	try
	
	{
	
	// Firefox, Opera 8.0+, Safari
	
	xmlHttp=new XMLHttpRequest();
	
	}
	
	catch (e)
	
	{
	
	// Internet Explorer
	
	try
	
	{
	
	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	
	}
	
	catch (e)
	
	{
	
	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	
	}
	
	}
	
	return xmlHttp;
	
	}
	
	
	
	function helpPopup(id) {
	var w = window.open("searchhelp.php?authorhelp_id="+id+"", "helpwindow", "status=1, height=940, width=950, scrollbars=yes, resizable=0, location=no,address=no");
	w.focus();
	}
	function categorySearchPopupwithOid(id,oid) {
	var w = window.open("categorysearch.php?urlId="+id+"&oid="+oid+"", "categorieswindow", "status=1, height=900, width=450, scrollbars=yes, resizable=0, location=no,address=no");
	w.focus();
	}
	
	function userPopup() {
	
	var w = window.open("userview.php", "helpwindow", "status=1, height=600, width=550, scrollbars=yes, resizable=0, location=no,address=no");
	
	w.focus();
	
	}
	
	
	
	function ajaxDelete(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "delete.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframe').html(msg);
	
	} else {
	
	$('div#iframe').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('list').innerHTML = '';
	
	}
	
	}
	
	
	
	
	
	function ajaxDeleteLimage(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteLow.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeLow').html(msg);
	
	} else {
	
	$('div#iframeLow').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('listLow').innerHTML = '';
	
	}
	
	}
	
	
	
	
	
	function ajaxDeleteMimage(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteHigh.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeHigh').html(msg);
	
	} else {
	
	$('div#iframeHigh').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('listHigh').innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeleteFimage(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteFull.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeFull').html(msg);
	
	} else {
	
	$('div#iframeFull').html(msg);
	
	}
	
	}
	
	});
	
	var list = document.getElementById('listFull');
	
	if (list)
	
	list.innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeletePimage(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteProof.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeProof').html(msg);
	
	} else {
	
	$('div#iframeProof').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('listProof').innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeleteIndex(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "delete.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframe').html(msg);
	
	} else {
	
	$('div#iframe').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('test').innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeleteLow(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteLow.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeLow').html(msg);
	
	} else {
	
	$('div#iframeLow').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('testLow').innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeleteHigh(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteHigh.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeHigh').html(msg);
	
	} else {
	
	$('div#iframeHigh').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('testHigh').innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeleteFull(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteFull.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeFull').html(msg);
	
	} else {
	
	$('div#iframeFull').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('testFull').innerHTML = '';
	
	}
	
	}
	
	
	
	function ajaxDeleteProof(id,bid) {
	
	if(confirm('Are you sure you want to delete file ?')){
	
	$.ajax({
	
	type: "POST",
	
	url: "deleteProof.php",
	
	data: "action=delete&id="+id+"&bid="+bid,
	
	success: function(msg) {
	
	if(msg.indexOf("failed") == -1) {
	
	$('.' + id).remove();
	
	$('div#iframeProof').html(msg);
	
	} else {
	
	$('div#iframeProof').html(msg);
	
	}
	
	}
	
	});
	
	document.getElementById('testProof').innerHTML = '';
	
	}
	
	}
	
	
	
	
	
	
	
	function imposeMaxLength(Object, MaxLen)
	
	{
	
	return (Object.value.length <= MaxLen);
	
	}
