function check()

	{
	var e1 = document.frmAddGuest.comments.value;
	var e2 = document.frmAddGuest.realname.value;
	var e3 = document.frmAddGuest.username.value;
	var e4 = document.frmAddGuest.city.value;
	var e5 = document.frmAddGuest.state.value;				
	var e6 = document.frmAddGuest.country.value;	
	var where = -1;
	var one = -1;

	where = e1.indexOf('.com');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	
		
	where = e2.indexOf('.com');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			

	where = e4.indexOf('.com');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			

	where = e5.indexOf('.com');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	

	where = e6.indexOf('.com');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}					
		

	where = e1.indexOf('.net');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	
		
	where = e2.indexOf('.net');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			
		

	where = e4.indexOf('.net');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			

	where = e5.indexOf('.net');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	

	where = e6.indexOf('.net');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			
		

	where = e1.indexOf('www');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	
		
	where = e2.indexOf('www');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			
		
	where = e4.indexOf('www');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			

	where = e5.indexOf('www');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	

	where = e6.indexOf('www');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}				

	where = e1.indexOf('http');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	
		
	where = e2.indexOf('http');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			
		

	where = e4.indexOf('http');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}			

	where = e5.indexOf('http');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}	

	where = e6.indexOf('http');
	if (where != one) {
		alert("Inapproprate text is not permitted in the guestbook");
		return false;
		}		

		
	}
