

// note: classified search is in search.js


function loadClassifiedAdImage(index, articleId, articleUrl, id) {
	new Ajax.Request(articleUrl, {
	method: 'get',
	parameters: {
		service: 'ajaxSwitch',
		type: 'classifiedsImage',
		articleId: articleId,
		targetId: id,
		index: index
	},
	onSuccess: function(transport) {
		$(id).innerHTML = transport.responseText;
	}
	});
}

function submitContactForm() {
	$('classifieds-contactform-form').request({
		method: 'post',
  		onComplete: function(transport) {
  			$('classifieds-contactform').innerHTML = transport.responseText;
  		}
	});
}