﻿function MM_showHideLayers() { //v9.0
    var i, p, v, obj, args = MM_showHideLayers.arguments;
    for (i = 0; i < (args.length - 2); i += 3)
        with (document) if (getElementById && ((obj = getElementById(args[i])) != null)) {
        v = args[i + 2];
        if (obj.style) { obj = obj.style; v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v; }
        obj.visibility = v;
    }
}


function SearchPost(posPost,posAdd)
{
	link = "/Support/etc/SearchPost.aspx?posPost="+posPost+"&posAdd="+posAdd  ;
	window.open(link,"SearchPost","width=500,height=300,toolbar=no ,location=no,directory=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no");
}

function SearchID()
{
	link = "/Support/etc/IDSearch.aspx"  ;
	window.open(link,"IDSearch","width=280,height=100,toolbar=no ,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
}



function SendPost(postnum, Add, posPos, posAdd)
{
	
	
	opener.document.all[posPos].value  = postnum;
	opener.document.all[posAdd].value  = Add;
	
	window.close();
}

function SendID(user_id)
{
	opener.document.aspnetForm.ctl00_ContentPlaceHolder1_Text_UserId.value  = user_id;	
	
	window.close();
}


//////배송
function form_Search(invNo)
	{
		document.inv_submit.invc_no.value = invNo ;
		document.inv_submit.submit();
	}

function Post_Go(invNo)
	{
		document.Post_submit.sid1.value = invNo ;
		document.Post_submit.submit();
	}
	
	
	
function OpenIMG(ImgUrl, IMGwidth, IMGHeight)
{
	link = "/Support/ProductInfo/ProductInfoImgView.aspx?ImgUrl="+ ImgUrl ;
	window.open(link,"IDSearch","width="+IMGwidth+",height="+IMGHeight+",toolbar=no ,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
}


function OpenConsult()
{
	link = "/Support/global/MyConsultPopUp.aspx" ;
	window.open(link,"IDSearch","width=515,height=530,toolbar=no ,location=no,directory=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no");
}


function GoSite(GoArea)
{
	switch(GoArea)
	{
		case "GIGABYTE":
			window.open("http://www.gigabyte.co.kr/","Gigabytes");
			break;
		case "AOPEN":
			window.open("http://aopen.jchyun.com","AOPEN");
			break;						
		case "BENQ":
			window.open("http://benq.jchyun.com/","BENQ");
			break;
		case "CREATIVE":
			window.open("http://www.mycreative.co.kr/","CREATIVE");
			break;			
		case "JADCLUB":
			window.open("http://www.jadclub.co.kr/","JADCLUB");
			break;	
		case "PROJECTOR":
			window.open("http://projector.jchyun.com","PROJECTOR");
			break;																																			
        case "JCHYUN":
			window.open("http://www.jchyun.com","PROJECTOR");
			break;				
		
	}
			
}		

////////////////// 덱스트 업로드 관련...

function ShowProgress()
{
	strAppVersion = navigator.appVersion;
	
	if (document.aspnetForm.ctl00_ContentPlaceHolder1_FileUpload_QFile != null) 
	{
	        if (document.aspnetForm.ctl00_ContentPlaceHolder1_FileUpload_QFile.value != "") 
	        {
		        ProgressID = (new Date()).getTime() % 1000000;
		        if (ProgressID==0) ProgressID = 1000000;
        		
		        if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) {
			        winstyle = "dialogWidth=385px; dialogHeight:160px; center:yes";					
			        window.showModelessDialog("../Progress/show_progress_IE.aspx?ProgressID="+ProgressID, null, winstyle);						
		        }
		        else {
			        winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-110)/2);
			        winstyle="width=380,height=110,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos;
			        window.open("../Progress/show_progress_NN.aspx?ProgressID="+ProgressID,null,winstyle);
		        }
        		
		        document.aspnetForm.action = "QnA.aspx?ProgressID=" + ProgressID;
	        }
	  }
	
	return true;
}


////////////////