﻿function pot() {
	var pot = document.location.protocol + '//' + document.location.host;
	pot += document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/'))
	if (pot.indexOf('/urejevalnik') > 0) {
		pot = pot.substring(0,pot.length-12)
	}
	return pot;
}