﻿// JavaScript Document
/*
This function direct the user to another page based on the passed in argument.
	call:
		ACT_setButtonState(url,win)
	req:
		none
*/
function ACT_gotoPage() {
	var t,args=ACT_gotoPage.arguments;
	if (args[0]!=undefined) {
		if(args[1]!=undefined&&eval(args[1])!=null) {
			t=eval(args[1]);
		} else {
			t=window.self;
		}
		t.location.href=args[0];
	}
}

/*
This function is primarily used for pagination
The function direct the user to another page based on the passed in argument.
	call:
		ACT_gotoPageNum(ref_to_form)
	req:
		none
*/
function ACT_gotoPageNum() {
	var fm,args=ACT_gotoPageNum.arguments;
	if(args[0]!=undefined) {
		fm=args[0];
		fm.submit();
	}
}


/*
Passing the games_id & pagenav for lasy page link
*/
/*
function ACT_lastPage() {	

var fm,args=ACT_lastPage.arguments;
	if(args[0]!=undefined&&args[1]!=undefined) 	{		
		fm=args[0];
		fm.lastpage.value=args[1];
		fm.action='?pagenav='+args[1]; 
		fm.submit();
	}
}*/

