
    // An Array is created an initialised with the locale and the respective decimal seperators
	var arr= new Array();
	//locales 
	for(i=0;i<29 ; i++)
	{
	 arr[i]=new Array(1);
	}

	arr[0][0]= "1059"; //Belarusian .
	arr[1][0] ="1026"; //Bulgarian .
	arr[2][0] ="3076"; //Chinese(Hong Kong) .
	arr[3][0] ="2052"; //Chinese(PRC) .
	arr[4][0] ="4100"; //Chinese(Singapore) .
	arr[5][0] ="1028"; //Chinese(Taiwan) .
	arr[6][0] ="1050"; //Croatian  .
	arr[7][0] ="1029"; //Czech   .
	arr[8][0] ="1030"; //Danish   ,
	arr[9][0] ="1043"; //Dutch(Standard) ,
	arr[10][0]="2057"; //English(British)  .
	arr[11][0]="1033"; //English(United States)  .
	arr[12][0]="1036"; //French(Standard) ,
	arr[13][0]="1031"; //German(Standard) ,
	arr[14][0]="1032"; //Greek   .
	arr[15][0]="1081"; //Hindi .
	arr[16][0]="1038"; //Hungarian .
	arr[17][0]="1057"; //Indonesian ,
	arr[18][0]="1040"; //Italian(Standard) ,
	arr[19][0]="1041"; //Japanese .
	arr[20][0]="1042"; //Korean .
	arr[21][0]="1086"; //Malaysian ,
	arr[22][0]="1044"; //Norwegian(Bokmal) ,
	arr[23][0]="2068"; //Norwegian(Nynorsk) ,
	arr[24][0]="1045"; //Polish .
	arr[25][0]="1053"; //Swedish     ,
	arr[26][0]="1034"; //Spanish     ,
	arr[27][0]="2070"; //Portuguese(Standard)    
	arr[28][0]="1046"; //Portuguese(Brazilian) 

	

	arr[0][1]= "."; //Belarusian .
	arr[1][1] ="."; //Bulgarian .
	arr[2][1] ="."; //Chinese(Hong Kong) .
	arr[3][1] ="."; //Chinese(PRC) .
	arr[4][1] ="."; //Chinese(Singapore) .
	arr[5][1] ="."; //Chinese(Taiwan) .
	arr[6][1] ="."; //Croatian  .
	arr[7][1] ="."; //Czech   .
	arr[8][1] =","; //Danish   ,
	arr[9][1] =","; //Dutch(Standard) ,
	arr[10][1]="."; //English(British)  .
	arr[11][1]="."; //English(United States)  .
	arr[12][1]=","; //French(Standard) ,
	arr[13][1]=","; //German(Standard) ,
	arr[14][1]="."; //Greek   .
	arr[15][1]="."; //Hindi .
	arr[16][1]="."; //Hungarian .
	arr[17][1]=","; //Indonesian ,
	arr[18][1]=","; //Italian(Standard) ,
	arr[19][1]="."; //Japanese .
	arr[20][1]="."; //Korean .
	arr[21][1]=","; //Malaysian ,
	arr[22][1]=","; //Norwegian(Bokmal) ,
	arr[23][1]=","; //Norwegian(Nynorsk) ,
	arr[24][1]="."; //Polish .
	arr[25][1]=","; //Swedish     ,
	arr[26][1]=","; //Spanish     ,
	arr[27][1]=","; //Portuguese(Standard)    
	arr[28][1]=","; //Portuguese(Brazilian) 





//	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//	@		Description	: This function used to convert a Number from any multilingual system 
//	@              			  to  English decimal system .
//	@		Pages Affected  : Shipcalculator.asp,Shipping.asp, customkititems.asp
//      @		Function Name	: getEnglishLocale(strValue,strLocaleBefore)								
//	@		Input Parameters: "strValue" -> the number to be converted to English decimal system
//      @				  "strLocaleBefore" ->	Locale of the Multi-lingual Language
//	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
	
function getEnglishLocale(strValue,strLocaleBefore)
{
	var chrLB,chrLA,iIndex, returnString
	if (strLocaleBefore == 1033)
	{
		return strValue
	}
	else
	{
		chrLB=getEquivString(strLocaleBefore);
		chrLA=getEquivString(1033); 
		strValue=String(strValue)
		iIndex=strValue.indexOf(chrLB)
		if(iIndex > 0)
			returnString= strValue.substr(0,iIndex)+chrLA+strValue.substr(iIndex+1);
		else 
			returnString = strValue;
		return returnString
	}
	
}
// End of the function getEnglishLocale(strValue,strLocaleBefore)

//	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//	@		Description	: This function used to convert a Number from an English decimal system
//	@              			  to current multilingual system .
//	@		Pages Affected  : Shipcalculator.asp,Shipping.asp, customkititems.asp
//      @		Function Name	: getCurrentLocale(strValue,strLocaleAfter)								
//	@		Input Parameters: "strValue" -> the number to be converted to English decimal system
//      @				  "strLocaleAfter" ->	Locale of the Multi-lingual Language
//	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@



function getCurrentLocale(strValue,strLocaleAfter)
{
	var chrLB,chrLA,iIndex, returnString
	if (strLocaleAfter == 1033)
	{
		return strValue
	}
	else
	{
		chrLB=getEquivString(1033); 
		chrLA=getEquivString(strLocaleAfter);
		strValue=String(strValue)
		iIndex=strValue.indexOf(chrLB)
		if(iIndex > 0)
			returnString= strValue.substr(0,iIndex)+chrLA+strValue.substr(iIndex+1);
		else 
			returnString = strValue;
		return returnString
	}
}

// End of the function getCurrentLocale(strValue,strLocaleAfter)

//	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//	@		Description	: This function used to find for the sperator for a given Locale
//	@		Pages Affected  : Shipcalculator.asp,Shipping.asp, customkititems.asp
//      @		Function Name	: getEquivString(strLocale)								
//	@		Input Parameters: "strLocale" -> Locale of the Multi-lingual Language
//      @				  
//	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


function getEquivString(strLocale)
{	
	var strEquiv
	strEquiv="." // This is assigned "." as the default value if none of the locale match.
	for(i=0;i<arr.length;i++)
	{
		if (arr[i][0]==strLocale )
		  {
			  strEquiv=arr[i][1]
			  break;
		  }
	
	}
	
	return strEquiv;
	
}

// End of the function getEquivString(strLocale)

