/*!
 * chinforweb JavaScript Library v2.1.1
 * http://www.chinfor.com/
 *
 * Copyright (c) 2009 chinfor
 * chinfor licenses.
 * http://www.chinfor.com/
 *
 * Date: 2010-02-11 17:34:21 -0500 (Thu, 11 Feb 2010)
 * Revision: 2110
 */

// showHideAnswer
function showHideAnswer(curId,curUrl) {
  obj=document.getElementById(curId);
  //alert(obj.name);
  if (obj.name=="showAnswer") {
    obj.name="hideAnswer"
    //obj.value="解答隠し　↑";
    //obj.style.backgroundColor="#FF0000";
    //obj.style.color="#ff0000";
    obj.src=curUrl+"/website/images/imgsys/studych/ShowHideAnswer2.png";   //OK when: input type="image"
    //obj.style.background="url(col-4742fd-f.png) right repeat-x)"; //when: input type="button"  OK
    new Effect.SlideDown(curId+'Zone');
    return false;
  }else{
    obj.name="showAnswer"
    //obj.value="解答表示　↓";    
    //obj.style.backgroundColor="#FF0000";
    //obj.style.color="#000000";
    obj.src=curUrl+"/website/images/imgsys/studych/ShowHideAnswer1.png";   //OK when: input type="image"
    //obj.style.background="url(searchbutton.png) left no-repeat";  //when: input type="button"  OK
    Effect.DropOut(curId+'Zone');
    return false;
  }
}
// showHideText
function showHideText(curId,curUrl) {
  obj=document.getElementById(curId);
  //alert(obj.name);
  if (obj.name=="showText") {
    obj.name="hideText"
    obj.src=curUrl+"/website/images/imgsys/studych/ShowHideText2.png"; 
    new Effect.SlideDown(curId+'Zone');
    return false;
  }else{
    obj.name="showText"
    obj.src=curUrl+"/website/images/imgsys/studych/ShowHideText1.png"; 
    Effect.DropOut(curId+'Zone');
    return false;
  }
}
