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

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

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

/*************************************************
Function: 		pageJump
Description: 	端口页面横向跳转的函数
Input: 			index: 2-PORT_VIDEO; 3-PORT_AUDIO; 4-PORT_TS
Output: 		无
Return: 		无
Others: 		无
*************************************************/
function pageJump(index)
{
	if(index == PORT_VIDEO)
	{
		window.location.href = "port_video" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo;
 	}
	else if(index == PORT_AUDIO)
 	{
		window.location.href = "port_audio" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo;
	}
 	else if(index == PORT_TS)
 	{
		window.location.href = "port_ts" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo;
	}
	else if(index == PORT_MONITOR)
 	{
		window.location.href = "port" + pageLanguage[language] + "?slotNo=" + slotNo + "&portNo=" + portNo;
	}
}
