function newwindow(jlink) {
	window.open(jlink,'','width=375, height=425,left=100,top=100,screenX=100,screenY=100, resizable=no, scrollbars=no, toolbar=no, status=no, menubar=no, copyhistory=no');
}
function newwindowbig(jlink) {
	window.open(jlink,'','width=300, height=400,left=100,top=100,screenX=100,screenY=100, resizable=no, scrollbars=no, toolbar=no, status=no, menubar=no, copyhistory=no');
}


function submitCart(requestid) {
	if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
	}
	if (req != undefined) {
		req.onreadystatechange = function() { updateAction("cart"); };
	
		req.open('POST', 'xhr/xhr_update_requestid.php', true);
 		req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

 		text = "requestid=" + requestid;
 		text += "&page=5";
		req.send(text);
	}
}

function updateAction(actionType) {
	if (req.readyState == 4) { // only if req is "loaded"
		if (req.status == 200) { // only if "OK"
			text = "itWorked";
		}
	}	
}