// JScript source code

var strGMCText = "GMC Number here"

function DoOnLoad() {
	var objForm = document.Form1;

	if (document.all("lblFax1")) {
		document.all("lblFax1").style.visibility = "hidden";
		document.all("lblFaxNumber").style.visibility = "hidden";
		document.all("lblFax2").style.visibility = "hidden";

	}
	if (objForm.txtGMC && objForm.txtGMC.value != strGMCText) {
		objForm.txtGMC.disabled = false;
	}
	if (objForm.RadiobuttonlistOther && objForm.RadiobuttonlistOther.checked) {
		objForm.dropOther.disabled = false;
	}
}

function ShowGMC() {
	var objForm = document.Form1; 
	
	objForm.txtGMC.disabled = false;
	if (objForm.txtGMC.value == "") {
		objForm.txtGMC.value = strGMCText
	}
	objForm.RadiobuttonlistOther_0.checked = false;
	objForm.dropOther.disabled = true;
	objForm.dropOther.selectedIndex = 0;
	document.all("lblFax1").style.visibility = "hidden";
	document.all("lblFaxNumber").style.visibility = "hidden";
	document.all("lblFax2").style.visibility = "hidden";
}

function ShowOther() {
	var objForm = document.Form1;
	
	objForm.txtGMC.disabled = true;
	objForm.txtGMC.value = strGMCText
	objForm.txtGMC.style.backgroundColor = "Transparent";
	objForm.dropOther.disabled = false;
	document.all("lblFax1").style.visibility = "visible";
	document.all("lblFaxNumber").style.visibility = "visible";
	document.all("lblFax2").style.visibility = "visible";
	
	for (var i=0; i<objForm.elements.length; i++) {
		if (objForm.elements[i].name.indexOf("RadioButtonListGrade") != -1) {
			objForm.elements[i].checked = false;
		}
	}
}

function GMCOnclick(objText) {
	if (objText.value == strGMCText) {
		objText.value = "";
	}
}




