function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }

var pricelist = new Array();
      
function newPrice(id, count, price)
{
	pricelist[id] = count*price;
	sumPrice();
}

function sumPrice()
{
 sum = 0;
	for each(price in pricelist)
	{
		sum += price;
	}
	
	document.getElementById("momprice").innerHTML = "Momentaner Preis "+sum+"&euro;";
	document.getElementById("momprice2").innerHTML = "Momentaner Preis "+sum+"&euro;";
}


function open_image_import()
{
	document.getElementById("image_import").style.visibility = "visible";
}

function close_image_import()
{
	document.getElementById("image_import").style.visibility = "hidden";
}

function image_import(wert)
{
	var vorher = document.getElementById("Content").value;
	document.getElementById("Content").value = vorher + "[IMG]"+wert+"[/IMG]";
}

function render_bold()
{
	wert = window.prompt('Text der Fett formatiert werden soll:','Text');
	var vorher = document.getElementById("Content").value;
	document.getElementById("Content").value = vorher + "[B]"+wert+"[/B]";
}

function render_underline()
{
	wert = window.prompt('Text der unterstrichen werden soll:','Text');
	var vorher = document.getElementById("Content").value;
	document.getElementById("Content").value = vorher + "[U]"+wert+"[/U]";
}

function render_italics()
{
	wert = window.prompt('Text der Kursiv formatiert werden soll:','Text')
	var vorher = document.getElementById("Content").value;
	document.getElementById("Content").value = vorher + "[K]"+wert+"[/K]";
}
