function isNull (f,msg) {
	if (f.value == "")
	{
		alert(msg+" ÀÔ·ÂÇÏ¼¼¿ä");
		f.focus();
		return true;
	}
	return false;
}

function isValidNumber(txt) {
 // var val = parseInt(txt);
  if (isNaN(txt) || txt < 0) { return false; }
  return true;
}

function resetImgSize(obj, maxWidth, maxHeight) {
	var obj, maxWidth;
//	obj.style.display = '';
	if (maxWidth) {
//		alert(obj.width);
		if (obj.width > maxWidth) {
			obj.width = maxWidth;
		}

		if (obj.width == 0 )
		{
			obj.width = maxWidth;
		}
	}

	if (maxHeight) {
		if (obj.height > maxHeight) {
			obj.height = maxHeight;
		}
	}
}

function resetWImgSize(obj, maxWidth) {
	var obj, maxWidth;

	if (obj.width > maxWidth) {
		obj.width = maxWidth;
	}
}
