// Ajax object http_request = false; function getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } http_request = getHTTPObject(); function confirmBid(iid) { var bidContainer = document.getElementById('bid_container_' + iid); if (bidContainer.className == 'shop_product_thumb_box four') { document.getElementById('prod_' + iid).submit(); } else { var labelContainer = document.getElementById('bid_label_container_' + iid); labelContainer.innerHTML = 'CONFIRM
TRANSFER'; bidContainer.className = 'shop_product_thumb_box four'; } } function updateInstancesAction() { if (http_request.readyState == 4 && http_request.responseText != 'OK' && http_request.responseText != '') { var thisContainer = document.getElementById('shop_product_instances'); thisContainer.innerHTML = http_request.responseText; } } function updateInstances(instanceStr) { http_request.open("GET", '/start.php?page_type=instance_refresh&shop_cat_id=', true); http_request.send(null); http_request.onreadystatechange = updateInstancesAction; } function reclaimAlert(product, link, outstanding) { manualiBox('/bespoke/reclaim_alert.php?product=' + product + '&link=' + link + '&outstanding=' + outstanding, 'type=3&width=550&height=380'); return false; }