function getCookie(name)
{
  var prefix = name + "=";
  var start = document.cookie.indexOf(prefix);
  if (-1 == start)
    return 0
  var end = document.cookie.indexOf(";", start + prefix.length);
  if (-1 == end)
    end = document.cookie.length;
  var value = document.cookie.substring(start + prefix.length, end);
  return unescape(value);
}
var Agent = getCookie("agentdigiseller");


function ChangeCurr(){
  var curr = document.getElementById("TypeCurr").value
  if(curr == 'WMZ') document.getElementById('Price').value = '25';
  if(curr == 'WMD') document.getElementById('Price').value = '0';
  if(curr == 'WMR') document.getElementById('Price').value = '843,03';
  if(curr == 'WME') document.getElementById('Price').value = '18,1';
  if(curr == 'WMU') document.getElementById('Price').value = '263,1';
  if(curr == 'PPZ') document.getElementById('Price').value = '25';
  if(curr == 'PPR') document.getElementById('Price').value = '0';
  if(curr == 'PPE') document.getElementById('Price').value = '0';
  if(curr == 'PPU') document.getElementById('Price').value = '0';
  if(curr == 'MMR') document.getElementById('Price').value = '788,05';
  if(curr == 'PCR') document.getElementById('Price').value = '828,59';
  if(curr == 'ATM') document.getElementById('Price').value = '0';
  if(curr == 'SMS') document.getElementById('Price').value = '25';
  if(curr == 'GFT') document.getElementById('Price').value = '25';
  if(curr == 'RBX') document.getElementById('Price').value = '25';
  }