function FocusOnLoad(objId) {
	$(objId).focus();
}

function _doAlert(msg){
	alert(msg);
}

function showError(ErrorDiv,txtDisplay){
	$(ErrorDiv).show();
	$(ErrorDiv).innerHTML = "<div class=\"error\" align=\"center\">"+txtDisplay+"</div>";
}

function showSuccessMsg(ErrorDiv,txtDisplay){
	$(ErrorDiv).show();
	$(ErrorDiv).innerHTML = "<div class=\"message\" align=\"center\">"+txtDisplay+"</div>";
}
function _doMoveCursor(presentElement,futureElement,targetLength) {
	var d = window.document;
	var p = eval("d.getElementById('" + presentElement + "').value.length");
	if(p == targetLength) {
		eval("d.getElementById('" + futureElement + "').focus()");
	}
}
function LoadPopup(getFileName,getWindowName,getHeight,getWidth) {
	var _file = getFileName;
	var _window = getWindowName;
	var _toolbar = 0;
	var _menubar = 0;
	var _status = 1;
	var _resizable = 1;
	var _width = getWidth;
	var _height = getHeight;
	var _top = (screen.height - _height) / 2;
	var _left = (screen.width - _width) / 2;
	var _scrollbars = 1;
	var _condition = "toolbar=" + _toolbar + ",menubar=" + _menubar + ",status=" + _status + ",resizable=" + _resizable;
	_condition+=",width=" + _width + ",height=" + _height + ",left=" + _left + ",top=" + _top + ",scrollbars=" + _scrollbars + "";
	window.open(_file,_window,_condition);
}