function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function AddProductToBasket(productId)
{
        var hidProductId = document.getElementById( 'hidProductId' );
        if ( hidProductId == null )
        {
            return;
        }
        
        hidProductId.value = productId;
        
        var theForm = document.forms['aspnetForm'];
        if ( !theForm )
        {
            theForm = document.form;
        }
        
        if ( !theForm.onsubmit || (theForm.onsubmit() != false) )
        {
            theForm.submit();
        }
}
