var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('msie'))
{
	browser = "Internet Explorer";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
function changeContent(id,shtml,price,wkz) {
   if (document.getElementById || document.all) {
      var el = document.getElementById? document.getElementById(id): document.all[id];
      if (el && typeof el.innerHTML != "undefined") el.innerHTML = "Gesamtpreis: " + Math.round((((shtml * price)+(shtml*(price/100)*10))+(0.8*shtml)+(shtml*wkz)+1)*Math.pow(10,2))/Math.pow(10,2) + " Euro";
   }
}
