<!--
function emailcheck(email) {
    if (email != null && email != "") {
        a = email.lastIndexOf("@");
        b = email.lastIndexOf(".");
        c = email.indexOf(":");
        d = email.indexOf("/");
        e = email.substring(0,a);
        f = e.indexOf("@");
        g = email.substring(a+1,email.length);
        h = g.indexOf("[");
        i = g.indexOf("]");
        j = g.indexOf("<");
        k = g.indexOf(">");
        l = email.substring(a+1,b);
        m = email.substring(b+1,email.length);
        n = email.substring(0,a);
        o = 0;
        if (a > b) {o++};
        if (c != -1) {o++};
        if (d != -1) {o++};
        if (f != -1) {o++};
        if (h != -1) {o++};
        if (i != -1) {o++};
        if (j != -1) {o++};
        if (k != -1) {o++};
        if (l.length < 2) {o++};
        if (m.length < 2) {o++};
        if (n.length < 1) {o++};
        if (o == 0) { return true; }
        else { return false; }
    }
    else { return false; }
}

function checkform() {
	msg = "";
	
	if(document.f1.fname.value == "enter your name")  msg = msg + "- Your name\n";
	if(!emailcheck(document.f1.email.value)) msg = msg + "- Your email address\n";

	if (msg!="")
		{
		alert ("Please complete the following:\r\n\r\n"+msg);
		document.f1.fname.focus();
		return false;
		}
}
  -->