function getResPage(page,frame){
	if(frame=="yes"){
		//within the frameset, only change mainframe
		if(screen.width<1024){
			top.mainframe.location.href=page+"?w=800";
		}
		else{
			top.mainframe.location.href=page+"?w=1024";
		}
	}
	else{
		//initial frameset load, change entire location
		if(screen.width<1024){
			top.location.href=page+"?w=800";
		}
		else{
			top.location.href=page+"?w=1024";
		}
	}
}
