function onSendContactEmail(frmID, msgDiv,page)
{
	var newId = '';
	var checkID = null;
	var content = null;
	$(frmID).request(
		{
			asynchronous: false,
			parameters: $(frmID).serialize(true),
	  		onComplete: function(transport)
	  		{ 
			  	var response = transport.responseText || "";
				var pos=response.indexOf('<!');
				content=response.substring(1,pos);
		    	//alert(content);
		    	$(msgDiv).innerHTML = '';
				
		    	if(content != "")
		    	{
		    		obj = content.evalJSON();
		    		if(obj == null)
		    		{
		    			$(msgDiv).update('Something wrong! Reponsed string is: ' + content);
		    		}
					checkID = obj.ID;
			
			    	if(msgDiv != null)
					{
						if(checkID != 0)
						{
				    		$(msgDiv).update(obj.message);
						}
					}
				}

	  		}
		});
	if(checkID != 0)
	{
		$(msgDiv).style.display = 'block';
		Fat.fade_element(msgDiv, null, 1500, null, null);
	}
	else
	{
		document.location=page;	
	}
	return false;
}
