	var xmlHttpRequrrent = null;
	var responseContextText = new ResponseContext();

	function callbackItem() {
		if (xmlHttpRequrrent != null && xmlHttpRequrrent.readyState == 4) {
			if (xmlHttpRequrrent.status == 200) {
				responseContextText.parseResponse(xmlHttpRequrrent.responseText);
//				alert(responseContextText.get('error'));
				if (responseContextText.get('error') == "null" ||
						responseContextText.get('error') == null) {
//					alert(responseContextText.get('image'));
						if (responseContextText.get('image') != "null") {
					document.getElementById("screenshot").src = "upload/" + responseContextText.get('image');
						}
//					alert(responseContextText.get('desc'));
					document.getElementById("portfolioTitle").innerHTML = responseContextText.get('title');
					document.getElementById("portfolioDesc").innerHTML = responseContextText.get('desc');
						if (responseContextText.get('link') != "null") {
					document.getElementById("portfolioLink").innerHTML = responseContextText.get('link');
						} else {
					document.getElementById("portfolioLink").innerHTML = "";
						}
					document.getElementById("portfolioinfo1").style.display = 'block';
				}
			} else {
				alert('Status = ' + xmlHttpRequrrent.status);
				alert('Body:\n' + xmlHttpRequrrent.responseText);
			}
			xmlHttpRequrrent = null;
		}
	}

	function visibleSelectItem(itemId) {

		if (xmlHttpRequrrent == null) {
			var prmts = 'targetAction=visibleSelectItem&itemId=' + itemId;
			xmlHttpRequrrent = requestPOST('portfolio.html', prmts, callbackItem);
		} else {
			alert('Waiting ...');
			
		}
	}