function filterNANSymbols(e, control) {
	var permittedCodes = new Array(8, 9, 35, 36, 37, 38, 39, 40, 46, 13, 27,
			48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 44, 46);
	var code = e.keyCode || e.which;
	// alert(code);
	var isPermitted = false;
	for ( var i = 0; i < permittedCodes.length; i++) {
		if (code == permittedCodes[i]) {
			isPermitted = true;
			break;
		}
	}
	if (!isPermitted) {
		// alert(control.value);
		control.value = control.value.substring(0, control.value.length - 1);
	}

	return isPermitted;
}

function adjustSize(){
	var obj = document.getElementById('viewUserDetailsDiv');
	var myWidth = 0, myHeight = 0;
	if (typeof (window.innerWidth) == 'number') {
		// Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if (document.documentElement
			&& (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		// IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if (document.body
			&& (document.body.clientWidth || document.body.clientHeight)) {
		// IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	myWidth -= 100;
	myHeight -= 120;
	obj.style.width = myWidth + 'px';
	obj.style.height = myHeight + 'px';
	
	var obj1 = document.getElementById('userDetailsPanel');
	obj1.style.top = 1 + 'px';
	obj1.style.left = 1 + 'px';
	 
	//alert(obj.style.width);
	//window.alert('Width = ' + myWidth + '   Height = ' + myHeight);
}
