﻿// functions for artist-collection-ajax// handles ajax calls and hiding, showing, positioning and populating the feedback div, and confirming deletesfunction confirmdelete() {	return confirm("Are you sure you want to delete this item?\n\nPLEASE NOTE: This Cannot Be Undone!");}function sndReq(handler, postback, pageaction, id, frame,other) {	var sDate = new Date();	var sTime = sDate.getMinutes() + '' + sDate.getSeconds() + '' + sDate.getMilliseconds();  http.open('get', handler + '?postback=' + postback + '&pageaction=' + pageaction + '&id='+id+ '&frame='+frame+ "&" + other + '&time=' + sTime);  http.onreadystatechange = handleResponse;  http.send(null);  return false;}function handleResponse() {  if(http.readyState == 4){    var response = http.responseText;    var arrResponse = new Array();    if(response.indexOf('|') != -1) { 		arrResponse = response.split('|');		document.getElementById('cartMenu').style.display = 'inline';		document.getElementById('cartItemsCount').innerHTML = arrResponse[1];		document.getElementById('cartTotalItemsPrice').innerHTML = arrResponse[2];		document.getElementById('holdingDiv').innerHTML = arrResponse[3];		document.getElementById('holdingDiv').style.display = 'block';		// PositionLayer(arrResponse[0]);		PositionLayer('holdingDiv','small');		    }  }}
