function _gel(a){return document.getElementById(a)}
function Load(){var a=null;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){a=null}}if(!a&&typeof XMLHttpRequest!="undefined"){a=new XMLHttpRequest()}return a}


function addRatingFeedback(responseXML,d, id) {

	mydiv = _gel(d)
	var s = responseXML.responseText
	mydiv.innerHTML = s
	var x = _gel('xhi' + iresult)
	var y = _gel('xhiLink' + iresult)
	var z = _gel('xhiImg' + iresult)

	x.style.backgroundColor='#CDCDCD'	
	y.style.color='#000'
	z.src='i/hitem_bk2.gif'
	
	iresult = id
	x = _gel('xhi' + id)
	y = _gel('xhiLink' + id)
	z = _gel('xhiImg' + id)	
	x.style.backgroundColor='#D71F36'
	y.style.color='#fff'
	z.src='i/hitem_bk1.gif'
}


function _loadcontentGET(d, id){
	var xmlhttp = Load();
	mydiv = _gel(d)
	var u = 'gethitem.asp?id=' + id
	xmlhttp.open("get", u, true);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200){	
				//mydiv.innerHTML= '<img src="i/working.gif" width=13 height=13>'
				addRatingFeedback(xmlhttp,d, id);
			}else{
				mydiv.innerHTML= 'erorr loading'
			} 
		}
	}
	xmlhttp.send(null);
}


