function postTo( form, path )
{
	var schema = "https";
	var host = "";
	var root = "";


	var url = document.location.href;
	if( url != null )
	{
		var array = url.split('/');
		host = array[2];

		array = path.split('/');
		root = array[1];
	}

	if( root != null )
	{
		if( root.toLowerCase() == "events" || root.toLowerCase() == "profile" )
			schema = "http";

	}

	if( host.indexOf("event-marketing") <= 0 )
	{
		schema = "http";
	}
	
	form.action = schema + '://' + host + path
	form.submit();
	
}
