window.addEvent('domready', function(){
	new FormCheck('schip_signup',{
		submitByAjax: true,
		onAjaxSuccess: completeAjax,
		display : {
			closeTipsButton : 0,
			flashTips : 1,
			scrollToFirst : true
		}
	});
	function completeAjax() {
		window.location='/main';
	}
	$$('.signuptext').addEvent('focus', function(i) {
		if (i.target.value == i.target.getAttribute('ref')) {
			i.target.value = '';
		};
	});
	$$('.signuptext').addEvent('blur', function(i) {
		if (i.target.value == '') {
			i.target.value = i.target.getAttribute('ref');
		};
	});
});