gui draw rexture problem

  if(GUI.Button(Rect(3,810,80,35),GUIContent (" START", "start")))
  {
  GUI.DrawTexture(Rect(0,0,500,500),start1);
   }
  if(GUI.Button(Rect(85,810,80,35),GUIContent (" CONTINUE", "continue")))
  {
  GUI.DrawTexture(Rect(0,0,500,500),continue1);
  }

when i am pressing start button the draw texture is not drawing the texture start1.When i am putting it outside if condition it is working fine.Is there any problem when we put a gui inside another gui

this code will just draw the texture for the frame that the button was pressed instead of that you need to add a boolean that turns on when you hit start

bool myboolStart =false;
bool myboolContinue = false;
void OnGUI()
{
   if(GUI.Button(Rect(3,810,80,35),GUIContent (" START", "start")))
   {
      myboolStart = true;
   }
   if(myboolStart)
      GUI.DrawTexture(Rect(0,0,500,500),start1);
   if(GUI.Button(Rect(85,810,80,35),GUIContent (" CONTINUE", "continue")))
   {
      myboolContinue = true;
   }
   if(myboolContinue)
      GUI.DrawTexture(Rect(0,0,500,500),continue1);
}

this will do the trick -edit- im using C# just try to use this on js dont just copy paste it