function submit_to_wishlist() {
	document.cart_quantity.submit_target.value = "wishlist";
	document.cart_quantity.submit();
}

// remove the registerOverlay call to disable the controlbar
hs.registerOverlay(
	{
		thumbnailId: null,
		overlayId: 'controlbar',
		position: 'top right',
		hideOnMouseOut: false
	}
);
hs.showCredits=false;
hs.captionSlideSpeed=0;
hs.marginLeft=350;
hs.marginTop=70;
hs.fadeInOut=0;
hs.expandDuration=1;
hs.expandSteps=1;
// Tell Highslide to use the thumbnail's title for captions
hs.captionEval = 'this.thumb.title';
hs.outlineType = null;
hs.graphicsDir = 'highslide/graphics/';
hs.flushImgSize = true;
window.onload = function() {
	hs.preloadImages(5);
}

function originalfenster (url) {
 fenster = window.open(url, "originalfenster", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=408, height=183, screenX=150, screenY=150, top=150, left=150");
 fenster.focus();
}

function RequestObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		alert("Ihr Browser unterstützt diese Funktion leider nicht.");
	}
}
var connect = RequestObject();
function storeText(){
	if (connect.readyState == 4 || connect.readyState == 0) {
		var data = escape(document.getElementById('shout_text').value);
		connect.open("GET", 'shoutbox.php?message=' + data, true);
		connect.onreadystatechange = getResponse;
		connect.send(null);
	}
}
function getResponse() {
	if (connect.readyState == 4) {
		var data = connect.responseText;
		document.getElementById('shoutboxArea').innerHTML = data;
	}
}

var selected;
var submitter = null;

function submitFunction() {
    submitter = 1;
}
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}  

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
    if (document.getElementById) {
      selected = document.getElementById('defaultSelected');
    } else {
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  if (document.getElementById('payment'[0])) {
    document.getElementById('payment'[buttonSelect]).checked=true;
  } else {
    //document.getElementById('payment'[selected]).checked=true;
  }
}

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

function popupImageWindow(url) {
  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
