ML = '';
	}
}
function upload_clear()
{
	fileViewer.innerHTML = oldFileviewHtml;
	currentfile = null;
	if (fileupload.files.length>0) {
		fileupload.value = '';
	}
	window.fileupload = document.getElementById('file-upload');
	fileupload_attach_event();
}

Array.prototype.in_array=function(e){
	var S=String.fromCharCode(2);
	var r=new RegExp(S+e+S);
	return (r.test(S+this.join(S)+S));
};


var fileViewer = document.getElementById('fileview');
var fileupload = document.getElementById('file-upload');
var curre