//_____ function to return the correct URL for the store listing _______________________________________
function storeDRUrl()
	{
		var id = document.getElementById('sDRStore').selectedIndex;
		if( id != 0 )
			{
				var va = document.getElementById('sDRStore').options[document.getElementById('sDRStore').selectedIndex].value;
				if( va == "linkTL_BE" || va == "linkTL_CH" || va == "linkTL_FR" )
					{ var drURL = "http://www.systranstore.fr/"; }
				else if( va == "internalGS")
					{ var drURL = "/company/globalstore.html"; }

				else
					{
						var li = va.split('|');
						var v1 = li[0], v2 = li[1], v3 = li[2], v4 = li[3], v5 = li[4], v6 = li[5], drURL = "http://", vDRHM = "", vCID = "", vAC = "", vSI = "";

						if( v2 ) { vDRHM = v2 +"/"; }
						if( v3 == 1 ) { vAC = "DisplayGlobalStoresPage"; } else { vAC = "DisplayHomePage"; }
						if( v4 == 2 ) { vSI = "systapac"; } else { vSI = "systran"; }
						switch( v1 )
							{
								case "1":	drURL += "shop.digitalriver.com/"+ vDRHM;		break;
								case "2":	drURL += "store.digitalriver.com/"+ vDRHM;  break;
								case "3":	drURL += "store.systransoft.com/"+ vDRHM;		break;
							}
						if( v1 == 1 )
							{
							  vCID = "&CID="+ v6;
								drURL += "dr/v2/ec_Main.Entry17c?SP=1&SID=28102&pn=1&pid=0&CUR="+ v5 + vCID;
							}
						else
							{ drURL += "servlet/ControllerServlet?Action="+ vAC +"&SiteID="+ vSI +"&Locale="+ v5; }
					}
    		window.location = drURL;
			}
	}

