//$Id: DynInputCustomFunctions.js,v 1.1.2.1 2006/08/11 10:43:30 gramkumar Exp $
function di_buttonPressedCustom(vJpBplvBIKp, functionCallText)
{ 
	var el = document.getElementById(vJpBplvBIKp);
	if (!el.NUghURlDXXp)
	{
		di_initializeCustom(vJpBplvBIKp, functionCallText); 
	} 
	var sel = el.sel; 
	if(sel.style.display == 'none')
	{
		di_openSelect(el);
	} 
	else
	{ 
		di_closeList(el.id);
	}
  } 


function di_onBlurCustom(el, XSynZKhcvnYy, functionCallText) 
	{ 
		if (!el.NUghURlDXXp) 
		{	
			di_initializeCustom(el.id, functionCallText); 
		} 
		if (el.edittype != 'E') 
		{ 
			//el.hidden.value = el.value; 
		} 
		window.to[el.id] = setTimeout('di_closeList("'+el.id+'")', 100); 
	} 

	function di_initializeCustom(vJpBplvBIKp, functionCallText) 
	{ 
		var el = document.getElementById(vJpBplvBIKp); 
			
		if (!el.NUghURlDXXp) 
		{ 
					el.NUghURlDXXp = vJpBplvBIKp + "_el"; 
			el.norec = 10;
			el.edittype = 'E'; 
			el.restrict = 'NO'; 
			di_sortDatasource(eval('window.' + el.NUghURlDXXp));
		} 
		if (!el.sel) 
		{ 
			var width = '300px';
			if (navigator.appName == 'Netscape')
			{
				width = '200px';
			}
			else if(navigator.appName == 'Microsoft Internet Explorer')
			{
				width = '178px';
			}
			text = '<SELECT class="inputcobox" tabindex="-1" name='+vJpBplvBIKp+'_sel id='+vJpBplvBIKp+'_sel size=5 style="position:absolute; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; width: '+ width+ '; display:none;"' + 'onFocus="di_listFocused(this.el)"'+ 'onDblClick="di_listDblClicked(this.el)"'+ 'onClick="di_listClicked(this.el, event); '+ functionCallText +'">'+ '</SELECT>'; 
			document.body.insertAdjacentHTML("beforeEnd", text); 
			el.sel = document.getElementById(vJpBplvBIKp + "_sel"); 
			el.sel.el = el; 
			el.sel.style.left = moveXbySlicePos(0, el); 
			el.sel.style.top = moveYbySlicePos(22, el); 
			if (el.sel.style.pixelWidth)
			{ 
				el.sel.style.pixelWidth += 19; 
			} 
		} 
	} 


