var nField = 0; function ShowList(sPage,nTop,nLeft,nHeight,nWidth,sAssocName,nType,nPtyNo) { var IfrRef = document.getElementById('AssocDropDown'); IfrRef.style.width = nWidth; IfrRef.style.height = nHeight; IfrRef.style.top = nTop; IfrRef.style.left = nLeft; IfrRef.style.zIndex = 0; IfrRef.src = sPage + "?a=" + AlphaNumeric(sAssocName) + "&t=" + nType + "&p=" + nPtyNo; IfrRef.style.display = "block"; } function AlphaNumeric(sBuf) { var sReturn = ""; var sLetter = ""; var sAllow = " abcdefghijklmnopqrstuvwxyz0123456789'"; for (var i=0; i < sBuf.length; i++) { sLetter = sBuf.charAt(i).toLowerCase(); sReturn += sAllow.indexOf(sLetter) == -1 ? " ": sLetter; } return sReturn; } function CloseList() { var IfrRef = document.getElementById('AssocDropDown'); IfrRef.src = "javascript:'';"; IfrRef.style.display = "none"; }