function OpenNormalPage(url)
{
	window.open(url, "", "");
}

function OpenWindow(url, name, options)
{
	window.open(url, name, options);
	return;
}

function OpenPopUp(url, w, h)
{
	return OpenWindow(url, 'popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h);
}

function OpenPopUpWithScroll(url, w, h)
{
	return OpenWindow(url, 'popup', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h);
}

function OpenPopUpResizable(url, w, h)
{
	return OpenWindow(url, 'popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=' + w + ',height=' + h);	
}

function OpenPopUpParams(url, params)
{
	return OpenWindow(url, 'popup', params);	
}

function includeExternalJsFile(file)
{
  var script  = document.createElement('script');   
  script.src  = file;   
  script.type = 'text/javascript';   
  script.defer = true;   

  document.getElementsByTagName('HEAD').item(0).appendChild(script);  
}

includeExternalJsFile('app_fge.js');
