/* belbios.js.php v1.2 * * (C) 2003 - 2010. Belbios BV * * Opens a popup with the correct dimensions for the calling B2B user, * possibly rerouting to another server or another service. */ function belbios_reserveer(url, target) { var w = 600; var h = 450; var l = Math.round((screen.width / 2) - (w / 2)); var t = Math.round((screen.height / 2) - (h / 2)); var params = "trans=transaction&lbh=ras"; if (url.indexOf("?") != -1) { url += "&" + params; } else { url += "?" + params; } if (target && target.location) { target.location.href = url; } else { window.open(url, "belbios", "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=yes"); } } function belbios_koop(url, target) { var w = 300; var h = 190; var l = Math.round((screen.width / 2) - (w / 2)); var t = Math.round((screen.height / 2) - (h / 2)); var params = "trans=transaction&lbh=ras"; if (url.indexOf("?") != -1) { url += "&" + params; } else { url += "?" + params; } if (target && target.location) { target.location.href = url; } else { window.open(url, "belbios", "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=yes"); } } function belbios_shoppingcart_show() { var w = 300; var h = 190; var l = Math.round((screen.width / 2) - (w / 2)); var t = Math.round((screen.height / 2) - (h / 2)); var url = "https://ras.belbios.nl/transaction.php?service=shoppingcart&user=independent&action=show"; window.open(url, "belbios", "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=yes"); } function belbios_shoppingcart_add(cinema, movie, date, time, tickets, rank, price, channel) { var w = 300; var h = 190; var l = Math.round((screen.width / 2) - (w / 2)); var t = Math.round((screen.height / 2) - (h / 2)); var url = "https://ras.belbios.nl/transaction.php?service=shoppingcart&user=independent&cinemaID=" + cinema + "&movieID=" + movie + "&performanceDate=" + date + "&performanceTime=" + time + "&rankID=" + rank + "&priceID=" + price + "&numberOfTickets=" + tickets + "&channel=" + channel + "&action=add"; window.open(url, "belbios", "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=yes"); }