﻿
  function winSearch() {
  
    url = "http://www.cyworld.com/kentman";
	window.open(url,"_blank");
  }
  
  function winLogin() {
  
    url = "../Member_Login.aspx";
    //url = "http://www.naver.com";
    window.location.href = url;
	//window.open(url,"LOGIN","width=800, height=500 scrollbars=1  left=70 top=150");
	
  }
  
  function winLogout() {
  
    url = "../member/Member_Logout.aspx";
	window.open(url,"LOGOUT","width=1, height=1 scrollbars=1  left=2000 top=2000");
  }
  function winMember() {
  
    url = "../member/Member_Intro.aspx";
	window.location.href = url;
  }
  
  function winHelp() {
  
    url = "../help/Help_View_Educators.aspx";
	window.open(url,"_blank");
  }
  
  function winVaporHelp() {
  
    url = "../help/Help_View_Vapor.aspx";
	window.open(url,"_blank");
  }
  
  function winTimeBlock() {
  
    //url = "../Member/Member_STEP_Confirm.aspx";
	//window.open(url,"_blank");
	url = "../Member/Member_STEP_Confirm.aspx";
	window.location.href = url;
  }
  
  function winMemberModify() {
  
    url = "../Member/Member_Modify_Confirm.aspx";
	window.location.href = url;
  }
  
  
  function imgSize(which)
  {
    var width = eval("document."+which+".width");
    var height = eval("document."+which+".height");
    var temp = 0; 
    var max_width= 500;   
    
    if ( width > max_width ) 
    {  
       height = height/(width / max_width);
       eval("document."+which+".width = max_width");     
       eval("document."+which+".height = height");
       
    }     
  }
  
  
  function winTask(idx,sidx,type)
    {

    url = "";
    
    if(type == "TASK1" || type == "TASK0" || type == "TASK-1" || type == "TASK-2" || type == "TASK-3")
    {
        url = "../Timeblock/Task_Read_Student.aspx?idx="+idx;  
    }
    
    else if(type == "TEST_E")
    {
        url = "../Test/Test_Read_Educators.aspx?CIDX="+idx;
    }
    else if(type == "ELEARNING")
    {
        url = "../eLearning/eLearning_Read_Student.aspx?idx="+idx;
    }
    else if(type == "HOMEWORK")
    {

       url = "../homework/Homework_Read_Student.aspx?idx="+idx;
    }
    else if(type == "ISSUE")
    {
        url = "../ISSUE/Issue_Read_Student.aspx?idx="+idx;
    }
    else if(type == "MILESTONE")
    {
        url = "../Timeblock/Milestone_Read_Student.aspx?idx="+idx;
    }
    
    
    
    window.open(url,"TASK","width=670, height=690 scrollbars=1  left=100 top=40");
    
  
}


function winMessageEvent()
{
    url = "../Winner/Winner_View.aspx";
	window.location.href= url;
    
}


  




