function checkemail(em) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(em)){
		return (true)
	}
		return (false)
	}
				
function check(string1,string2){
	var ok=true;
		if (string1.length==0){
			ok=false;
	}
	for (var i=0; i<string1.length; i++){                 
		if (string2.indexOf(string1.charAt(i))==-1){
			ok=false;
	}
		}
	return ok;
			}	
function checkValidStep(){
	var frm = window.document.contact;
	var firstname = frm.firstname.value;					
	var email = frm.email.value;
	var lastname = frm.lastname.value;
	var comments = frm.comments.value;					
				
if (frm.firstname.value.length<1){
frm.firstname.focus();
alert("You forgot to fill first name field!");
return false;
} 
					
if (frm.lastname.value.length<1){
frm.lastname.focus();
alert("You forgot to fill last name field!");
return false;
}
					
if (frm.comments.value.length<1){
frm.comments.focus();
alert("You forgot to fill the comment field!");
return false;
} 		
					
if (frm.email.value.length<1){
frm.email.focus();
alert("You forgot to fill email field!");
return false;
} 							
					
if (!checkemail(frm.email.value))
{
frm.comments.focus();
alert("The email is not valid! Ex: abc@abc.com");					
return false;	
}	
return true;			
}