function report(asin,categoryId)
{
	newwin = window.open('/report/' + asin + '?c=' + categoryId, 'reportWindow', 'width=500,height=300');
	if(window.focus) newwin.focus();
	return true;
}

function ajax(url,id)
{
	var self = this;
		
	if(window.XMLHttpRequest) {
		// mozilla, safari
		self.xmlHttpReq = new XMLHttpRequest();
	}
	else if(window.ActiveXObject) {
		// IE
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}

	self.xmlHttpReq.open('GET',url,true);
	// self.xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function() {
		if(self.xmlHttpReq.readyState == 4  ) {
			document.getElementById(id).innerHTML = xmlHttpReq.responseText;
		}
	}
	self.xmlHttpReq.send("");
}
