/*Label message device*/
function DisableText (image, value, state) {
	for (i = 1; i <= 3; i++) {
		document.getElementById("TextCaption"+value+""+i+"").disabled = state;
		if (state) {
		document.getElementById("Caption"+value+""+i+"").innerHTML = '';
		} else {
		document.getElementById("Caption"+value+""+i+"").innerHTML = document.getElementById("TextCaption"+value+""+i+"").value;
		document.getElementById(image).innerHTML = '';
		}
	}
	mainImg = image.substring(3);
}

function changeFont(value, Location) {
	document.getElementById(Location).style.fontFamily = value;
	document.getElementById('label_1').style.fontFamily = value;
}

function changeFontSize(value, Location) {
	document.getElementById(Location).style.fontSize = value;
}

function changeFontColour(value, Location) {
	document.getElementById(Location).style.color = value;
	document.getElementById('label_1').style.color = value;
}

function CopyText(Location, textbox, RemoveImg) {
	var Box = document.getElementById(Location);
	var TextBox = document.getElementById(textbox);
	document.getElementById(RemoveImg).innerHTML = '';
	newstr = TextBox.value.replace(/</g,"&lt;");
	newstr = newstr.replace(/\r\n/g,"<BR>");
	newstr = newstr.replace(/\n\r/g,"<BR>");
	newstr = newstr.replace(/\r/g,"<BR>");
	newstr = newstr.replace(/\n/g,"<BR>");
	newstr = newstr.replace(/&/g,"&amp;");

	Box.innerHTML = newstr;
	mainImg = RemoveImg.substring(3);
}
