public boolean jsFunction_waitWindow(String name, int timeout) {
			deprecated();
			int curr = 0; if(timeout == 0) timeout = 10000;
			while(curr < timeout)
			{
				if(JSBotUtils.lastCreatedWindow != null &&
						JSBotUtils.lastCreatedWindow.cap.text != null &&
						JSBotUtils.lastCreatedWindow.cap.text.equals(name)){
					JSBotUtils.lastCreatedWindow = null;
					return true;
				}
				Sleep(25);
				curr += 25;
			}
			return false;
		}