//inovan.js

function jump2product(){
	var selectedURI=document.quickform.qselect.options[document.quickform.qselect.selectedIndex].value;
	if(selectedURI.length > 2)location.href=selectedURI;
}

function customerLogin(lang){
	
}
function checkform(myform){
	var formflag=true;
	
	theform=eval("document."+myform);
	
	for(i=0; i<theform.elements.length; i++){
		if (theform.elements[i].type == "checkbox" || theform.elements[i].type == "text" || theform.elements[i].type == "textarea" || theform.elements[i].type == "select-one") {
			if (theform.elements[i].name.indexOf("_m_") != -1) {// ein muss-feld	
			
				// is checkbox?
				if (theform.elements[i].type == "checkbox") {
					if (theform.elements[i].checked == false) {// ungecheckt

						var fieldname = theform.elements[i].name.substring(6,theform.elements[i].name.length);
						alert("Bitte best\xE4tigen Sie die Checkbox \"" + fieldname + "\"."); 
						
						theform.elements[i].focus();
						formflag = false;
						break;
					}
				} else
				
				// is dropdown ? 
				if (theform.elements[i].type=="select-one") {
					
					// is a value other than the first selected?
					if (theform.elements[i].selectedIndex <= 0) {
						
						var fieldname = theform.elements[i].name.substring(6,theform.elements[i].name.length);
						alert("Bitte f\xFCllen Sie das Feld \"" + fieldname + "\" aus."); 
						theform.elements[i].focus();
						formflag = false;
						break;
					}
				} else
				
				// has textarea, input, ... a value?
				if (theform.elements[i].value == "") {
					
					var fieldname = theform.elements[i].name.substring(6,theform.elements[i].name.length);
					alert("Bitte f\xFCllen Sie das Feld \"" + fieldname + "\" aus."); 
					theform.elements[i].focus();
					formflag = false;
					break;
				}
			}
		}
	}
	if(formflag==true)return true;
	else return false;
}


