<!--

function NewWindow(url) {
  nwin = window.open(url, "_nwin")
}

function NewWindowSize(url,h,w) {
var adjHeight, adjWidth;
  if (navigator.appName == 'Netscape') {
	adjWidth = w + 20;
	adjHeight = h + 20;
  }
  else {
	adjWidth = w + 50;
	adjHeight = h + 150;	
  }
  
  nwin = window.open(url, "_DB", "width=" + adjWidth + ",height=" + adjHeight + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes");
  
}

function setBody(str) {
	if (parent.frames.Body) {
		parent.frames.Body.location.href = str;
	}
	else {
		location.href = str;
	}
	
}

function getObject(name) {
	if (document.getElementById) {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	}
	else if (document.all) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	}
	else if (document.layers) {
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
return this.obj
}

function isValidObject(obj) {
	if (obj==null || obj==undefined) { return false; }
	else { return true; }
}


function showILink(url) {
	openPopupLink(url,"_ilink",500,300)
}

function openPopupSubmit(frmName,targetName,width,height) {
if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else 
            var xMax = 640, yMax=480;

    var xOffset = (xMax - 200)/2
    var yOffset = (yMax - 200)/2;
    var sFeatures = "width="+width+",height="+height+",left="+xOffset+",top="+yOffset+",toolbar=0"

	window.open("",targetName,sFeatures);
	var a = window.setTimeout("document."+frmName+".submit();",1);
}


function openPopupLink(url,targetName,width,height) {
if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else 
            var xMax = 640, yMax=480;

    var xOffset = (xMax - 200)/2
    var yOffset = (yMax - 200)/2;
    var sFeatures = "width="+width+",height="+height+",left="+xOffset+",top="+yOffset+",toolbar=0"

	window.open(url,targetName,sFeatures);
	//var a = window.setTimeout("document."+frmName+".submit();",1);
}

function retRefresh() {
	parent.frames.Body.location.reload();

}

function initGrid() {
	var listgrid = new dhtmlXGridFromTable('tblToGrid');
	listgrid.setSkin("modern")
	listgrid.enableAutoWidth(true)
	listgrid.enableAutoHeight(true,500)
	listgrid.setSizes();
	
	//var mygrid = new dhtmlXGridObject('tblToGrid')
	//mygrid.attachHeader(" ,#combo_filter,#combo_filter");
	//mygrid.init();
}

//-->