<!--

	function showLogon()
	{ 
		window.open('/newTVIXHomeLoginPopUp.aspx', '', 'width=200, height=180, left=10,top=30, resizable=no, status=no, menubar=no, toolbar=no, scrollbars=auto');
	}
	
	function showInfo(url)
	{ 
		window.open(url, '', 'width=550, height=350, left=10,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=auto');
	}
	function modiRepPoint(url)
	{ 
		window.open(url, '', 'width=450, height=100, left=100,top=300, resizable=no, status=no, menubar=no, toolbar=no, scrollbars=no');
	}
	
	function requestDelivery(url)
	{ 
		window.open(url, '', 'width=450, height=100, left=100,top=300, resizable=no, status=no, menubar=no, toolbar=no, scrollbars=no');
	}

	//function RollOver(imgName){
	//	 document.images[imgName].src = "/img/"+ imgName +"_.gif"
	//}
	//function RollOut(imgName){
	//	document.images[imgName].src = "/img/"+ imgName +".gif"
	//}
	
	function go_XtocDown(p1, p2)
	{
		
	}
	function MM_popupMsg(msg) 
	{ //v1.0
  		alert(msg);
	}
	function _ws_(id) 
	{ 
		var _object = id.innerHTML; 
		_object = _object.replace("<!--", ""); 
		_object = _object.replace("-->" , ""); 
		document.write(_object); id.id=""; 
	}
	function go_BBSByWriter(url)
	{
		window.open(url, 'Popwin', 'width=670, height=400, left=100,top=300, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=yes');
	}
	function imgView(imgURL) 
	{
		var win_body = "<body topmargin=5 bottommargin=5 leftmargin=5 rightmargin=5>";
		var win_img = "<img src="+imgURL+" onclick=window.close();>";
		
		win = window.open("_blank.htm","image_view", "width=1,height=1, resizable=yes, toolbars=no, menubars=no, scrollbars=no, status=no");
		win.document.write(win_body+win_img);
		//alert(win_body+win_img);
		//return false;
		win_width = win.document.images[0].width+10;
		win_height = win.document.images[0].height+29;
		win.resizeTo(win_width,win_height);
	}
	
	
	<!--
function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}

		var img1 = new Image(); 
		img1.src = "http://www.tvix.co.kr/img/main_41.jpg"; 
		var img2 = new Image(); 
		img2.src = "http://www.tvix.co.kr/img/main_b.jpg";
		


		var maxLoops = 2; 
		var bInterval = 7; 
		var count = 2; 

		function init() 
		{ 
			document.all.photo.filters.blendTrans.apply(); 
			document.images.photo.src = eval("img"+count+".src");
			document.all.photo.filters.blendTrans.play(); 
			
			if (count < maxLoops) 
			{ 
				count++; 
			} 
			else 
			{
				count = 1; 
			} 
			setTimeout("init()", bInterval*1000+2000); 
		} 
			function go_Page()
			{
				if(document.images.photo.src == "http://www.tvix.co.kr/img/main_41.jpg")
				{
					location.href = "http://www.tvix.co.kr/kor/products/HDM4100SH.aspx";
					//alert('1');
				}
				else
				{
					location.href = "http://www.tvix.co.kr/kor/products/pvrm4010sa.aspx";
					//alert('2');
				}
			}
		

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function getCookie( name )
{ 
	var nameOfCookie = name + "="; 
	var x = 0; 
		while ( x <= document.cookie.length ) 
		{ 
		var y = (x+nameOfCookie.length); 
			if ( document.cookie.substring( x, y ) == nameOfCookie ) 
			{ 
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
					endOfCookie = document.cookie.length; 
					return unescape( document.cookie.substring( y, endOfCookie ) ); 
			}

			x = document.cookie.indexOf( " ", x ) + 1; 

		if ( x == 0 ) break; 
		}
	return ""; 
}

function setCookie( name, value, expiredays )
{ 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 

function DisApproval(articleID, boardName, repID, writerID, appName, content)
{
	var url = "/ctrls/boards/disapprovalForm.aspx?aid=" + articleID + "&bname= " + boardName + "&rid= " + repID + "&writerid=" + writerID + "&appName=" + appName + "&content= " + content;
	//alert(url);
	window.open(url,'disapproval','width=620, height=370,top=0, left=40,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=auto');
}

function go_PoP(DIR_serial)
{
	window.open('/kor/AS/PopUpAsPrint.aspx?DIR_serial='+DIR_serial, 'Print', 'width=620, height=700,top=0, left=40,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=auto', '');
}

function go_PoP2(DIR_serial)
{
	window.open('/kor/AS/PopUpAsPrint2.aspx?DIR_serial='+DIR_serial, 'Print', 'width=620, height=700,top=0, left=40,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=auto', '');
}

/*
function chkProduct(productName)
{
	var question = confirm(productName + ' ¸ÂÀ¸½Ã¸é È®ÀÎ ¹öÆ°À» ´­·¯ÁÖ¼¼¿ä.');
	
	if(question)
	{
		return true;	
	}
	else
	{
		return false;
	}
}
*/
function fix()
{}

function viewTextBox(cbExplainADD, explainTab, tbExplain)
{
	var checkbox = document.getElementById(cbExplainADD);
	var divTab = document.getElementById(explainTab);
	var textBox = document.getElementById(tbExplain);
	
	if(checkbox.checked)
	{
		divTab.style.display = '';
		textBox.focus();
	}
	else
	{
		divTab.style.display = 'none';
	}
}
//-->
