
function checkForm() {
	document.theform.button.disabled = true;
	toggleInfo();
	
	if (document.theform.body.value.length > 5) {
		hideAlert();
		document.theform.action = "post.php";
		document.theform.submit();
	}
	else {
		showAlert();
		document.theform.button.disabled = false;
	}
}

function showAlert() {
	a = document.getElementById("alert");
	if (a) a.style.display = "block";
}

function hideAlert() {
	a = document.getElementById("alert");
	if (a) a.style.display = "none";
}


function captureForm() {
	//nothing
}

function init() {
	// setup label recognition for Safari
	getForms()
	
	
	// don't use javascript for cookies... use PHP
	/*  
	thename = getChip("ixda","name");
	theemail = getChip("ixda","email");

	recall = false;
	
	if (thename!="" && thename!=undefined && document.theform.name.value=="") {
		document.theform.name.value = thename;
		
		recall = true; 
	}

	if (theemail!="" && theemail!=undefined && document.theform.email.value=="") {
		document.theform.email.value = theemail;
		
		recall = true;
	}
	*/
	
	

	
}

function saveInfo(item,value) {
	//setChip("ixda",item,value);
}


function toggleInfo() {
	if (document.theform.name.value!="") {
		//saveInfo("name",document.theform.name.value);
	}
	if (document.theform.email.value!="") {
		//saveInfo("email",document.theform.email.value);
	}
}

