/***************************************************************

				このウィンドウで開く（2002/09/09）
										written by sleepy

***************************************************************/

	var obj, window, document, id;

	obj = new ActiveXObject("Sleipnir.API");
	id = obj.GetDocumentID(obj.ActiveIndex);
	document = obj.GetDocumentObject(id);

	if (document != null){
		var frames, target, adr, wait;

		if (obj.IsBusy(id)){
			do {
				WScript.Sleep(500);
				wait = wait + 500;
			} while (obj.IsBusy(id) && (wait < 10000));// 10秒でタイムアウト
		}

		frames = document.frames;
		if (frames.length != 0){
			for (i=0; i<frames.length; i++){
				try {
					target = frames(i).document.activeElement;
					if (target.href != null){
						adr = target.href;
					}
					else {
						adr = "";
					}

					if (adr != ""){
						obj.Navigate(id, adr);
					}
				}
				catch(error) {
				}
			}
		}

		target = document.activeElement;
		if (target.href != null){
			adr = target.href;
		}
		else {
			adr = "";
		}

		if (adr != ""){
			obj.Navigate(id, adr);
		}

		document = null;
	}

	obj = null;
