/*************************************************
Copyright (C), 2000-2010, Sumavision Tech. Co., Ltd.
File name: 		card_common.js  
Author:			xiayuxiao
Version:		v1.0
Date: 			2013/03/28
Description:  	C350卡页面公用js代码模块
*************************************************/
//type value
var CARD_CONFIG = 1;
var PORT_MONITOR = 2;
var PORT_CONFIG = 3;

var errorEn = ["",
			   "The parameter value is illegal!"];

var errorCn = ["",
			   "非法参数值！"];
			   
var returnError = [errorEn, errorCn];

/*************************************************
Function: 		pageJump
Description: 	用于页面横向跳转的函数
Input: 			index: 3-PORT_CONFIG; 2-PORT_MONITOR
Output: 		无
Return: 		无
Others: 		无
*************************************************/
function pageJump(index)
{
	if(index == PORT_CONFIG)
	{
		self.location.replace("port_config" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo);
 	}
 	else if(index == PORT_MONITOR)
 	{
		self.location.replace("port" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo);
	}
}