var ajax = new sack();

function getViews(id) {
	ajax.requestFile = '/ajax/getClicks.php?id='+id;
	ajax.onCompletion = showClicks;
	ajax.runAJAX();
}

function getVViews(id) {
	ajax.requestFile = '/ajax/getVClicks.php?id='+id;
	ajax.onCompletion = showClicks;
	ajax.runAJAX();
}

function showClicks() {
	var obj = document.getElementById('Views');
	eval(ajax.response);
}
