
function isMail(sString) {
	 var emailEXP = /^[a-z_0-9\.]+@[a-z_0-9-\.]+\.[a-z]{2,3}$/i
     if (!sString.match(emailEXP)){
	 	return false;
	 }else{
	 	return true;
	 }
}

function checkData()
{
	var tmp = 0;
	var tempstr;
	tempstr="Please feel free to fill in the following fields:\n"
	tempstr = tempstr + "___________________________________________________\n\n";
	
	if (document.adminForm.title.value==""){
		tempstr = tempstr + "Your Title\n"
		tmp = 1;
	}
	
	if (document.adminForm.first_name.value==""){
		tempstr = tempstr + "Your First Name\n"
		tmp = 1;
	}
	
	if (document.adminForm.last_name.value==""){
		tempstr = tempstr + "Your Last Name\n"
		tmp = 1;
	}
	
	if (document.adminForm.company.value==""){
		tempstr = tempstr + "Your Company\n"
		tmp = 1;
	}
	
	if (document.adminForm.address.value==""){
		tempstr = tempstr + "Your Address\n"
		tmp = 1;
	}
	
	if (document.adminForm.city.value==""){
		tempstr = tempstr + "Your City\n"
		tmp = 1;
	}
	
	if (document.adminForm.zip.value==""){
		tempstr = tempstr + "Your Zipcode\n"
		tmp = 1;
	}
	
	if (document.adminForm.country.value==""){
		tempstr = tempstr + "Your Country\n"
		tmp = 1;
	}
	
	if (document.adminForm.telephone.value==""){
		tempstr = tempstr + "Your Telephone number\n"
		tmp = 1;
	}
	
	if (isMail(document.adminForm.email.value)==false){
		tempstr = tempstr + "Your E-mail address\n"
		tmp = 1;
	}
	
	if (tmp==1){
		tempstr = tempstr + "___________________________________________________";
		alert (tempstr);
	}
	else{
		document.adminForm.submit();
	}
}

function myreset(){
	document.adminForm.reset();
}
