/*************************************************
Copyright (C), 2000-2010, Sumavision Tech. Co., Ltd.
File name: 		card_common.js  
Author:			wangyuqi
Version:		v1.0
Date: 			2013/02/21
Description:  	C202DH卡页面公用js代码模块
History: 
1. Date: Author: Modification:
2. ...
*************************************************/
//type value
var CARD_CONFIG = 1;
var PORT_MONITOR = 2;
var PORT_CONFIG = 3;
var PROGRAM_PID = 4;

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)
	{
		window.location.href = "port_config" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo;
 	}
 	else if(index == PORT_MONITOR)
 	{
		window.location.href = "port" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo;
	}
}