<!-- Hide this fron non-capable browsers

function myMemSubmit() {

	//var card=document.Mem.cardNumber.value;
	var email=document.Mem.email.value;
	var title=document.Mem.title.value;
	var first_name=document.Mem.first_name.value;
	var last_name=document.Mem.last_name.value;
	var company=document.Mem.company.value;
	var personal=document.Mem.personal.checked;
	var country=document.Mem.country.value;


	if  (isEmpty(email)) {
		alert ("You didn't enter your email address.  \nPlease enter your email address in the box provided.");
		return false;
	}

	if  (!echeck(email)) {
		alert ("Please enter a valid email address in the box provided.");
		return false;
	}

	if  (isEmpty(title)) {
		alert ("You didn't enter your title.  \nPlease enter your title in the box provided.");
		return false;
	}

	if  (isEmpty(first_name)) {
		alert ("You didn't enter your first name.  \nPlease enter your first name in the box provided.");
		return false;
	}

	if  (isEmpty(last_name)) {
		alert ("You didn't enter your last name.  \nPlease enter your last name in the box provided.");
		return false;
	}

	if  (isEmpty(country)) {
		alert ("You didn't enter your country.  \nPlease select a country from the box provided.");
		return false;
	}



}


// Check whether string s is empty.

function isEmpty(s)
{   return ((s == null) || (s.length == 0))
}


//}

/**
 * DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    return false
		 }

 		 return true					
	}

//Stop hiding-->
