	var msg='';
	
	
	var #lookupkey#=o#lookupkey#.value2;
	if (!#lookupkey#&&!o#lookupkey#.disabled){ //remove the second clause to enforce the field
		msg="pick a #c_record# from the list\n";
		valid=0;
		offender=offender||o#lookupkey#;
	}
	
	if (msg!='') alert(msg);
	
	//...
	
	if (!#lookupkey#) {if (o#lookupkey#.disabled) #lookupkey#=0; else #lookupkey#=-1;}