function adjustImageEffect() {
	var effectr = document.imform.effect[0].checked;
	var effectb = document.imform.effect[1].checked;
	
	if(effectr) {
		document.getElementById('binarylabel').innerHTML = "";
		document.getElementById('binaryopt1').innerHTML = "";
		document.getElementById('binaryopt2').innerHTML = "";
		document.getElementById('binarytext').innerHTML = "";
	} else {
		document.getElementById('binarylabel').innerHTML = '<b>Binary Options</b>';
		document.getElementById('binaryopt1').innerHTML = 'Random Binary<input type="radio" name="binaryoption" value="random" checked onClick="adjustBinaryOptions()"/>';
		document.getElementById('binaryopt2').innerHTML = 'Text<input type="radio" name="binaryoption" value="usertext" onClick="adjustBinaryOptions()"/>';
	}
}

function adjustBinaryOptions() {
	var binaryor = document.imform.binaryoption[0].checked;
	var binaryot = document.imform.binaryoption[1].checked;
	if(binaryot) {
		document.getElementById('binarytext').innerHTML = '<textarea name="binarytext" rows="10" cols="75">If you would like to have it display your own text, type it here. It will repeat this area if you do not have enough to fill it.</textarea>';
	} else {
		document.getElementById('binarytext').innerHTML = "";
	}
}

function adjustLayoutMenu() {
	var layout = document.layout.layout.value;
	var currentopacity = document.layout.currentopacity.value;
	
	if(layout == "0") {
		document.getElementById('layoutsettings').innerHTML = 'Opacity: <input type="text" name="opacity" size="3" value="' + currentopacity + '"><br>';
	} else {
		document.getElementById('layoutsettings').innerHTML = '';
	}
}
