
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')
}


// ordentliches Popup 
function openPopup(url, width, height, scroll, resize) {
fenster = window.open(url, "fenster1", "width="+width+",height="+height+",status=yes,scrollbars="+scroll+",resizable="+resize);
 fenster.focus();
}

// jQuery lightBox
/*
$(document).ready(function(){
	$("a[@rel*=lightbox]").lightbox();
	if ($.cookie("jgXmas") == "SeasonsGreetings") {
		$.cookie("jgXmas", "SeasonsGreetings", {expires: 2});
		$.fn.lightbox.initialize();
		$.fn.lightbox.start(document.getElementById("Xmas"));
		$.cookie("jgXmas", null)
	}
});
*/
