var email = "sales"
var domain = "microloc.com"
var eml_val = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

function checkit(thisForm) {
if (thisForm.forename.value=="") {
alert("Please supply your forename.");
thisForm.forename.focus();
thisForm.forename.select();
return false;
}

if (thisForm.surname.value=="") {
alert("Please supply your surname.");
thisForm.surname.focus();
thisForm.surname.select();
return false;
}

if (thisForm.company.value=="") {
alert("Please supply your company name.");
thisForm.company.focus();
thisForm.company.select();
return false;
}

if (thisForm.details.value=="") {
alert("Please supply a few details.");
thisForm.details.focus();
thisForm.details.select();
return false;
}

if (eml_val.test(thisForm.email.value) &! thisForm.email.value=="") {
thisForm.submit();
return true; }
else {
alert("Please supply a valid e-mail address.");
thisForm.email.focus();
thisForm.email.select();
return false;
}
}

function nextfield(target) {
if(window.event && window.event.keyCode == 13) {
document.getElementById(target).focus();
return false; }
else
return true;
}

function addToFavorites() {
var title="MicroLoc Workholding";
var urlAddress="http://www.microloc.com";
if (window.sidebar) { 
window.sidebar.addPanel(title, self.location.href,""); 
} else if( document.all ) {
window.external.AddFavorite(self.location.href, title);
} else if( window.opera && window.print ) {
return true;
}
}
