function Nick_setFlash(movie,width,height,wmode) {
  if (movie) {
    var dt=new Date();
    var id="Nick_Flash_"+dt.getTime();
    if (!width) width=600;
    if (!height) height=400;
    if (!wmode) wmode="transparent";

    var str="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"";
    str+=" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0\"";
    str+=" width=\""+width+"\"  height=\""+height+"\" id=\""+id+"\" align=\"middle\">";
    str+="<param name=\"movie\" value=\""+movie+"\" />";
    str+="<param name=\"wmode\" value=\""+wmode+"\" />";
    str+="<embed src=\""+movie+"\"" ;
    str+=" width=\""+width+"\" height=\""+height+"\" name=\""+id+"\" align=\"middle\" type=\"application/x-shockwave-flash\"";
    str+=" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> ";
    str+="</object>"; 
    document.writeln(str);
  } 
  return;
}

function Nick_openTurbonick() {
  var url="http://kr.turbonick.nick.com/turbonick/";
  window.open(url,"_blank","width=1020,height=820,scrollbars=1");
}
function Nick_validLogin(f) {
  var i=f["login[username]"];
  var p=f["login[password]"];
  if (i.value.length<2) {
    alert("´Ð È¸¿ø ¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä~");
    i.focus();
    return false;
  }
  if (p.value.length<4) {
    alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
    p.focus();
    return false;
  }
  return true;
}


function Nick_playerWmv(url,width,height,uimode) {
  if (!width) width=240;
  if (!height) height=200;
  if (!uimode) uimode="none";
  var size="width=\""+width+"\" height=\""+height+"\"";
  document.writeln("<object id=\"MTV_videoPlayer\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" "+size+" >");
  document.writeln("<param name=\"URL\" value=\""+url+"\">");
  document.writeln("<param name=\"autostart\" value=\"true\">");
  document.writeln("<param name=\"uimode\" value=\""+uimode+"\">");
  document.writeln("<param name=\"enablecontextmenu\" value=\"false\">");
  document.writeln("<embed type=\"application/x-mplayer2\" src=\""+url+"\" name=\"MTV_videoPlayer\" "+size+"></embed>");
  document.writeln("</object>");
}

