/**
 * 网站前台的通用功能js
 */
//var webContext = "/springb2c";
var webContext = "";
/**
 * 初始化webSearch tabs
 */
function init_webSearch_tabs(){
	$("#webSearchTab").tabs();
}
/**
 *ajax提交form返回结果消息
 * @param data
 */
function routeAjaxSubmite(data){
	if(data.toLowerCase() == "success"){
		Boxy.alert("Submit success!",null,{title:"System information"});		
		
	}else{
		Boxy.alert("Submit failure!",null,{title:"System information"});		
	}	
}
/**
 * web ask for form提交前的数据合法性检查
 * @returns
 */
function sumbit_before_check_webaskfor(){
	return $('#webAskforForm').validationEngine('validate');
}
/**
 * 获取指定分组的外链元素
 * @param groupId
 */
function show_group_linkItem(groupId){
	$("#usefulLinkItem").load(webContext + "/usefulLink/showLinkItemList",{groupId:groupId});
	
}

