var transmitted = 0


function countme() {
	var msgString = document.theForm.description.value;
	var msg = msgString.length;
	document.theForm.count.value = 256 - msg;
}

function newsite(openName,h,w){
        var newWindow=window.open(openName, "formbc", "left=0,top=0,status=1,alwaysRaised=1,scrollbars,toolbar=0,menubar=1,location=0,resizable,height=" +h+ " ,width=" +w+ '"')
        newWindow.focus()
}

function checkFields(){
	if (document.theForm.count.value < 0){
	alert('Your description must be less than 256 characters')
	document.theForm.description.focus()
	return false;
}

if (document.theForm.email.value.indexOf("@") == -1 ||
	document.theForm.email.value == ""){
	alert("Please enter a valid email address (you have not entered an @ sign)");
	document.theForm.email.focus();
	return false;
}
if (document.theForm.email.value.indexOf(".") == -1 ||
	document.theForm.email.value == ""){
	alert("Please enter a valid email address (you have not entered a full stop anywhere)");
	document.theForm.email.focus();
	return false;
}

newsite('http://www.sussexfind.co.uk/blank.php',500,550)
return true;
}
