
/*
  InfoHub V2.0
 
  ---
 
  Copyright (c) Matot Hi-Teach LTD, 2000
 
  All Rights Reserved.  Unpublished rights reserved under the
  copyright laws of the United States.
 
  ---
 
  File:	infohub.js
 
  Holds the functions for entering the Info-Hub using a guest user to a specific location
 
  ---
*/



function GuestLogin()
{
	document.all.UserName.value = "guest"
	document.all.Password.value = "guest"
	document.frmInfoHub.submit()
	setTimeout("CheckSelectProject()",1000)
}

function InputLogin()
{
	document.frmInfoHub.submit()
	setTimeout("CheckSelectProject()",1000)
}

function CheckSelectProject(){
	var oPageName = window.frames.WorkWin.document.location.href

	if (oPageName.toLowerCase().indexOf("selectproject.asp") > 0){

		if (typeof(window.frames.WorkWin.blnLogin) == 'undefined'){
			setTimeout("CheckSelectProject()",500)	
			return
		}
			
		if (window.frames.WorkWin.blnLogin){
			parent.document.frmInfoHub.target = '';
			parent.document.frmInfoHub.submit();

		}
	}
	else
		setTimeout("CheckSelectProject()",1000)	
}

function CheckEnter(){
	if (event.keyCode == 13)
		InputLogin();
}
