// JavaScript Document
function isEmailAddr(Email)
{
 	var result = false
 	var theStr = new String(Email)
	var index = theStr.indexOf("@");
	if (index > 0) {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
 	result = true;
  }
 return result;
}

function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}

function loginCheck(f) {
alert("Members services are currently under construction, please check back soon.");
return false;
/*	if(f.Username.value == '') {
		alert("Please enter your username.");
		f.Username.focus();
		return false;
	}
	if(f.Password.value == '') {
		alert("Please enter your password.");
		f.Password.focus();
		return false;
	}
*/
}