//统计访问次数




//栏目
function GetMenuData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=M_ID&FieldName="+pFieldName+"&TableName=Merop_Menu&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetMenuData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=M_ID&FieldName="+pFieldName+"&TableName=Merop_Menu&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


//帖子
function GetNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=N_ID&FieldName="+pFieldName+"&TableName=Merop_Note&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


function SetNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=N_ID&FieldName="+pFieldName+"&TableName=Merop_Note&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}



//回帖
function GetReNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=RN_ID&FieldName="+pFieldName+"&TableName=Merop_ReNote&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetReNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=RN_ID&FieldName="+pFieldName+"&TableName=Merop_ReNote&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


//评论
function GetReviewData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=R_ID&FieldName="+pFieldName+"&TableName=Merop_Review&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


function SetReviewData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=R_ID&FieldName="+pFieldName+"&TableName=Merop_Review&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


//资讯
function GetArticleData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=A_ID&FieldName="+pFieldName+"&TableName=Merop_Article&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetArticleData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=A_ID&FieldName="+pFieldName+"&TableName=Merop_Article&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


//产品
function GetProductData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=P_ID&FieldName="+pFieldName+"&TableName=Merop_Product&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetProductData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=P_ID&FieldName="+pFieldName+"&TableName=Merop_Product&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


//视频
function GetVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=V_ID&FieldName="+pFieldName+"&TableName=Merop_Video&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=V_ID&FieldName="+pFieldName+"&TableName=Merop_Video&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

//资源
function GetResourcesData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=Res_ID&FieldName="+pFieldName+"&TableName=Merop_Resources&OperCode=GetData&ConnStr=ResConn", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetResourcesData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=Res_ID&FieldName="+pFieldName+"&TableName=Merop_Resources&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

//下乡工程
//资源
function GetMrpVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetMrpVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

//问答
//采纳为最佳答案
function SetQuestionData(pIndexValue){
	ClientUrlGet("/Public/Merop_Action.asp?RQ_ID="+pIndexValue+"&OperCode=SetGoodAnswer",1,300,150);
}

//退出系统
function UserOutLogin(){
	ClientUrlGet("/Public/Merop_Action.asp?OperCode=UserOutLogin",1,300,150);
}


function GetBoardLastNote(pM_ID){
	document.write("Guest:你好吗？2009-1-1");
}


//通用的GET数据
function GetData(pIndexValue,IndexFieldName,pFieldName,pTableName,pDataBase){
	var xmlhttp = createobj();
	var tempUrl="/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName="+IndexFieldName+"&FieldName="+pFieldName+"&TableName="+pTableName+"&ConnStr="+pDataBase+"&OperCode=GetData";
	xmlhttp.Open("get", tempUrl, false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetData(pIndexValue,IndexFieldName,pFieldName,pTableName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName="+IndexFieldName+"&FieldName="+pFieldName+"&TableName="+pTableName+"&OperCode=SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

//报表统计数据收集
function setArticleVisitData(pB_ID,pM_ID,pA_ID){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?VisitB_ID="+pB_ID+"&VisitM_ID="+pM_ID+"&VisitA_ID="+pA_ID+"&TableName=Merop_ArticleVisit&OperCode=ArticleVisitData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetZoneVisitData(zoneId){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?visitZoneId="+zoneId+"&OperCode=ZoneVisitData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function setMrpVisitData(pB_ID,pM_ID,pMrp_ID){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?VisitB_ID="+pB_ID+"&VisitM_ID="+pM_ID+"&VisitMrp_ID="+pMrp_ID+"&TableName=Merop_ArticleVisit&OperCode=MrpVisitData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}
