function showAlert(wintitle,winmsg,msgtype) {
	var extMsgType = Ext.Msg.INFO;
	if ( typeof(msgtype) != 'undefined') {
		switch ( msgtype ) {
			case 'error' :
				extMsgType = Ext.Msg.ERROR;
				break;
			case 'warning' :
				extMsgType = Ext.Msg.WARNING;
				break;
			case 'question' :
				extMsgType = Ext.Msg.QUESTION;
				break;
			default:
				extMsgType = Ext.Msg.Info;
		}
	}
	Ext.Msg.show({
		title: wintitle,
		msg: winmsg,
		width: 250,
		buttons: Ext.MessageBox.OK,
		icon: extMsgType
	});
}
