<!--

function statbar(){
	window.status = "a j w . n e t - making the web work for you."
}

function securestatbar(){
	window.status = "a j w . n e t - making the web work for you."
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function emcode(){
	crypt_1=new Array(60,97,32,115,116,121,108,101,61,34,99,111,108,111,114,58,102,102,102,102,102,102,34,32,99,108,97,115,115,61,34,115,116,97,110,100,97,114,100,34,32,104,114,101,102,61,34,109,97,105,108,116,111,58,115,111,108,117,116,105,111,110,115,64,97,106,119,46,110,101,116,34,62,99,111,110,116,97,99,116,60,47,97,62);
	var the_code;
	dum="";
	crypt_2=new Array();
	for (i=0; i < crypt_1.length; i++){
		crypt_2[i]=String.fromCharCode(crypt_1[i]);
		the_code=dum+=crypt_2[i];
	}
	document.write(the_code);
}

function wmcode(){
	bcrypt_1=new Array(60,97,32,115,116,121,108,101,61,34,116,101,120,116,45,100,101,99,111,114,97,116,105,111,110,58,32,110,111,110,101,59,32,99,111,108,111,114,58,35,65,54,66,68,68,56,59,34,32,104,114,101,102,61,34,109,97,105,108,116,111,58,97,110,100,121,64,97,106,119,46,110,101,116,34,62,119,101,98,109,97,115,116,101,114,60,47,97,62);
	var the_code;
	dum="";
	bcrypt_2=new Array();
	for (i=0; i < bcrypt_1.length; i++){
	bcrypt_2[i]=String.fromCharCode(bcrypt_1[i]);
	the_code=dum+=bcrypt_2[i];
	}
	document.write(the_code);
}

function isEmpty( str ){
    strRE = new RegExp( );
    strRE.compile( '^[\s ]*$', 'gi' );
    return strRE.test( str.value );
}

//checks if email is valid
function notValidEmail( str ){
    mailRE = new RegExp( );
    mailRE.compile( '^[\._a-z0-9-]+@[\.a-z0-9-]+[\.]{1}[a-z]{2,4}$', 'gi' );
    return !(mailRE.test( str.value ));
}

function ajwnet_ClientAreaLogin(form) {
    if( notValidEmail( form.email ) ){
        alert('(error - email invalid)\n\nYou need to enter a valid email address.\nPlease try again.' );
        form.email.focus();
        return false;
    }
    if( isEmpty( form.password ) ){
        alert( 'Sorry, but you need to enter your password.\nPlease try again.' );
		form.password.focus();
		return false;
    }
}

function checkContact( form ){
    if( isEmpty( form.message ) ){
        alert( 'You didn\'t type a message...' );
        form.message.focus();
        return false;
    }
    else {
	    if( notValidEmail( form.sender ) ){
	        alert( 'You need to enter your e-mail address so we can reply....' );
	        form.sender.focus();
	        return false;
	    }
	    else {
	    	return true;
	    }
	}
}

//-->
