var NI = ('undefined' == typeof(NI)) ? {} : NI;

var DOM = document.getElementById ? true : false;
var ie = document.all ? true : false;

function openWin (url, name, w, h, scroll, status) {
	if (!NI.Utility || !NI.Utility.openPopup) {
		throw new Error('NI.Utility.openPopup() not found');
	} else {
		return NI.Utility.openPopup({
			'name'     : name,
			'url'      : url,
			'settings' : {
				'width'      : w,
				'height'     : h,
				'scrollbars' : scroll,
				'status'     : status
			}
		});
	}
}

//getting element
function getElement(name) {
	if (ie) { return document.all[name]; }
	 else if(DOM){ return document.getElementById(name); }
		  else { return document.name; }
}

function resizeCaller() 
{
	// for compatibility
}