function setGroesse(select, baseurl) {
  var url = baseurl;

  var wert = select.options[select.options.selectedIndex].value;
  if (wert != "") url += "&Groesse=" + wert;

  var von = document.getElementsByName("Von")[0].value;
  if (von != "") url += "&Von=" + von;
  
  var bis = document.getElementsByName("Bis")[0].value;
  if (bis != "") url += "&Bis=" + bis;
  
  var gruppe = getCheckedValue(document.SearchForm.Gruppe);
  if (gruppe != "") url += "&Gruppe=" + gruppe;
  
  location.href = url;
}

function selectLand(select, baseurl) {
  var url = baseurl;

  var wert = select.options[select.options.selectedIndex].value;
  if (wert != "") url += "&Land=" + wert;

  location.href = url;
}

function isNum (str, minVal) {
	var i = parseInt(str);
	if (isNaN (i)) return false;

	i = i.toString();
	if (i != str) return false;

	if (i < minVal) return false

	return true;
}

function isblank(s) {
    for(var i = 0; i < s.length; i++) {
        var c = s.charAt(i);
        if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
    }
    return true;
}

function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

function ChangeSelectBox(intParentBoxValue) {
	var intBoxLength = document.dForm.product.length;
	for( m=0 ; m<intBoxLength ; m++ ) {
		document.dForm.product.options[0] = null;
	}

	var intArrayLength = aryModellLength[intParentBoxValue];

	for( i=0 ; i<intArrayLength ; i++ ) {
		NeuerEintrag = new Option(arySelectBoxValues[intParentBoxValue][i][1],arySelectBoxValues[intParentBoxValue][i][0],false,true);
		document.dForm.product.options[i] = NeuerEintrag;
	}
	document.dForm.product.selectedIndex = document.dForm.product.options[0];
}

function DownloadCategorySelect(intID) {
	if (intID == 25)
	  document.dForm.subcategory1.style.display = 'block';
	 else
	  document.dForm.subcategory1.style.display = 'none';
}