﻿

// open help window
function openHelp(vLink, vHeight, vWidth, vScrollbar)
{   
    var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;
	
	if (sLink == '')
	{
		return false;
	}

	winDef = 'status=no,resizable=yes,toolbar=no,location=no,fullscreen=no,titlebar=no,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(',').concat('scrollbars=').concat(vScrollbar).concat(',');
	
 
	winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
	winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
	 
	newwin = open(sLink, '_blank', winDef);
	 	
	//newwin.location.href = sLink;

	if (typeof(vLink.href) != 'undefined')
	{
		return false;
	}
	return false;
}

function redirect_to_parent()
{ 
    setTimeout("redirect_to_parent_no_delay()", 1000)
}

function redirect_to_parent_no_delay()
{
    var w = window.opener;
    window.close(); 
    w.location.replace(w.location.href);
    
} 
