function ismaxlength(obj) {
	var mlength = obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "";
	if (obj.getAttribute && obj.value.length>mlength)
		obj.value=obj.value.substring(0,mlength);
}

function openPopupWindow(strUrl, strWindowName, paramWidth, paramHeight, paramScrollbars, paramresizable) {
	var objNewWin;
	var strWindowFeatures;
	strWindowFeatures = 'width='+paramWidth+',height='+paramHeight+',scrollbars='+paramScrollbars+',resizable='+paramresizable+',status=0,toolbar=0,menubar=0,location=0,directories=no'
	objNewWin = window.open(strUrl, strWindowName, strWindowFeatures);
	if (objNewWin != null) {
		objNewWin.focus();
	}
}

function openTipsaEnVan(strPath, pageToOpen) {
	//strPath = strPath.replace(/Bazment/g,"B");
	var strUrl= pageToOpen + '.aspx?path='+escape(strPath)+'&title='+escape(document.title);
	openPopupWindow(strUrl, 'Tipsa', 357, 337, 0, 1);
}

