//Copyright  2009. Creative Lifeform All rights reserved.
//Code written by Rohan Deshpande for Creative Lifeform.

//requires moomore + MOO FORMCHECK

//---------------------------------------------------------------------------------------------------------

//HASHIN!		

document.addEvent('domready' , function ()
{
	

	var check	=	new FormCheck('contactform',
					{
						submitByAjax:true,
						ajaxResponseDiv:'responder',
						onAjaxRequest:function(response)
						{
							$('responder').set('html','sending your message, hold tight!');
						},
						onAjaxFailure:function()
						{
							$('responder').set('html','sorry there was an error sending your message');
						},
						onAjaxSuccess:function(response)
						{
							$('contactform').reset();
						},
						display:
						{
							scrollToFirst:false,
							tipsPosition:'right',
							tipsOffsetY:45
						},
						alerts:
						{
							email:'Please enter a valid email'
						}
					});

});