//functions needed to run omnibaby

function countrun() {
var OmniCount = getCookie('OmniBabyCount');
		if (OmniCount == null) {
			OmniCount = 1;
		}
		else {OmniCount++;}
		var expyear = new Date();                         // make new date
		expyear.setTime(expyear.getTime() + (1000 * 60 * 60 * 24 * 365 * 2)); // set it 2 years ahead
		setCookie ('OmniBabyCount', OmniCount, expyear);
}

function subfunc(formvalue) {
if (document.thequestion.question.value=="") {
alert('Please type a question.');
return;
}
countrun()
var exp = new Date();                         // make new date
exp.setTime(exp.getTime() + (1000 * 60 * 6)); // set it 6 minutes ahead

if (getCookie("OmniBaby1") != "")
{ delCookie("OmniBaby1"); }

setCookie("OmniBaby1",formvalue,exp);
window.location="answer.htm";
 }
