// *************************   第二套程序  ****************************//

function SetBlogDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=B_ID&FieldName="+pFieldName+"&TableName=Merop_Blog&OperCode=Blog_B_SetData", false);
	xmlhttp.Send();
	//alert(xmlhttp.responseText);
	eval(unescape(xmlhttp.responseText));
}
function SetMenuDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=M_ID&FieldName="+pFieldName+"&TableName=Merop_Menu&OperCode=Menu_M_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetArticleDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=A_ID&FieldName="+pFieldName+"&TableName=Merop_Article&OperCode=Article_A_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetReviewDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=R_ID&FieldName="+pFieldName+"&TableName=Merop_Review&OperCode=Merop_M_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetTeacherDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=T_ID&FieldName="+pFieldName+"&TableName=Merop_Teacher&OperCode=Merop_M_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetMrpVideoDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=MrpVideo_Mrp_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetVideoDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=V_ID&FieldName="+pFieldName+"&TableName=Merop_Video&OperCode=Video_V_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


function SetAnswerDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=RQ_ID&FieldName="+pFieldName+"&TableName=Merop_Answer&OperCode=Merop_M_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetZoneDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Zone_ID&FieldName="+pFieldName+"&TableName=Merop_Zone&OperCode=Zone_Zone_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetZoneLogDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Log_ID&FieldName="+pFieldName+"&TableName=Merop_ZoneLog&OperCode=ZoneLog_Log_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetZonePictureDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Pic_ID&FieldName="+pFieldName+"&TableName=Merop_ZonePicture&OperCode=ZonePicture_Pic_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetResourcesDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Res_ID&FieldName="+pFieldName+"&TableName=Merop_Resources&OperCode=Resources_Res_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}





/************************************** GetData *****************************************/

function GetArticleDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=A_ID&FieldName="+pFieldName+"&TableName=Merop_Article&OperCode=Article_A_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetMrpVideoDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=MrpVideo_Mrp_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetReviewDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?OperCode=Merop_M_GetData&IndexValue="+pIndexValue+"&IndexFieldName=R_ID&FieldName="+pFieldName+"&TableName=Merop_Review", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetVideoDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=V_ID&FieldName="+pFieldName+"&TableName=Merop_Video&OperCode=Video_V_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetAnswerDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?OperCode=Merop_M_GetData&IndexValue="+pIndexValue+"&IndexFieldName=RQ_ID&FieldName="+pFieldName+"&TableName=Merop_Answer", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetResourcesDataNew(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/admin/Merop_Action.jsp?OperCode=Merop_M_GetData&IndexValue="+pIndexValue+"&IndexFieldName=Res_ID&FieldName="+pFieldName+"&TableName=Merop_Resources", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}





// *************************   第二套程序  ****************************//




function SetBlogData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=B_ID&FieldName="+pFieldName+"&TableName=Merop_Blog&OperCode=Blog_B_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}
function SetMenuData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=M_ID&FieldName="+pFieldName+"&TableName=Merop_Menu&OperCode=Menu_M_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetArticleData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=A_ID&FieldName="+pFieldName+"&TableName=Merop_Article&OperCode=Article_A_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetTeacherData(pIndexValue,pFieldName){
	
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=T_ID&FieldName="+pFieldName+"&TableName=Merop_Teacher&OperCode=Teacher_T_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=V_ID&FieldName="+pFieldName+"&TableName=Merop_Video&OperCode=Video_V_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetMrpVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=MrpVideo_Mrp_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetZoneData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Zone_ID&FieldName="+pFieldName+"&TableName=Merop_Zone&OperCode=Zone_Zone_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}
function SetZoneLogData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Log_ID&FieldName="+pFieldName+"&TableName=Merop_ZoneLog&OperCode=ZoneLog_Log_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetZonePictureData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Pic_ID&FieldName="+pFieldName+"&TableName=Merop_ZonePicture&OperCode=ZonePicture_Pic_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetQuestionData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Q_ID&FieldName="+pFieldName+"&TableName=Merop_Question&OperCode=Question_Q_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetResourcesData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Res_ID&FieldName="+pFieldName+"&TableName=Merop_Resources&OperCode=Resources_Res_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetMrpVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=MrpVideo_Mrp_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


function SetNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=N_ID&FieldName="+pFieldName+"&TableName=Merop_Note&OperCode=Note_N_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


// get ----------------------------------------------------//

function GetUserData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=U_ID&FieldName="+pFieldName+"&TableName=Merop_User&OperCode=User_U_GetData&ConnStr=global", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=V_ID&FieldName="+pFieldName+"&TableName=Merop_Video&OperCode=Video_V_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetQuestionData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Q_ID&FieldName="+pFieldName+"&TableName=Merop_Question&OperCode=Question_Q_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetMrpVideoData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=Mrp_ID&FieldName="+pFieldName+"&TableName=Merop_MrpVideo&OperCode=MrpVideo_Mrp_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetZoneData(pIndexValue,pFieldName){
	
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?OperCode=Zone_Zone_GetData&IndexValue="+pIndexValue+"&IndexFieldName=Zone_ID&FieldName="+pFieldName+"&TableName=Merop_Zone", false);
	xmlhttp.Send();
	
	eval(unescape(xmlhttp.responseText));
}




function GetReNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=RN_ID&FieldName="+pFieldName+"&TableName=Merop_ReNote&OperCode=ReNote_RN_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}



function GetNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=N_ID&FieldName="+pFieldName+"&TableName=Merop_Note&OperCode=Note_N_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetArticleData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=A_ID&FieldName="+pFieldName+"&TableName=Merop_Article&OperCode=Article_A_GetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}







function SetReNoteData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=RN_ID&FieldName="+pFieldName+"&TableName=Merop_ReNote&OperCode=ReNote_RN_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


function GetReviewData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?OperCode=Merop_M_GetData&IndexValue="+pIndexValue+"&IndexFieldName=R_ID&FieldName="+pFieldName+"&TableName=Merop_Review", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function GetAnswerData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?OperCode=Merop_M_GetData&IndexValue="+pIndexValue+"&IndexFieldName=RQ_ID&FieldName="+pFieldName+"&TableName=Merop_Answer", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}


function SetAnswerData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=RQ_ID&FieldName="+pFieldName+"&TableName=Merop_Answer&OperCode=Merop_M_SetData", false);
	xmlhttp.Send();
	eval(unescape(xmlhttp.responseText));
}

function SetReviewData(pIndexValue,pFieldName){
	var xmlhttp = createobj();
	xmlhttp.Open("get", "/Manage/Merop_Action.jsp?IndexValue="+pIndexValue+"&IndexFieldName=R_ID&FieldName="+pFieldName+"&TableName=Merop_Review&OperCode=Merop_M_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 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 UserOutLogin(){
	ClientUrlGet("/Public/Merop_Action.asp?OperCode=UserOutLogin",1,300,150);
}

function GetBoardLastNote(pM_ID){
	document.write("Guest:2009-1-1");
}

function GetData(pIndexValue,IndexFieldName,pFieldName,pTableName,pDataBase){
	var xmlhttp = createobj();
	var tempUrl="/Manage/Merop_Action.jsp?OperCode=Merop_M_GetData&IndexValue="+pIndexValue+"&IndexFieldName="+IndexFieldName+"&FieldName="+pFieldName+"&TableName="+pTableName+"";
	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));
}