var SIDString = '';

function getRandomLetter() {
	return String.fromCharCode(getRandom(65, 90));
}

function getRandom(lowerBound, upperBound) {
	return Math.floor((upperBound - lowerBound + 1) * Math.random() + lowerBound);
}

function SetSID()
{
	if (SIDString.length > 0)
	{
		return SIDString;
	}

	sidc = 0;

	while (sidc < 32)
	{
		SIDString = SIDString + getRandomLetter();
		sidc++;
	}
	return SIDString;
}