function buildBookFormMenus() {
	var timeListArr = new Array("00","15","30","45"); //array of times for pu do menus
	
	var theForm=document.carform;
	
	//get current pucode to set selected
	matchCode = theForm.pucode.options[0].value;
	matchTime = theForm.putime.options[0].value;
	/*matchCode = theForm.pucode.options[theForm.pucode.options.selectedIndex].value;
	matchTime = theForm.putime.options[theForm.putime.options.selectedIndex].value;*/
	
	//clear old options
	theForm.pucode.options.length = 0;
	theForm.putime.options.length = 0;
	theForm.dotime.options.length = 0;
	
	//loop thru country arrays to build  new options
	for (i=0; i<ctryCodeArr.length; i++){
		if (ctryCodeArr[i] == matchCode) {
			matchCode = null;
			selectItem = true;
			}
		else {			
			selectItem = false;
			}
		theForm.pucode.options[theForm.pucode.options.length] = new Option(ctryNameArr[i],ctryCodeArr[i],false,selectItem);
		}
	
	//loop thru time array to build  new options
	for (i=0; i<24; i++){	if (i < 10)
			{i = '0'+i;}
	
		
		for (x=0; x<timeListArr.length; x++){
			
			formTime = i+":"+timeListArr[x];
			
			if (formTime == matchTime) {
				matchCode = null;
				selectItem = true;
				}
			else {			
				selectItem = false;
				}
			theForm.putime.options[theForm.putime.options.length] = new Option(formTime,formTime,false,selectItem);
			theForm.dotime.options[theForm.dotime.options.length] = new Option(formTime,formTime,false,selectItem);
			}
		}
}

buildBookFormMenus()
