﻿/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function save() {
} 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function cancel() {
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function skills(hideskill, showskill)
{
  var hide;
  var show;
  hide = getElementByPartialName(hideskill, 'div')
  show = getElementByPartialName(showskill, 'div')
  if ((hide != null) && (show != null))
  {
    hide.style.display = "none";
    show.style.display = "block";
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function alerts()
{
  var i;
  var hiddens;
  var hiddenelement;
  hiddens = 'CanadaLocations,CanadaSpecialties,UnitedStatesLocations,UnitedStatesSpecialties';
  var elements = hiddens.split(',');

  for (i = 0; i < elements.length; i++)
  {
    hiddenelement = getHiddenElement(elements[i] + 'Values');
    if (hiddenelement != null)
    {
      applyhidden(elements[i], hiddenelement);
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function key(key)
{
  // tab key
	if (event.keyCode == 9)
	{
	  administrator();
	}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function keyhandler(keyhandle, handle, ctrl)
{
  if (keyhandle == true)
  {
    // enter key
    if (event.keyCode == 13)
    {
      // cancel the default submit
      event.returnValue=false;
      event.cancel = true;
      
      if (handle == true)
      {
        ctrl.click();
      }
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function keypresshandler(buttonname, e)
{
  var key;
  if(window.event)
  { // IE
    key = window.event.keyCode;
  }
  else
  { // Firefox
    key = e.which;
  }

  if(key == 13)
  {
    var button = document.getElementById(buttonname);
    if (button != null)
    {
      button.click();
      event.keyCode = 0
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function handle(identity, lease)
{
  if(!lease)
  {
    lease = document;
  }
  if(document.layers)
  {
    if(lease.layers[identity])
    {
      return lease.layers[identity];
    }
    else
    {
	    for(var x = 0, y; !y && x < lease.layers.length; x++)
	    {
		    y = handle(identity,lease.layers[x].document);
      }
	    return y;
    }
  }
  if(document.getElementById)
  {
    return document.getElementById(identity);
  }
  if(document.all)
  {
    return document.all[identity];
  }
  return document[identity];
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function parameter(pi)
{
  var buffer = "null";
  var url = window.document.URL.toString();
  if(url.indexOf("?") > 0)
  {
    var params = url.split("?");
    var urlparams = params[1].split("&");
		
    var paramnames = new Array(urlparams.length);
    var paramvalues = new Array(urlparams.length);
		
    var i = 0;
    for(i = 0; i < urlparams.length; i++)
    {
      var param =  urlparams[i].split("=");
	    paramnames[i] = param[0];
	    if(param[1] != "")
	    {			
		    paramvalues[i] = unescape(param[1]);
      }
    }
		
    for(i = 0; i < urlparams.length; i++)
    {
	    if(paramnames[i] == pi)
	    {
	      buffer = paramvalues[i];
	    }
    }
  }
  return buffer;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function enable()
{
  var checkbox = document.getElementById('CheckBoxAgreement');
  var acceptbutton = document.getElementById('AcceptButton');
  if (checkbox.checked == true)
  {
    acceptbutton.disabled = false;
  }
  else if (checkbox.checked == false)
  {
    acceptbutton.disabled = true;
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function sendtoprint(ln)
{
  var top = null; var left = null; var width = "300"; var height = "600"; var scrollbars = "no";
  var options = 'alwaysraised=yes, alwayslowered=no, channelmode=no, dependent=yes, directories=no';
  options += ', hotkeys=no, location=no, fullscreen=no, menubar=no, resizable=no, toolbar=no';
  options += ', status=no, titlebar=no, copyhistory=no, z-lock=0, screenx=0, screeny=0, scrollbars=' + scrollbars; 
  options += ', width=' + width.toString() + ', height=' + height.toString();

  options += ', top=' + (top == null ? ((self.screen.height / 4) - (height / 2)).toString() : top.toString());
  options += ', left=' + (left == null ? ((self.screen.width / 2) - (width / 2)).toString() : left.toString());
  window.open(unescape("./html/" + ln + "/print.htm"), null, options);   
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function account()
{
  var checkbox = document.getElementById('CheckBoxAgreement');
  if (checkbox.checked == true)
  {
    window.location.href = unescape("account.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function administrator()
{
  window.location.href = unescape("administration/administration.aspx");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function advice(ie)
{
  window.location.href = unescape("advice.aspx?ln=" + parameter("ln") + "&ie=" + ie);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function agreement()
{    
  var top = null; var left = null; var width = "700"; var height = "500"; var scrollbars = "yes";
  var options = 'alwaysraised=yes, alwayslowered=no, channelmode=no, dependent=yes, directories=no';
  options += ', hotkeys=no, location=no, fullscreen=no, menubar=no, resizable=no, toolbar=no';
  options += ', status=no, titlebar=no, copyhistory=no, z-lock=0, screenx=0, screeny=0, scrollbars=' + scrollbars; 
  options += ', width=' + width.toString() + ', height=' + height.toString();

  options += ', top=' + (top == null ? ((self.screen.height / 4) - (height / 2)).toString() : top.toString());
  options += ', left=' + (left == null ? ((self.screen.width / 2) - (width / 2)).toString() : left.toString());

  window.open(unescape("agreement.aspx?ln=" + parameter("ln")), null, options);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function architect()
{
  window.location.href = unescape("architect.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function box(it)
{      
  if (it == "it")
  {
    window.location.href = unescape("enhance.aspx?ln=" + parameter("ln") + "&it=it");
  }
  else if (it == "el")
  {
    window.location.href = unescape("execution.aspx?ln=" + parameter("ln") + "&it=el");
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function careers(ki)
{
  window.location.href = unescape("careers.aspx?ln=" + parameter("ln") + "&ki=" + ki);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function contact()
{
  window.location.href = unescape("contact.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function candidate()
{
  window.location.href = unescape("candidate.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function findjob()
{
  window.location.href = unescape("default.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function election()
{
  window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function employment()
{
  window.location.href = unescape("employment.aspx?ln=" + parameter("ln") + "&el=el");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function employment(el)
{
  window.location.href = unescape("employment.aspx?ln=" + parameter("ln") + "&el=" + el);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function enhance(it)
{      
  window.location.href = unescape("enhance.aspx?ln=" + parameter("ln") + "&it=" + it);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function execution(it)
{
  window.location.href = unescape("execution.aspx?ln=" + parameter("ln") + "&it=" + it);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function faq()
{
  window.location.href = unescape("employees.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function index()
{
  window.location.href = unescape("index.aspx");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function legal()
{
  window.location.href = unescape("legal.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function legal(le)
{
  window.location.href = unescape("legal.aspx?ln=" + parameter("ln") + "&le=" + le);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function legalquantum(url)
{
  window.location.href = unescape(url);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function manhattan(al)
{
  window.location.href = unescape("manhattan.aspx?ln=" + parameter("ln") + "&al=" + al);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function montreal(al)
{
  window.location.href = unescape("montreal.aspx?ln=" + parameter("ln") + "&al=" + al);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function news(ew,et)
{
  window.location.href = unescape("news.aspx?ln=" + parameter("ln") + "&ew=" + ew + "&et=" + et);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function QMS()
{
  window.location.href = unescape("http://www.quantum.ca/");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function referral()
{
  var top = null; var left = null; var width = "420"; var height = "500"; var scrollbars = "no";
  var options = 'alwaysraised=yes, alwayslowered=no, channelmode=no, dependent=yes, directories=no';
  options += ', hotkeys=no, location=no, fullscreen=no, menubar=no, resizable=no, toolbar=no';
  options += ', status=no, titlebar=no, copyhistory=no, z-lock=0, screenx=0, screeny=0, scrollbars=' + scrollbars; 
  options += ', width=' + width.toString() + ', height=' + height.toString();

  options += ', top=' + (top == null ? ((self.screen.height / 4) - (height / 2)).toString() : top.toString());
  options += ', left=' + (left == null ? ((self.screen.width / 2) - (width / 2)).toString() : left.toString());

  window.open(unescape("referral.aspx?ln=" + parameter("ln")), null, options);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function services()
{
  window.location.href = unescape("services.aspx?ln=" + parameter("ln") + "&ic=ic");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function services(ic)
{
  window.location.href = unescape("services.aspx?ln=" + parameter("ln") + "&ic=" + ic);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function socialize(li, wi)
{
  window.location.href = unescape("socialize.aspx?li=" + li + "&wi=" + wi);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function specialties()
{
  window.location.href = unescape("specialties.aspx?ln=" + parameter("ln") + "&li=li");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function standards(ta)
{
  window.location.href = unescape("standards.aspx?ln=" + parameter("ln") + "&ta=" + ta);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function studies(it)
{
  window.location.href = unescape("studies.aspx?ln=" + parameter("ln") + "&it=" + it);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function studio(it)
{
  window.location.href = unescape("studio.aspx?ln=" + parameter("ln") + "&it=" + it);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function techconnect()
{
  window.location.href = unescape("techconnect.aspx?ln=" + parameter("ln"));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function terms()
{
  window.location.href = unescape("terms.aspx?ln=" + parameter("ln"));    
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toronto(al)
{
  window.location.href = unescape("toronto.aspx?ln=" + parameter("ln") + "&al=" + al);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function values()
{
  window.location.href = unescape("values.aspx?ln=" + parameter("ln") + "&le=le");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function values(lu)
{
  window.location.href = unescape("values.aspx?ln=" + parameter("ln") + "&lu=" + lu);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function welcome(i)
{
  var welcome = "true";
  var save = handle("SaveCheckbox");
  if (save != null)
  {
    if(save.checked == false)
    {
      welcome = "false";
    }
  }
  
  if(i == 0)
  {
    window.location.href = unescape("home.aspx?ln=fr-CA&wl=" + welcome);
  }
  else if(i == 1)
  {
    window.location.href = unescape("home.aspx?ln=en-CA&wl=" + welcome);
  }
  else if(i == 2)
  {
    window.location.href = unescape("home.aspx?ln=en-US&wl=" + welcome);
  }
  else if(i == 3)
  {
    window.location.href = unescape("technology.aspx?ln=fr-CA&qt-it&it-it&wl-false");
  }
  else if(i == 4)
  {
    window.location.href = unescape("technology.aspx?ln=en-CA&qt-it&it-it&wl-false");
  }
  else if(i == 5)
  {
    window.location.href = unescape("technology.aspx?ln=en-US&qt-it&it-it&wl-false");
  }  
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function work()
{
  window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function workreferral()
{
  window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=rl");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_about(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (eu == "lq")
  {
    window.location.href = unescape("about.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "ta")
  {
    window.location.href = unescape("standards.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "re")
  {
    window.location.href = unescape("careers.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "ew")
  {
    window.location.href = unescape("news.aspx?ln=" + parameter("ln") + "&ew=ew");
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_about_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "it")
  {
    window.location.href = unescape("technology.aspx?ln=" + parameter("ln") + "&qt=it&it=it&wl=false");
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "cs")
  {
    window.location.href = unescape("studies.aspx?ln=" + parameter("ln") + "&it=cs");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "ew")
  {
    window.location.href = unescape("news.aspx?ln=" + parameter("ln") + "&ew=ew");
  }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function highlight_about(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedAbout')
  {
    if (over)
    {
      obj.className = 'MainMenuOverAbout';
    }
    else
    {
      obj.className = 'MainMenuAbout';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function highlight_about_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedAboutTechnology')
  {
    if (over)
    {
      obj.className = 'MainMenuOverAboutTechnology';
    }
    else
    {
      obj.className = 'MainMenuAboutTechnology';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_default(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "fj")
  {
    window.location.href = unescape("default.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "ie")
  {
    window.location.href = unescape("advice.aspx?ln=" + parameter("ln") + "&ie=ie");
  }
  else if (eu == "wk")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "nw")
  {
    window.location.href = unescape("answers.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_default(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if (over)
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_default_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "it")
  {
    window.location.href = unescape("technology.aspx?ln=" + parameter("ln") + "&qt=it&it=it&wl=false");
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "cs")
  {
    window.location.href = unescape("studies.aspx?ln=" + parameter("ln") + "&it=cs");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "eo")
  {
    window.location.href = unescape("employees.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_default_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if (over)
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_employees(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "fj")
  {
    window.location.href = unescape("default.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "ie")
  {
    window.location.href = unescape("advice.aspx?ln=" + parameter("ln") + "&ie=ie");
  }
  else if (eu == "wk")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "nw")
  {
    window.location.href = unescape("answers.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_employees(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if ( over )
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_employees_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "it")
  {
    window.location.href = unescape("technology.aspx?ln=" + parameter("ln") + "&qt=it&it=it&wl=false");
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "cs")
  {
    window.location.href = unescape("studies.aspx?ln=" + parameter("ln") + "&it=cs");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "eo")
  {
    window.location.href = unescape("employees.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_employees_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if ( over )
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_employers(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (eu == "er")
  {
    window.location.href = unescape("employers.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "li")
  {
    window.location.href = unescape("specialties.aspx?ln=" + parameter("ln") + "&li=li");
  }
  else if (eu == "ic")
  {
    window.location.href = unescape("services.aspx?ln=" + parameter("ln") + "&ic=ic");
  }
  else if (eu == "lu")
  {
    window.location.href = unescape("values.aspx?ln=" + parameter("ln") + "&lu=lu");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("employment.aspx?ln=" + parameter("ln") + "&el=el");
  }
  else if (eu == "ui")
  {
    window.location.href = unescape("questions.aspx?ln=" + parameter("ln") + "&ui=er");
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_employers(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedEmployers')
  {
    if (over)
    {
      obj.className = 'MainMenuOverEmployers';
    }
    else
    {
      obj.className = 'MainMenuEmployers';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_employers_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (eu == "er")
  {
    window.location.href = unescape("employers.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "li")
  {
    window.location.href = unescape("specialties.aspx?ln=" + parameter("ln") + "&li=li");
  }
  else if (eu == "ic")
  {
    window.location.href = unescape("services.aspx?ln=" + parameter("ln") + "&ic=ic");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("employment.aspx?ln=" + parameter("ln") + "&el=el");
  }
  else if (eu == "cs")
  {
    window.location.href = unescape("studio.aspx?ln=" + parameter("ln") + "&it=it");
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_employers_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if (over)
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_secure(eu, cell) {
    if (document.getElementById) {
        obj = document.getElementById(cell);
    }
    else if (document.all) {
        obj = document.all[cell];
    }
    else if (document.layers) {
        obj = document.layer[cell];
    }

    if (obj == null) {
        return;
    }

    if (eu == "er") {
        window.location.href = unescape("manager.aspx?ln=" + parameter("ln"));
    }
    else if (eu == "ra") {
        window.location.href = unescape("biography.aspx?ln=" + parameter("ln"));
    }
    else if (eu == "le") {
        window.location.href = unescape("alerts.aspx?ln=" + parameter("ln"));
    }
    else if (eu == "ts") {
        window.location.href = unescape("carts.aspx?ln=" + parameter("ln"));
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_secure(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedAbout')
  {
    if (over)
    {
      obj.className = 'MainMenuOverAbout';
    }
    else
    {
      obj.className = 'MainMenuAbout';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_secure_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (eu == "er")
  {
    window.location.href = unescape("manager.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "ra")
  {
    window.location.href = unescape("biography.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "le")
  {
    window.location.href = unescape("alerts.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "ts")
  {
    window.location.href = unescape("carts.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_menu_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedAbout')
  {
    if (over)
    {
      obj.className = 'MainMenuOverAbout';
    }
    else
    {
      obj.className = 'MainMenuAbout';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "it")
  {
    window.location.href = unescape("technology.aspx?ln=" + parameter("ln") + "&qt=it&it=it&wl=false");
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "cs")
  {
    window.location.href = unescape("studies.aspx?ln=" + parameter("ln") + "&it=cs");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "eo")
  {
    window.location.href = unescape("employees.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedTechnology')
  {
    if (over)
    {
      obj.className = 'MainMenuOverTechnology';
    }
    else
    {
      obj.className = 'MainMenuTechnology';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_etsc(eu, cell) {
    if (document.getElementById) {
        obj = document.getElementById(cell);
    }
    else if (document.all) {
        obj = document.all[cell];
    }
    else if (document.layers) {
        obj = document.layer[cell];
    }

    if (obj == null) {
        return;
    }

    if (eu == "er") {
        window.location.href = unescape("../manager.aspx?ln=" + parameter("ln"));
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_etsc(cell, over) {
    if (document.getElementById) {
        obj = document.getElementById(cell);
    }
    else if (document.all) {
        obj = document.all[cell];
    }
    else if (document.layers) {
        obj = document.layer[cell];
    }

    if (obj == null) {
        return;
    }

    if (obj.className != 'MainMenuSelectedAbout') {
        if (over) {
            obj.className = 'MainMenuOverAbout';
        }
        else {
            obj.className = 'MainMenuAbout';
        }
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_movement(eu, cell) {
    if (document.getElementById) {
        obj = document.getElementById(cell);
    }
    else if (document.all) {
        obj = document.all[cell];
    }
    else if (document.layers) {
        obj = document.layer[cell];
    }

    if (obj == null) {
        return;
    }

    if (eu == "nm") {
        window.location.href = unescape("../movement.aspx?ln=" + parameter("ln"));
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_movement(cell, over) {
    if (document.getElementById) {
        obj = document.getElementById(cell);
    }
    else if (document.all) {
        obj = document.all[cell];
    }
    else if (document.layers) {
        obj = document.layer[cell];
    }

    if (obj == null) {
        return;
    }

    if (obj.className != 'MainMenuSelectedAbout') {
        if (over) {
            obj.className = 'MainMenuOverAbout';
        }
        else {
            obj.className = 'MainMenuAbout';
        }
    }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_wizard(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "fj")
  {
    window.location.href = unescape("default.aspx?ln=" + parameter("ln"));
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "ie")
  {
    window.location.href = unescape("advice.aspx?ln=" + parameter("ln") + "&ie=ie");
  }
  else if (eu == "wk")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "nw")
  {
    window.location.href = unescape("answers.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_wizard(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if (over)
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function menu_wizard_tech(eu, cell)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
  
  if (eu == "it")
  {
    window.location.href = unescape("technology.aspx?ln=" + parameter("ln") + "&qt=it&it=it&wl=false");
  }
  else if (eu == "sr")
  {
    window.location.href = unescape("election.aspx?ln=" + parameter("ln") + "&le=le");
  }
  else if (eu == "cs")
  {
    window.location.href = unescape("studies.aspx?ln=" + parameter("ln") + "&it=cs");
  }
  else if (eu == "el")
  {
    window.location.href = unescape("work.aspx?ln=" + parameter("ln") + "&wk=wk");
  }
  else if (eu == "eo")
  {
    window.location.href = unescape("employees.aspx?ln=" + parameter("ln"));
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function hilitecell_wizard_tech(cell, over)
{
  if (document.getElementById)
  {
    obj = document.getElementById(cell);
  }
  else if (document.all)
  {
    obj = document.all[cell];
  }
  else if (document.layers)
  {
    obj = document.layer[cell];
  }

  if (obj == null)
  {
    return;
  }
    
  if (obj.className != 'MainMenuSelectedDefault')
  {
    if (over)
    {
      obj.className = 'MainMenuOverDefault';
    }
    else
    {
      obj.className = 'MainMenuDefault';
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function GiveCorrectTimeFormat(strInputTime)
{
  var strReturnValue = "";
  if(strInputTime.length <= 5)
  {
    strInputTime = strInputTime.replace(":","");
    alert(strInputTime);
    if(strInputTime.length == 1)
    {
      strInputTime = "0" + strInputTime + ":" + "00";
    }
    else if (strInputTime.length == 2)
    {
      //alert("in 2");
      if (strInputTime <= 23)
      {
        strInputTime = strInputTime + ":" + "00";
      }
      else if (strInputTime <= 59)
      {
        strInputTime = "00" + ":" + strInputTime;
      }
      else
      {
        strInputTime = "00:00";
      }
    }
    else if (strInputTime.length == 3)
    {
      //alert("in 3");
      if (strInputTime < 959)
      {
        //alert(strInputTime.substring(1,3));
        if (strInputTime.substring(1,2) <= 5)
        {
          strInputTime = "0" + strInputTime.substring(0,1) + ":" + strInputTime.substring(1,3);
        }
        else
        {
          strInputTime = "0" + strInputTime.substring(0,1) + ":" + "00";
        }
      }
      else
      {
        strInputTime = "0" + strInputTime.substring(0,1) + ":" + "00";
      }
    }
    else if (strInputTime.length == 4)
    {
      //alert("in 4");
      if (strInputTime < 2359)
      {
        //alert(strInputTime.substring(0,2));
        if (strInputTime.substring(0,2) <= 23)
        {
          if (strInputTime.substring(2, 3) <= 5)
          {
            strInputTime = strInputTime.substring(0, 2) + ":" + strInputTime.substring(2, 4);
          }
          else
          {
            strInputTime = strInputTime.substring(0, 2) + ":" + "00";
          }
        }
        else
        {
          strInputTime = "00:00";
        }
      }
      else
      {
        if (strInputTime.substring(0,2) <= 23)
        {
          if(strInputTime.substring(2,3) <= 5)
          {
            strInputTime = strInputTime.substring(0,2) + ":" + strInputTime.substring(2,4);
          }
          else
          {
            strInputTime = strInputTime.substring(0,2) + ":" + "00";
          }
        }
        else
        {
          strInputTime = "00:00";
        }
      }
    }
    else
    {
      strInputTime = "00:00";
    }
    //alert(strInputTime);
    strReturnValue = strInputTime;
  }
  return strReturnValue;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function MaskTimeFormat(item)
{ // TO DO this is null document.getElementById("SundayArrivalTextBox");
  var object_element;
  if (document.getElementById)
  {
    //alert(item);
    object_element = document.getElementById(item);
  }
  else if(document.all)
  {
    object_element = document.all[item];
  }
  else if (document.layers)
  {
    object_element = document.layers[item];
  }

  //var objStartTime = document.getElementById(textbox);
  var object_value = object_element.value;
  //alert('1');
  object_element.value = GiveCorrectTimeFormat(object_value);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
