
function rot(n,text) 
{
	var s = ""

	for (x=0;x<text.length;x++) {
		b = text.charCodeAt(x)
		c = (b & 32)
		b = (b & ~c)

		if ((b>=65) && (b<=90)) {
		  b = ((b-65+n)%26+65)
		}

		b = (b | c)
		s += String.fromCharCode(b)
	}

	return s
}








