

var phrases = new Array(4) ;
var phraseEnding = "<br /><a href='http://www.englishelearning.com' target='ecli'><img align='top' src='../images/propowlogo.gif' /></a><br /><a href='http://www.englishelearning.com' target='ecli'>www.englishelearning.com</a></p>";
var phraseEndingHome = "<br /><a href='http://www.englishelearning.com' target='ecli'><img align='top' src='lessons_wordlist/images/propowlogo.gif' /></a><br /><a href='http://www.englishelearning.com' target='ecli'>www.englishelearning.com</a></p>";
phrases[0] = '<p class="note">이단어들과 그 외 수천의 단어들의 발음을 듣고 기록하려면 자사의 제품을 살펴보시기 바랍니다:';
phrases[1] = '<p class="note">문법과 어휘를 공부한 후에 자사의 제품을 이용하여 여러분의 영어 발음을 향상시키기 바랍니다.';
phrases[2] = '<p class="note">영어로 발음하여 단어를 검색하는 기능을 지닌 유일한 발음 사전을 살펴보시기 바랍니다.:';
phrases[3] = '<p class="note">영어 문법과 어휘 실력을 평가하러면, ~로 이동하시기 바랍니다.';
   
function writeRandomAdvertize(extrainfo) {
   index = (Math.floor(Math.random() * phrases.length));
   if (extrainfo == "forhome") {
      document.getElementById("ad_phrase").innerHTML = phrases[index] + phraseEndingHome;
   } else {
      document.getElementById("ad_phrase").innerHTML = phrases[index] + phraseEnding;
   }
}

function popDetail(u) {
/*   popupWin = window.open("../details/" + u, "Detail", "bgColor=lightblue,fullscreen=no,toolbar=no,status=no,resizable=yes,directories=no,location=no,width=258,height=360,left=10,top=10"); */
   w = 258;
   h = 400;
   maxleft = screen.availWidth - w - 10;
   l = self.screenLeft + document.body.clientWidth;
   t = self.screenTop;
   if (l > maxleft ) {
      l = maxleft;
   }
   features = "width="+w+",height="+h+",left="+l+",top="+t;
   features += ",screenX="+l+",screenY="+t;
   features += ",scrollbars=0,resizable=1,location=0";
   features += ",menubar=0,toolbar=0,status=0";
   features += ",bgColor=lightblue";
   popupWin = window.open("../details/" + u, "Detail", features);
}

function popWindow(u,w,h,t) {
   popupWin = window.open(u, t, "bgColor=black,fullscreen=no,toolbar=no,status=no,resizable=yes,directories=no,location=no,width="+w+",height="+h+",left=10,top=10");
}

function showProperTestLink () {
   if (location.protocol == "file:") {
      document.getElementById("remotequiz").style.display = "block";
   } else {
      document.getElementById("internalquiz").style.display = "block";   
   }
}


