﻿// JScript 文件
//<form action="add_cpok.aspx"  onsubmit="javascript:return key_(this);">
function key_(theform){
var _type=theform.type.value;
var m_key=theform.keyword.value;
switch (_type)
　　　　　　　 { 
　　　　　　　　 case "cp": theform.action="http://b2b.qx100.com/cp/list/"+m_key+".html";break;
　　　　　　　 　case "qy": theform.action="http://b2b.qx100.com/qy/list/"+m_key+".html";break;
　　　　　　　 　case "hy": theform.action="http://b2b.qx100.com/qy/list/"+m_key+".html";break;
　　　　　　　　 case "gy": theform.action="http://b2b.qx100.com/sj/list_1/"+m_key+".html";break;
　　　　　　　　 case "qg": theform.action="http://b2b.qx100.com/sj/list_2/"+m_key+".html";break;
　　　　　　　　 case "4": theform.action="http://b2b.qx100.com/sj/list_4"+m_key+".html";break;
　　　　　　　　 case "5": theform.action="http://b2b.qx100.com/sj/list_5/"+m_key+".html";break;
　　　　　　　　 case "6": theform.action="http://b2b.qx100.com/sj/list_6/"+m_key+".html";break;
		 case "news": theform.action="http://byzx.qx100.com/search.asp?keyword="+m_key;break;
		 case "zh": theform.action="http://zh.qx100.com/wmm_tp/list.asp?keyword="+m_key;break;
　　　　　　　　 default: theform.action="http://b2b.qx100.com/sj/list/"+m_key+".html";break;
　　　　　　　 } 
return true;
}
