function NewWindow(	sPageName,
			sURL,
			iXpos,
			iYpos,
			iWidth,
			iHeight,
			bScrollbars,
			bResizable
		  )
{

	if(bResizable == null)
		bResizable = 0;

	var sHTML	= "toolbar=no,"
			+ "location=no,"
			+ "directories=no,"
			+ "status=no,"
			+ "menubar=no,"
			+ "fullscreen=no,"
			+ "resizable=" + bResizable + ","
			+ "left=" + iXpos + ","
			+ "top=" + iYpos + ","
			+ "width=" + iWidth + ","
			+ "height=" + iHeight + ","
			+ "scrollbars=" + bScrollbars;
	var w = window.open( sPageName, sURL, sHTML );
	w.focus();

}

function convertDecimal(field)
{
	var value = field.value;

	// replace . with ""
	var newValue1 = value.replace(/\./,"");
	// replace , with .
	var newValue2 = newValue1.replace(/,/,".");

	field.value = newValue2;
}

Array.prototype.inArray = function (value)
{
	var i;
	for (i=0; i < this.length; i++) {
		if (this[i] == value) {
			return true;
		}
	}
	return false;
};
