function browseForFile(){
	document.flashForm.upload_file_name.click();
}
function contentChange(){
	window.document.flash.setVariable("_root.fileName", flashForm.upload_file_name.value);
}
function hideAdmin(){
	document.flashForm.style.visibility = "hidden";
}
function showAdmin(){
	document.flashForm.style.visibility = "visible";
}
function uploadEnd(){
	newUID();
}
function createUID(){
	randName = "UID";
	letters = "qwertyuiopasdfghjklzxcvbnm";
	nums = "1234567890";
	numsTotal = nums.length;
	lettersTotal = letters.length;
	for(a=0;a<4;a++){
		randName += nums.charAt(Math.round(Math.random()*numsTotal));
	}
	for(a=0;a<4;a++){
		randName += letters.charAt(Math.round(Math.random()*lettersTotal));
	}
	for(a=0;a<3;a++){
		randName += nums.charAt(Math.round(Math.random()*numsTotal));
	}
	for(a=0;a<3;a++){
		randName += letters.charAt(Math.round(Math.random()*lettersTotal));
	}
	return randName;
}
function newUID(){
	document.flashForm.mediaid.value = createUID();
}
function uploadImgStart(){
	window.document.flash.TCallLabel("_root", "uploadImgStart");
}
