function execAssistPopup( str_event ){
  var str_url  = "index.php?event=" + str_event;
  var int_top  = ( screen.height - 380 );
  var int_left = ( screen.width - 535 );

  newWin = window.open( str_url, '', "width=500,height=300,top=" + int_top + ",left=" + int_left + ",scrollbars=yes" );  
  if( newWin.opener == null ) newWin.opener = window;              
}

function initUserInfoForm( ref_form ){
  setSelectBoxByValue( ref_form, "country", ref_form.init_country_id.value );
}

function cookieTest(){
  if( clientAcceptsCookies() )
    return true;

  // If you're still here, the client must not accept cookies
  alert( "Sorry, but you must enable Cookies to use this site." );
  return false;
}

function initLoginForm( form ){
  document.write( "<tr><td>" + 
                  "<input type=\"submit\" value=\"Log in\" class=\"buttonwidth\" onclick=\"return cookieTest();\" />" + 
                  "</td><td>" + 
                  "<input type=\"submit\" class=\"buttonwidth\" value=\"Forgot your password?\" onclick=\"form.event.value='forgotpassword,html_form_forgotpassword';\" />" +
                  "</td></tr>" );
  form.user_id.focus();
}