// JScript source code
function openWin(l_sUrl,winWidth,winHeight){
	var thisL = (screen.width - winWidth) / 2;
	var thisT = (screen.height - winHeight) / 2;
	var loc = ',left='+thisL+',top='+thisT;
	var winSize = 'width='+winWidth+',height='+winHeight;
	var thisWin = window.open(l_sUrl,'',winSize+',status=no,toolbar=no,location=no'+loc);
}
function selectRadio(l_qnum,l_val){
	//select radio buttons routine
	if (l_val==''){return false;}
	aInputs = document.getElementsByTagName("INPUT");
	for (aCounter=0;aCounter<aInputs.length;aCounter++){
		if (aInputs[aCounter].type=='radio' && aInputs[aCounter].name==l_qnum){
			if (aInputs[aCounter].value==l_val){
				aInputs[aCounter].checked=true;
			}
		}
	}
}

function selectDropDown(l_qnum,l_val){
	//select dropdown routine
	if (l_val==''){return false;}
	aSelect = document.getElementsByTagName("SELECT")
	for (aCounter=0;aCounter<aSelect.length;aCounter++){
		if (aSelect[aCounter].name==l_qnum){
			for (optionCounter=0;optionCounter<aSelect[aCounter].length;optionCounter++){
				if (aSelect[aCounter][optionCounter].value==l_val){
					aSelect[aCounter].selectedIndex=optionCounter;
				}
			}
		}
	}
}
