function setForm() {
		checkPositionType();
		checkVendorType();
		checkHeardThrough();
}

//IF JAVASCRIPT IS NOT ENABLED, THIS WILL NOT RUN AND THE VALUE OF "javascriptEnabled" WILL REMAIN "no"
function javascriptStatus() {
		document.videoReqForm.javascriptEnabled.value = "yes";
		}

function checkPositionType() {
	if (document.videoReqForm.typeOfVisitor.value == "Vendor (Non-Construction)") {
		document.getElementById("vendordropdown").style.display='block';
		document.getElementById("otherPositionTypediv").style.display='none';
		}
	else if (document.videoReqForm.typeOfVisitor.value == "Other") {
		document.getElementById("otherPositionTypediv").style.display='block';
		document.getElementById("vendordropdown").style.display='none';
		document.getElementById("specificvendor").style.display='none';
		}
	else {
		document.getElementById("otherPositionTypediv").style.display='none';
		document.getElementById("vendordropdown").style.display='none';
		document.getElementById("specificvendor").style.display='none';
		}
}

function checkVendorType() {
	if ((document.videoReqForm.vendortype.value == "Other") && (document.videoReqForm.typeOfVisitor.value == "Vendor (Non-Construction)")) {
		document.getElementById("specificvendor").style.display='block';	
		}
	else {
		document.getElementById("specificvendor").style.display='none';
		}
}

function checkHeardThrough() {
	if (document.videoReqForm.heardThrough.value == "Other") {
		document.getElementById("otherHeardThroughdiv").style.display='block';	
		}
	else {
		document.getElementById("otherHeardThroughdiv").style.display='none';
		}
}