<!--

function showInfo(url, div_id) {
    
    var xmlhttpRequestObj;
	
    if (xmlhttpRequestObj = create_xmlhttpRequestObj()) {
	xmlhttpRequestObj.onreadystatechange = processRequestChange;
	xmlhttpRequestObj.open("GET", url, true);
	//xmlhttpRequestObj.setRequestHeader("Content-Type", 'text/xml; charset="ISO-8859-2"');
	//xmlhttpRequestObj.setRequestHeader("Accept-Charset", "iso-8859-2");
	xmlhttpRequestObj.send(null);
    } else {
	//alert('Nu pot crea xmlhttpRequestObj');
    }
	
    function processRequestChange() {
	if (xmlhttpRequestObj.readyState == 4) {
	    if (xmlhttpRequestObj.status == 200) {
		var string             = xmlhttpRequestObj.responseText;
		var responsecont       = document.createElement('div');
		responsecont.innerHTML = string;
		var mstrresponse       = responsecont.innerHTML;
		var homecont           = document.getElementById(div_id);
		homecont.innerHTML     = mstrresponse;
	    } else {
		//alert('Nu e ok');
	    }
	}
    }
	
    function create_xmlhttpRequestObj() {
	if (window.ActiveXObject) {
	    return new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
	    return new XMLHttpRequest();
	}
	return null;
    }
	
}

function is_empty(str) {
    return str.search('^[ \t\r\n]*$')>-1 ? true : false;
}

function is_uint(str) {
    if (is_empty(str)) {
	return false;
    }
    return str.search('^[.0-9]*$')>-1 ? true : false;
}

function is_email(str) {
    if (str.search("^([a-zA-Z0-9_]|\\-|\\.)+@(([a-zA-Z0-9_]|\\-)+\\.)+[a-zA-Z]{2,4}\$") > -1) {
	return true;
    }	
    return false;
}

function rotateImage() {
    image_index = image_sel > -1 ? image_sel : (image_index + 1) % number_of_image;;
    document.getElementById('rotator').style.background = 'url(' + image_list[image_index].src + ')';
    document.getElementById('rotator').innerHTML = '<a href="' + image_href[image_index] + '" class="rotator_back">' + image_name[image_index] + '</a>';
    if (image_sel == -1) {
        if (image_index > 0) {
	    document.getElementById('rot' + (image_index - 1)).className = 'rotator_item';
	} else {
	    document.getElementById('rot' + (number_of_image - 1)).className = 'rotator_item';
	}
	document.getElementById('rot' + image_index).className = 'rotator_item_sel';
	var recur_call = "rotateImage()";
	setTimeout(recur_call, interval);
    } else {
        document.getElementById('rot' + image_index).className = 'rotator_item_on';
        document.getElementById('rotlnk' + image_index).className = 'rotatorsel';
	document.getElementById('rotcatlnk' + image_index).className = 'rotatorcatsel';
        document.getElementById('rotsp' + image_index).innerHTML = '<img src="/images/arrow_over.gif" width="10">';
    }
}

function resetItem(i) {
    document.getElementById('rot' + i).className = 'rotator_item';
    document.getElementById('rotlnk' + i).className = 'rotator';
    document.getElementById('rotcatlnk' + i).className = 'rotatorcat';
    document.getElementById('rotsp' + image_index).innerHTML = '';
}

//-->