$(document).ready(function() {
  
  $('.inputFVal')
  
    if (!$("#mySelect option:selected").length)
    $("#mySelect option[value='3']").attr('selected', 'selected');

 });



function checkF(form1) {
/*  alert(f0rm.length);
for (i = 0; i < form1.length; i++)
 {
  if(form1[i].value=="Välj Färg" && form1[i+1].value!="")
  {
      var err=true;
    }
 }
 if(err)
  alert("Du måste välja färg!")
  }else{*/
      document.f0rm.submit();
  }
//  }
//}

/*
function submitform(form1){
 for (i = 0; i < form1.length; i++)
 {
  if(form1[i].value=="Välj Färg" && form1[i+1].value!="")
 	{
   		var err=true;
  	}
 }
 if(err)
  alert("Du måste välja färg!")
	}else{
	  	document.f0rm.submit();
	}
}*/

function verify(){
    msg = "Du väljer nu en färg som inte är standard! vill du verkligen fortsätta?";
    //all we have to do is return the return value of the confirm() method
    return confirm(msg);
    }
  
