 function ContentView(c_type) {
	MovePageFormA.article_type.value = c_type;
    MovePageFormA.submit();
 }

 function MovePhotoThuumbList(num) {
    photo_thumb_frame.location.href = "/style/article/photo_thumb_direct.asp?img_start=" + num;
 }

 function LoadPhotoThumbList(img_start) {
    APhotoThumForm.img_start.value = img_start;
    APhotoThumForm.action = "/style/article/photo_thumb.asp"

    GetAjaxInfoB(true,APhotoThumForm,"LoadPhotoThumbList_result")	
 }

 function LoadPhotoThumbList_result(msg) {
	if(msg.indexOf("-1[sp]") != -1) {
	   return;
	}
	document.getElementById("photo_thumb_area").innerHTML = msg;
 }

 function onover_photothumb(obj) {
    var select_index;

	select_index = PhotoThumbForm.select_index.value; 
	if(document.getElementById("photothumb_"+select_index) == obj) {
	   return;
	}

    obj.style.borderColor = "#e47888";
 }

 function onout_photothumb(obj) {
    var select_index;

	select_index = PhotoThumbForm.select_index.value; 
	if(document.getElementById("photothumb_"+select_index) == obj) {
	   return;
	}

	obj.style.borderColor = "";
 }

 function onover_photothum_prev(obj) {
	obj.src = "/style/images/content/bt_prev_on.gif"
 }
 
 function onout_photothum_prev(obj) {
	obj.src = "/style/images/content/bt_prev_out.gif"
 }

 function onover_photothum_next(obj) {
	obj.src = "/style/images/content/bt_next_on.gif"
 }

 function onout_photothum_next(obj) {
	obj.src = "/style/images/content/bt_next_out.gif"
 }


 function PhotoThumbView(nID,img_type,img_idx) {
    var i, get_url, c_idx, select_index;

	select_index = PhotoThumbForm.select_index.value; 
    if(select_index != nID) {
       document.getElementById("photothumb_"+select_index).style.borderColor = ""
       document.getElementById("photothumb_"+nID).style.borderColor = "#e47888"
	}

	PhotoThumbForm.select_index.value = nID;

    c_idx = APhotoThumForm.c_idx.value;

	get_url = "/style/article/photo_thumb_view.asp?c_idx=" + c_idx + "&img_type=" + img_type;
	get_url = get_url + "&img_idx=" + img_idx;
    GetAjaxInfoA(true,get_url,"PhotoThumbView_result")
 }

 function PhotoThumbView_result(msg) {
	if(msg.indexOf("-1[sp]") != -1) {
	   return;
	}
	document.getElementById("photo_view_area").innerHTML = msg;
 }



