function OpenWindow(szURL)
{
	if(szURL != '')
	 {
		window.open(szURL); 
	 }
}

function OpenFullWindow(szURL)
{
	var szFeatures;
	szFeatures = "menubar=0,toolbar=0,status=1,resizable=1, scrollbars=1";
	
	if(szURL != '')
	 {
		window.open(szURL, 1, szFeatures); 
	 }
}

function CloseWindow()
{
	window.close();
}

function OpenInParentWindow(szURL)
{
	if(szURL != '')
	 {
		window.opener.location = szURL; 
	 }
}

function ShowDialog(szURL, nID, nHeight, nWidth)
{
	var szFeatures;
	szFeatures = "height=" + nHeight + ",width=" + nWidth;
	szFeatures = szFeatures + "resizable=no, scrollbars=no";
	
	if(szURL != '')
	 {
		window.open(szURL, nID, szFeatures); 
	 }
}
function ShowScrollResizeableDialog(szURL, nID, nHeight, nWidth)
{
	var szFeatures;
	szFeatures = "height=" + nHeight + ",width=" + nWidth;
	szFeatures = szFeatures + "resizable=1, scrollbars=yes";
	
	if(szURL != '')
	 {
		window.open(szURL, nID, szFeatures); 
	 }
}
function ShowScrollDialog(szURL, nID, nHeight, nWidth)
{
	var szFeatures;
	szFeatures = "height=" + nHeight + ",width=" + nWidth;
	szFeatures = szFeatures + "resizable=no, scrollbars=yes";
	
	if(szURL != '')
	 {
		window.open(szURL, nID, szFeatures); 
	 }
}

function ShowURLInParent(szURL)
{
	
	if(szURL != '')
	 {
		parent.location = szURL; 
	 }
}