//统计访问次数




//栏目
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", 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 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){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Public/Merop_Action.asp?IndexValue="+pIndexValue+"&IndexFieldName="+IndexFieldName+"&FieldName="+pFieldName+"&TableName="+pTableName+"&OperCode=GetData", 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));
}
