function PopHelp(URL)
{	
	winSpecs = "toolbar=0,scrollbars=1,width=425,height=425";
  
	HelpWin = window.open( URL, 'Help', winSpecs );
	
	HelpWin.focus();

}

function getDomain ()
{
  //return "http://localhost/local"
  //return "http://localhost/direct_local"
  //return "http://btcap01/direct_dev"
  //return "https://direct.brewster.ca/direct"
}

function SetDate(formName, id, newDate, postBack)
{
	eval('var theform = document.' + formName + ';');
	popUp.close();
	theform.elements[id].value = newDate;
	if (postBack)
		__doPostBack(id,'');
}


function OpenCalendar(idname, postBack)
{
	popUp = window.open('Calendar.aspx?formname=' + document.forms[0].name + 
		'&id=' + idname + '&selected=' + document.forms[0].elements[idname].value + '&postBack=' + postBack, 
		'popupcal', 
		'width=165,height=218,left=200,top=250');
}	

function SetValue(formName, id, newDate, postBack)
{
	eval('var theform = document.' + formName + ';');
	popFind.close();
	theform.elements[id].value = newDate;
	if (postBack)
		__doPostBack(id,'');
}	




