//------------------------------------------------------------------------------
//function popUp(url, win_name, width, height)
//{
//	popWin	=	window.open(url, win_name, "toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=YES, copyhistory=no, scrollbars=Yes, width=" + width + ", height=" + height + ", top=10, left=50");
//	popWin.focus();
//}
//------------------------------------------------------------------------------
function setupCalendar(input_fld, trigger_id)
{
 Calendar.setup(
    {
      inputField  : input_fld,
      ifFormat    : "%Y-%m-%d",
      button      : trigger_id
    }
  );
}
//------------------------------------------------------------------------------

function popup(url,name,prop){
	Hwnd = window.open(url,name,prop);
	Hwnd.window.focus();
}
//------------------------------------------------------------------------------
function controlDiv(id,id1,chkValue,passedValue,chk)
{
	obj = document.getElementById(id);
	obj1 = document.getElementById(id1);
	obj.style.display = "none";
	obj1.style.display = "none";
	if(chkValue == passedValue)
	{
		obj.style.display = "block";
		obj1.style.display = "block";
	}
	if(typeof(chk) == 'object' && !chk.checked) {obj.style.display = "none";}
}
//------------------------------------------------------------------------------
function controlDiv1(id,chkValue,passedValue,chk)
{
	obj = document.getElementById(id);
	obj1=document.getElementById(chkValue);
	obj.style.display = "none";

	if(obj1.checked == 1)
	{	
		obj.style.display = "block";
	}
}
//------------------------------------------------------------------------------
function controlDiv2(id,chkValue,passedValue)
{
	obj = document.getElementById(id);
	obj.style.display = "none";

	if(passedValue == "yes")
	{	
		obj.style.display = "block";
	}
	else if(passedValue == "no"){
		obj.style.display = "none";
	}
}
//------------------------------------------------------------------------------
/*
Submit the form to a popup window
After doing the validation call
openTarget(objForm, 'windowName', width, height);
*/
function openTarget(form, windowName, url, prop) 
{
  form.target = windowName;
  form.action = url;
  //return false;
  //form.submit();
  popup(url, windowName, prop);
  //return false;
  //form.submit();
}
//------------------------------------------------------------------------------
function doBannerAction()
{
	frmBanner.submit();
}
//------------------------------------------------------------------------------