﻿function Translate(word, culture)
{
	if (culture == undefined)
		culture = '';
		
	if (window.XMLHttpRequest)
		xmlhttp = new XMLHttpRequest();
	else
		xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');

	xmlhttp.open('GET', '/Utils/Translator.aspx?culture=' + culture + '&word=' + word, false);
	xmlhttp.send();

	return xmlhttp.responseText;
}
