var eml_val = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

function checkit(thisForm) {
if (thisForm.name.value=="") {
alert("Please supply your name.");
thisForm.name.focus();
thisForm.name.select();
return false;
}

if (thisForm.surname.value=="") {
alert("Please supply your surname.");
thisForm.surname.focus();
thisForm.surname.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 checkit1(thisForm) {
if (thisForm.name.value=="") {
alert("Please supply your name.");
thisForm.name.focus();
thisForm.name.select();
return false;
}

if (thisForm.surname.value=="") {
alert("Please supply your surname.");
thisForm.surname.focus();
thisForm.surname.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 onField(txtfield) {
if (txtfield.value==txtfield.id)
txtfield.value = "";
}

function offField(txtfield) {
if (txtfield.value=="")
txtfield.value=txtfield.id;
}

function onField(txtfield) {
txtfield.className='stdinputbox stdinputover'
}

function offField(txtfield) {
if (txtfield.type=='text') {
txtfield.className='stdinputbox'
} else {
txtfield.className='stdinputboxc'
}
}

function onFieldEH(txtfield) {
if (txtfield.value==txtfield.id)
txtfield.value = "";
txtfield.className='stdinputbox stdinputover'
}

function offFieldEH(txtfield) {
if (txtfield.value=="")
txtfield.className='stdinputbox'
}

function copyContent(inputfield) {
txtobject=document.getElementById(inputfield);
varcopy=txtobject.createTextRange();
varcopy.execCommand("copy");
}
