
		function sendMail( ) {

			var http_request;

			try { // Firefox, Opera 8.0+, Safari
				http_request = new XMLHttpRequest();
			} catch ( e ) { // Internet Explorer
				try {
					http_request = new ActiveXObject( "Msxml2.XMLHTTP" );
				} catch ( e ) { //Internet explorer 5
					try {
						http_request = new ActiveXObject( "Microsoft.XMLHTTP" );
					} catch ( e ) {
						http_request = null;
						alert( "Your browser does not support AJAX!" );
					}
				}
		  }

		  if ( http_request.overrideMimeType ) {
			http_request.overrideMimeType( "text/xml" );
		  }

		  http_request.open("post", "admin/httpGetArticleDetails", true);
		  http_request.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
		  http_request.send('languageId='+languageId+'&articleId='+articleId);

		  var txt_content = "";

		  http_request.onreadystatechange = function () { 
			if ( http_request.readyState != 4 || http_request.status != 200 ) {
				return;
			}

			var xmlDoc;
			if (window.ActiveXObject) {
				xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
				xmlDoc.loadXML(http_request.responseText);
			} else {
				xmlDoc = http_request.responseXML;
			}

			var responseNode = xmlDoc.getElementsByTagName("node");

			if (responseNode.length > 0) {

				var article = responseNode[0].getElementsByTagName("article");

				for ( var i=0 ; i < article.length; i++ ) {			
					var tmpNode = article[i].getElementsByTagName('articleId')[i];
					var articleId = tmpNode.firstChild ? tmpNode.firstChild.data : "";
					
						tmpNode = article[i].getElementsByTagName('category')[i];
					var category = tmpNode.firstChild ? tmpNode.firstChild.data : "";
					
						tmpNode = article[i].getElementsByTagName('author')[i];
					var author = tmpNode.firstChild ? tmpNode.firstChild.data : "";

						tmpNode = article[i].getElementsByTagName('date')[i];
					var date = tmpNode.firstChild ? tmpNode.firstChild.data : "";
					
						tmpNode = article[i].getElementsByTagName('title')[i];
					var title = tmpNode.firstChild ? tmpNode.firstChild.data : "";

						tmpNode = article[i].getElementsByTagName('description')[i];
					var description = tmpNode.firstChild ? tmpNode.firstChild.data : "";

					txt_content += '<table class="contentpaneopen"><tr><td class="contentheading" width="100%">'+title+'</td></tr>';		
					txt_content += '<tr><td valign="top"><span class="author"><fmt:message key="Author" bundle="${labelsBundle}"/>: '+author+'</span></td></tr>';
					txt_content += '<tr><td valign="top"><div align="left" class="createdate"><fmt:message key="LastUpdate" bundle="${labelsBundle}"/>: '+date+'<br /></div><p></td></tr>';
					txt_content += '<tr><td valign="top"><div align="left"><p>'+description+'<br /></div><p></td></tr></table>';	
				}
			}
		  };

			var eml="you@youraddress.com";
			var bod="&body="+_frm.selOne.value+" ¦¦ "+_frm.txtOne.value;
			var subj="?subject=Whatever you want";
			location.href="mailto:"+eml+subj+bod;
		}

		function print( languageId, articleId ) {

			var http_request;

			try { // Firefox, Opera 8.0+, Safari
				http_request = new XMLHttpRequest();
			} catch ( e ) { // Internet Explorer
				try {
					http_request = new ActiveXObject( "Msxml2.XMLHTTP" );
				} catch ( e ) { //Internet explorer 5
					try {
						http_request = new ActiveXObject( "Microsoft.XMLHTTP" );
					} catch ( e ) {
						http_request = null;
						alert( "Your browser does not support AJAX!" );
					}
				}
		  }

		  if ( http_request.overrideMimeType ) {
			http_request.overrideMimeType( "text/xml" );
		  }

		  http_request.open("post", "admin/httpGetArticleDetails", true);
		  http_request.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
		  http_request.send('languageId='+languageId+'&articleId='+articleId);

		  var txt_content = "";

		  http_request.onreadystatechange = function () { 
			if ( http_request.readyState != 4 || http_request.status != 200 ) {
				return;
			}

			var xmlDoc;
			if (window.ActiveXObject) {
				xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
				xmlDoc.loadXML(http_request.responseText);
			} else {
				xmlDoc = http_request.responseXML;
			}

			var responseNode = xmlDoc.getElementsByTagName("node");

			if (responseNode.length > 0) {

				var article = responseNode[0].getElementsByTagName("article");

				for ( var i=0 ; i < article.length; i++ ) {			
					var tmpNode = article[i].getElementsByTagName('articleId')[i];
					var articleId = tmpNode.firstChild ? tmpNode.firstChild.data : "";
					
						tmpNode = article[i].getElementsByTagName('category')[i];
					var category = tmpNode.firstChild ? tmpNode.firstChild.data : "";
					
						tmpNode = article[i].getElementsByTagName('author')[i];
					var author = tmpNode.firstChild ? tmpNode.firstChild.data : "";

						tmpNode = article[i].getElementsByTagName('date')[i];
					var date = tmpNode.firstChild ? tmpNode.firstChild.data : "";
					
						tmpNode = article[i].getElementsByTagName('title')[i];
					var title = tmpNode.firstChild ? tmpNode.firstChild.data : "";

						tmpNode = article[i].getElementsByTagName('description')[i];
					var description = tmpNode.firstChild ? tmpNode.firstChild.data : "";

					txt_content += '<table class="contentpaneopen"><tr><td class="contentheading" width="100%">'+title+'</td></tr>';		
					txt_content += '<tr><td valign="top"><span class="author"><fmt:message key="Author" bundle="${labelsBundle}"/>: '+author+'</span></td></tr>';
					txt_content += '<tr><td valign="top"><div align="left" class="createdate"><fmt:message key="LastUpdate" bundle="${labelsBundle}"/>: '+date+'<br /></div><p></td></tr>';
					txt_content += '<tr><td valign="top"><div align="left"><p>'+description+'<br /></div><p></td></tr></table>';	
				}
			}
		  };

		  var document_print=window.open("","","status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no");
			  document_print.document.write('<html><head><title>Print</title></head><body style="font-family:verdana; font-size:12px;" onLoad="self.print();self.close();" >'+txt_content+'</body></html>');
			  document_print.print();
			  document_print.document.close();
		}
