function checkKontaktForm(form) {    
  var name = form.name.value;
  var email = form.email.value;
  if (name.length < 3) {        
    alert ("Du måste ange företagsnamnet");        
    form.name.focus();
    return false;    
  } 
  if (email.length < 5 || email.indexOf("@") < 0) {        
    alert ("Du måste ange en e-postadress");        
    form.email.focus();
    return false;    
  } 
  return true;
}

function show_hide(id) {
  if(id.style.display == '') {
  id.style.display='none'
  }
  else {
  id.style.display=''
    
  }
}

function OpenWindow(url) {
    var imgWin=window.open(url, 'images','width=600, height=700, left=' + ((screen.availWidth-600)/2) + ', top=' + ((screen.availHeight-700)/2) + ', status=no, menubar=no, directories=no, resizable, scrollbars, toolbars=no, location=no');

    imgWin.focus();

}

function checkOrderForm(form) {    
  var plagg = form.plagg.value;
  var antal = form.antal.value;
  var logos = form.logos.value;
  if (plagg.length < 1) {        
    alert ("Du måste ange typ av plagg");        
    form.plagg.focus();
    return false;    
  } 
  if (antal.length < 1) {        
    alert ("Du måste ange antal");        
    form.antal.focus();
    return false;    
  } 
  if (logos.length == '') {        
    alert ("Du måste ange antal logotyper");        
    form.logos.focus();
    return false;    
  } 

  return true;
}

function checkStep2Form(form) {    
  var placering = form.orderPlacering.value;
  var storlek = form.orderLoggastorlek.value;
  var farg = form.orderColor.value;
  if (placering.length < 1) {        
    alert ("Du måste ange placering av loggan");        
    form.orderPlacering.focus();
    return false;    
  } 
  if (storlek.length < 1) {        
    alert ("Du måste ange storlek på loggan");        
    form.orderLoggastorlek.focus();
    return false;    
  } 
  if (farg.length < 1) {        
    alert ("Du måste ange någon färg");        
    form.orderColor.focus();
    return false;    
  } 
  return true;
}

function BaraSiffror()
	{ 
	
	if (isNaN(document.stepOne.antal.value) == true)
		{
		alert ('Var god ange antal med siffror.');
		document.stepOne.antal.focus();
		return false;
		}
		
  return true;
	}
	
function checkStep3Form(form) {    
  var plagg = form.plagg.value;
  var antal = form.antal.value;

  if (plagg.length < 1) {        
    alert ("Du måste ange typ av plagg");        
    form.plagg.focus();
    return false;    
  } 
  if (antal.length < 1) {        
    alert ("Du måste ange antal");        
    form.antal.focus();
    return false;      
  } 
  return true;
}

function BaraSiffror3()
	{ 
	
	if (isNaN(document.stepThree.antal.value) == true)
		{
		alert ('Var god ange antal med siffror.');
		document.stepThree.antal.focus();
		return false;
		}
		
  return true;
	}