function displayResized(){
	var size = displaySize();
	var content = document.getElementById("fContent");
	content.style.width = (size[0] < 1000) ? "1000px" : size[0] + "px";
	content.style.height = (size[1] < 620) ? "620px" : size[1] + "px";
}

function displaySize(){
	var size = [0, 0];
	if (typeof window.innerWidth != "undefined") {
		size = [window.innerWidth-15, window.innerHeight-10];
	}
	else 
		if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0) {
			size = [document.documentElement.clientWidth-15, document.documentElement.clientHeight-10];
		}
		else {
			size = [document.getElementsByTagName("body")[0].clientWidth-15, document.getElementsByTagName("body")[0].clientHeight-10];
		}
	
	return size;
}

function uniqueID(lng){
	var str = "";
	var b = "";
	if (!lng) {
		var lng = 40;
	}
	for (var i = 0; i < lng; i++) {
		b = Math.round(Math.random() * 36).toString(36);
		str += Math.round(Math.random() * 2) ? b.toUpperCase() : b.toLowerCase();
	}
	return str;
}