        function OpenHelp(URL,name,w,h)
        {
            config = "menubar=no,scrollbars=yes,status=no,toolbar=no,directories=no, width=" + w +", height=" + h + ", resizable=yes"
            window.open(URL, name, config)
        }

        function toggleCheckBoxId(cbxId)
        {
            cbx = document.getElementById(cbxId);
            cbx.checked=!cbx.checked;
        }
        
        function toggleInnerCheckBox(oEvent)
        {
            var o = (oEvent.target || oEvent.srcElement);
            
            allInputs = o.getElementsByTagName('INPUT');
            
            // loop through all child inputs
             for (i=0;i<allInputs.length;i++)
             {
              nownode=allInputs[i];
              if(nownode.type=='checkbox' && nownode!=o) //exclude self to prevent possible double-toggling
              {
                nownode.checked=!nownode.checked;
              }
             }
        }
        
        function validatePolicyCheck(source, args)
        {
            var var1 = document.all ? document.all["checkAgreePolicy"] : document.getElementById("checkAgreePolicy");
            args.IsValid = var1.checked;
        }

	function addLoadEvent(func) 
	{
	  var oldonload = window.onload;
	  if (typeof window.onload != 'function') 
	  {
	    window.onload = func;
	  } 
	  else 
	  {
	    window.onload = function() 
	    {
	      if (oldonload) 
	      {
		oldonload();
	      }
	      func();
	    }
	  }
	}

	//custom stuff
	function preInsertText(id, inner)
	{
		if( document.getElementById(id) )
			document.getElementById(id).innerHTML = inner + document.getElementById(id).innerHTML;

	}
	
	function addDeMontfordText()
	{
		preInsertText("div_dayTable_38", "Focus Groups:<br/><br/>");
		preInsertText("div_dayTable_39", "<br/><br/>");
		preInsertText("div_dayTable_40", "Telephone Interviews:<br/><br/>");
		preInsertText("div_dayTable_41", "<br/><br/>");
		preInsertText("div_dayTable_42", "<br/><br/>");
	}
	
	addLoadEvent(addDeMontfordText);
	
