/*
'<!--$$Revision: 2 $-->
'<!--$$Author: Errol $-->
'<!--$$Date: 8/05/09 1:20p $-->
'<!--$$Logfile: /4.0 Arts Hub/shared/js/refresh.js $-->
'<!--$$NoKeywords: $-->
*/
// (^_^)Page Refresher Object
// implemented with oUtil.BuildPageRefresherHTML

var myrefresh	//used for timeout variable
var mytime 		= 300000;	//300000 milliseconds 5mins, 10000 (10seconds when debugging)
var objRefresh 	= {

	fnDoRefresh:function(thisurl, thistime){
		if (this.fnNotEmptyRefresh(thisurl))  {
			return this.fnSetTimeoutLocation(thisurl, thistime);
		}
	},
	fnSetTimeoutLocation:function(thisurl, thistime) {
		return setTimeout("window.location='" + thisurl + "'", thistime);
	},
	fnNotEmptyRefresh:function(thisurl){
		return (thisurl != "" && myrefreshurl != "undefined")? true : false;
	}

}
