function validateNumbers(what) {   

    for (var i=0, len=what.value.length, valid='0123456789.' ; i<len ; i++) {
        if (valid.indexOf(what.value.substring(i,i+1)) == -1) {
            alert('Please enter a numeric value!');
			what.focus();
            return;
			}
		}  
	}

function validateFields(what, next, fLen) {
    if (what.length == fLen) 
		{
			//next = 'document.frm_User.' + next
			eval('document.frm_IME.' + next + '.value = \'\';');
			eval('document.frm_IME.' + next + '.focus();');		
		}    
	}

var widthNum
var heightNum
function openWindow(url, name, widthNum, heightNum, scrollInd) 
{
	windowFeatures = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollInd + ',top=0,left=0,resizable=no,width=' + widthNum + ',height=' + heightNum;
	window.open (url , name, windowFeatures);
}
