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;

  if (document.getElementById('payment'[0])) {
    document.getElementById('payment'[buttonSelect]).checked=true;
  } else {
  }
}

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')
}

function versandkosten (url) {
 fenster = window.open(url, "fenster1", "toolbar=0,width=440,height=500,status=yes,scrollbars=no,resizable=no,left=50, top=200");
 fenster.focus();
}

function versandkosten1() {
window.open("info1.htm", "Versandkosten", "toolbar=0,width=440,height=500,status=yes,scrollbars=no,resizable=no,left=50,top=200");
}

function anysharp() {
window.open("1a-artikel/zubeh_r/AnySharp_Video.php", "AnySharp", "toolbar=0,width=465,height=600,status=yes,scrollbars=no,resizable=no,left=50,top=200");
}

function showBookmark(text){
myDiv = document.getElementById('bookmark'); myDiv.innerHTML = text; 
}
	
function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

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

  if (theForm.D1.selectedIndex < 0)
  {
    alert("W&auml;hlen Sie eine der \"Druckerauswahl f&uuml;r Tinte und Zubeh&ouml;r\"-Optionen.");
    theForm.D1.focus();
    return (false);
  }

  if (theForm.D1.selectedIndex == 0)
  {
    alert("Die erste \"Druckerauswahl f&uuml;r Tinte und Zubeh&ouml;r\"-Option ist keine g&uuml;ltige Wahl. W&auml;hlen Sie eine der anderen Optionen.");
    theForm.D1.focus();
    return (false);
  }
  return (true);
}