function locate(loc) { location = loc; }

function isEmpty(str) {
     return(!str.length);
}

function testRegs(str) {
	r = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.((com)|(ru)|(net)|(org))(\\]?)$");
	var result = r.test(str);
	
	return(result);
}