// JavaScript Document
function CheckTextValue( obj, msg){
	
	if( obj.value.length < 1 ){
		alert( msg );
		obj.focus();
		return false;
	}
	
	return true;
}// end of CheckTextValue

function TestSend(){

	sendForm.sendall.value = "test";

	if( !CheckTextValue( sendForm.temail, "Input Test Email address." ) ){
		return;
	}
	if( !CheckTextValue( sendForm.to, "Input To address" ) ){
		return;
	}

	if( !CheckTextValue( sendForm.from, "Input from" ) ){
		return;
	}

	if( !CheckTextValue( sendForm.title, "Input title" ) ){
		return;
	}
	
	sendForm.submit();
	
}// end of TestSend

function CheckValues(){
	
	if( !CheckTextValue( sendForm.to, "Input To address" ) ){
		return;
	}

	if( !CheckTextValue( sendForm.from, "Input from" ) ){
		return;
	}

	if( !CheckTextValue( sendForm.title, "Input title" ) ){
		return;
	}
	
	sendForm.submit();
	
}// end of CheckValues
