function checkFields_login(theForm){		 if (theForm.epost.value.length < 1)	{		alert ("Var god ange din epost-adress.");		theForm.epost.focus();		return "ERROR";	}	 if (theForm.epost.value.length > 0)	{		at=eval(theForm.epost.value.indexOf("@"));		sistaat=eval(theForm.epost.value.lastIndexOf("@"));		punkt=eval(theForm.epost.value.lastIndexOf("."));		if(at<1||at!=sistaat||punkt<at){			alert ('Du har inte angivit en korrekt epostadress');			theForm.epost.focus();			return "ERROR";		}	}	}function valid_login(theForm) {	if (checkFields_login(theForm)!= "ERROR")	{		return true;	}	else	{		return false;	}}function checkFields_apply(theForm){		 if (theForm.epost.value.length > 0)	{		at=eval(theForm.epost.value.indexOf("@"));		sistaat=eval(theForm.epost.value.lastIndexOf("@"));		punkt=eval(theForm.epost.value.lastIndexOf("."));		if(at<1||at!=sistaat||punkt<at){			alert ('Du har inte angivit en korrekt epostadress');			theForm.epost.focus();			return "ERROR";		}	}	/* 	if (theForm.epost.value.length < 1) *//* 	{ *//* 		alert ("Var god ange din epostadress."); *//* 		theForm.epost.focus(); *//* 		return "ERROR"; *//* 	} */		 if (theForm.fornamn.value.length < 1)	{		alert ("Var god ange ditt förnamn.");		theForm.fornamn.focus();		return "ERROR";	}		 if (theForm.efternamn.value.length < 1)	{		alert ("Var god ange ditt efternamn.");		theForm.efternamn.focus();		return "ERROR";	}		 if (theForm.foretag.value.length < 1)	{		alert ("Var god ange ett företag/ förvaltning.");		theForm.foretag.focus();		return "ERROR";	}		 if (theForm.adress.value.length < 1)	{		alert ("Var god ange en adress.");		theForm.adress.focus();		return "ERROR";	}		 if (theForm.postnr.value.length < 1)	{		alert ("Var god ange ett postnummer.");		theForm.postnr.focus();		return "ERROR";	}		 if (theForm.ort.value.length < 1)	{		alert ("Var god ange en ort.");		theForm.ort.focus();		return "ERROR";	}	/* 	 if (theForm.kontakt.options[theForm.kontakt.selectedIndex].value.length < 1) *//* 	{ *//* 		alert ("Var god ange hur du fick kontakt med www.jom.se"); *//* 		theForm.ort.focus(); *//* 		return "ERROR"; *//* 	} */	 if (theForm.epost.value.length < 1)	{		alert ("Var god ange din epost-adress.");		theForm.epost.focus();		return "ERROR";	}	/* 	 if (theForm.motivering.value.length < 1) *//* 	{ *//* 		alert ("Var god ange varför du vill ha tillgång prisuppgifterna."); *//* 		theForm.motivering.focus(); *//* 		return "ERROR"; *//* 	} */	}function valid_apply(theForm) {	if (checkFields_apply(theForm)!= "ERROR")	{		return true;	}	else	{		return false;	}}