/* this function is called from the discs_ab.php, discs_cf.php etc pages on 
      the main newcollegechoir.com website.

      It passes the $cust variable ( obtained from the id_string function via $_SESSION['pass'] )
      to basket.php on the newcollegechoir.org website [ ncchoir.bpweb.net ] which is then
      fed into a pop-up window on the original choir website 

      If javascript is disabled, basket.php replaces the sales page; 
      php adds a 'continue shopping' link to enable the customer to return to the original sales page... 
*/


function basket(data) {
    visit = 'http://www.newcollegechoir.org/basketx.php';
    theURL = visit + data;
    newwindow = window.open(theURL, 'basket', 'width=560,height=500,resizable=0,status=1,left=25, top=25, location=0,scrollbars=1'); 
    if ( window.focus ) { newwindow.focus(); }
}
function basketx(data) {
    visit = 'http://www.newcollegechoir.org/basketx.php';
    theURL = visit + data;
    newwindow = window.open(theURL, 'basket', 'width=560,height=500,resizable=0,status=1,left=25, top=25, location=0,scrollbars=1'); 
    if ( window.focus ) { newwindow.focus(); }
}