      function changeURL( sLanguage )
      {
        needsAmpersant = false;
	htmlCode = "https://secure.element5.com/shareit/checkout.html?";

		if (document.forms[0].check_3DS_G0.checked)
		{
			if ( needsAmpersant )
				htmlCode = htmlCode + "&";
			htmlCode = htmlCode + "PRODUCT[178151]=1";// + document.forms[0].product1_qnty.value;
			needsAmpersant = true;
		}
		if (document.forms[0].check_3DS_G1.checked)
		{
			if ( needsAmpersant )
				htmlCode = htmlCode + "&";
			htmlCode = htmlCode + "PRODUCT[182057]=1";// + document.forms[0].product1_qnty.value;
			needsAmpersant = true;
		}
		if (document.forms[0].check_3DS_S0.checked)
		{
			if ( needsAmpersant )
				htmlCode = htmlCode + "&";
			htmlCode = htmlCode + "PRODUCT[161150]=1";// + document.forms[0].product1_qnty.value;
			needsAmpersant = true;
		}
		if (document.forms[0].check_3DS_S1.checked)
		{
			if ( needsAmpersant )
				htmlCode = htmlCode + "&";
			htmlCode = htmlCode + "PRODUCT[182058]=1";// + document.forms[0].product1_qnty.value;
			needsAmpersant = true;
		}
		if (document.forms[0].check_3DS_S2.checked)
		{
			if ( needsAmpersant )
				htmlCode = htmlCode + "&";
			htmlCode = htmlCode + "PRODUCT[182059]=1";// + document.forms[0].product1_qnty.value;
			needsAmpersant = true;
		}
		if (document.forms[0].check_3DS_A0.checked)
		{
			if ( needsAmpersant )
				htmlCode = htmlCode + "&";
			htmlCode = htmlCode + "PRODUCT[A0_CODE_METRIC]=1";// + document.forms[0].product1_qnty.value;
			needsAmpersant = true;
		}
		htmlCode = htmlCode + "&languageid=2";
		window.location = htmlCode;
      }

      function checkModules()
      {
		if ( ( !document.forms[0].check_3DS_G0.checked ) 
		  && ( document.forms[0].check_3DS_G1.checked ) )
			alert('You need module G0 to work with G1.');
		if ( ( !document.forms[0].check_3DS_G0.checked ) 
		  && ( document.forms[0].check_3DS_S0.checked ) )
			alert('You need module G0 to work with S0.');
		if ( ( ( !document.forms[0].check_3DS_S0.checked ) 
		    || ( !document.forms[0].check_3DS_G0.checked ) ) 
		  && ( document.forms[0].check_3DS_S1.checked 
		    || document.forms[0].check_3DS_S2.checked ) )
			alert('You need modules G0 and S0 to work with S1 or S2.');
      }

