//********************************
//* MKMF ½ºÆä¼È °øÅë JavaScript
//********************************

// MKMF ÇÃ·¹½¬ ¿µ¿ª ½ÃÀÛ
function mkmf_home(){
	window.location.href = "http://mkmf.mnet.com/index.asp"
}
function mkmf10th_voteComplete(){
	window.location.href = "/2008/Special/AwardVoteDo.asp"
}

function mkmf10th_viewMv(id, type){
	GF_PlayVOD(id,type);
}

function mkmf10th_viewImg(src){
	var pwin=window.open('','logo_Img','left=0,top=0,width=200,height=200');
	
	pwin.document.write("<html>");
	pwin.document.write("<body topmargin=0>");
	pwin.document.write("<center>");
	pwin.document.write("<table border='0' width='200' height='200' cellpadding='0' cellspacing='0'>");
	pwin.document.write("	<tr height='200'>");
	pwin.document.write("		<td width='200' align='center' valign='center'>");
	pwin.document.write("			<img name='view' src='" + src + "' contenteditable=false onclick='self.close();'>");
	pwin.document.write("		</td>");
	pwin.document.write("	</tr>");
	pwin.document.write("</table>");	
	pwin.document.write("</center>");
	pwin.document.write("</body>");
	pwin.document.write("</html>");
	

	while(true) {
		if(pwin.document.all["view"].readyState=="complete")break;
	}
}

function goAuctionSpecial(){
	var goUrl = "http://mkmf.auction.co.kr/favorite_item/default.html";
	void(window.open(goUrl,"",""));
}

function top_menu(n){
	var sWinLink;
	
	if (n =="0"){
		sWinLink = "http://www.mnet.com";
	}else if(n =="1"){
		sWinLink = "http://music.mnet.com/MChart/MChart_Top300.asp";
	}else if(n =="2"){
		sWinLink = "http://music.mnet.com/MNew/NewMusic.asp";
	}else if(n =="3"){
		sWinLink = "http://open.mnet.com";
	}else if(n =="4"){
		sWinLink = "http://music.mnet.com/MV/mvMain.asp";
	}else if(n =="5"){
		sWinLink = "http://news.mnet.com/2007/news/news_main.php";
	}else if(n =="6"){
		sWinLink = "http://tvdeep.mnet.com";
	}else if(n =="7"){
		sWinLink = "http://ucsing.mnet.com";
	}else if(n =="8"){
		sWinLink = "http://clubday.mnet.com/";
	}		

	void(window.open(sWinLink,"",""));
	
}

function mkmf_menu(m){
	var g_XMLData = '<?xml version="1.0" ?>';
	g_XMLData = g_XMLData + "<REQPARAM>";
	g_XMLData = g_XMLData + "<MAINNO>" + m + "</MAINNO>";
	g_XMLData = g_XMLData + "<SUBNO></SUBNO>";
	g_XMLData = g_XMLData + "</REQPARAM>";

	var myXMLGNBClass = new SXC();
	var returnXML = myXMLGNBClass.sendData("/2008/L_inc/IncSpecialMenuUrl.asp", g_XMLData, false);
	
	if (returnXML == 'OVER') {
		alert("ÅõÇ¥°¡ Á¾·á µÇ¾ú½À´Ï´Ù.");
		return;
	}
	
	if (!returnXML) {
		alert("Àß¸øµÈ °æ·Î ÀÔ´Ï´Ù.");
		window.location.href = "http://mkmf.mnet.com/";
		return;
	}

	window.location.href = returnXML;	
}

function mkmf10th_setTurnView(n){
	var today = new Date();
	var strDate = "2008-10-" + today.getDate();

	if (strDate == "2008-10-16" || strDate == "2008-10-17") {
		alert("ÅõÇ¥°¡ Á¾·á µÇ¾ú½À´Ï´Ù.");		
		return;
	}else {
		window.location.href = "http://mkmf.mnet.com/2008/Special/AwardVote.asp?vn=" + n;	
	}
}

// MKMF ÇÃ·¹½¬ ¿µ¿ª ³¡

// MKMF À¥ ¿µ¿ª ½ÃÀÛ
function goSpecialEvent() {
	window.location.href = "http://mkmf.mnet.com/2008/Special/SpecialEvent.asp";
}

function goVoteView() {
	window.location.href = "http://mkmf.mnet.com/2008/Special/AwardVoteView.asp";
}

function goReVoteView(pMasterID) {
	window.location.href = "http://mkmf.mnet.com/2008/Special/AwardVoteView.asp?mn=" + pMasterID;
}

function goPhotoList(pYear) {
	var formObj = document.forms[0];
    	
	formObj.target = '_new';
	formObj.action = 'http://photo.mnet.com/photoSearchAward.asp?CateID=1030100&CateID2=&phYear=' + pYear + '&ArtName=&IndexCode=&SearchType=1&Keyword=';
	formObj.submit();	
}

function goHallMore(pYear) {
	window.location.href = "http://mkmf.mnet.com/2008/Special/SpecialHallMore.asp?year=" + pYear;
}

function goYearHall() {
	window.location.href = "http://mkmf.mnet.com/2008/Special/SpecialHall.asp";
}

function goEventPop() {
	var theURL;
	
	theURL = "http://bill.mnet.com/event/2008mkmf/2008mkmf_pop.asp";
	window.open(theURL, "mkmf_pop_1", 'top=100, left=100, width=500, height=566, scrollbars=no, resizing=no');
}

function goEventLayerClose() {
	EventLayer.style.display = "none";
}

function goViewVoteDo(pNo) {
	mkmf10th_setTurnView(pNo);
}
// MKMF À¥ ¿µ¿ª ³¡


