/**
 * @ÀÌ¹ÌÁö ·Ñ¿À¹ö½Ã º¯ÇÏ´Â ½ºÅ©¸³Æ®
 */
function changeImage(filename)
{
	document.orderForm.mainimage.src = filename;
}

/**
 * @È­¸é Áß¾Ó¿¡ »õÃ¢ ¶ç¿ì±â
 */
function CenterWin(url,winname,features)
{
	features = features.toLowerCase(); 
	len = features.length; 
	sumchar= ""; 

	for (i=1; i <= len; i++) // ºóÄ­ Á¦°Å 
	{ 
		onechar = features.substr(i-1, 1); 
		if (onechar != " ") sumchar += onechar; 
	} 

	features = sumchar; 
	sp = new Array(); 
	sp = features.split(',', 10); // ¹è¿­¿¡ ¿É¼ÇÀ» ºÐ¸®ÇØ¼­ ÀÔ·Â 
	splen = sp.length; // ¹è¿­ °¹¼ö 

	for (i=0; i < splen; i++) // width, height °ªÀ» ±¸ÇÏ±â À§ÇÑ ºÎºÐ 
	{ 
		if (sp[i].indexOf("width=") == 0) { 
			width = Number(sp[i].substring(6)); 
		} else if (sp[i].indexOf("height=") == 0) { 
			height = Number(sp[i].substring(7)); 
		} 
	} 
	
	sleft = (screen.width - width) / 2; 
	stop = (screen.height - height) / 2; 
	features = features + ",left=" + sleft + ",top=" + stop; 
	popwin = window.open(url,winname,features); 
}

/**
 * @ÀÌ¹ÌÁö ¸®»çÀÌÁî
 */
function resize()
{
	var p_height, p_width; 
	
	p_width = document.img_view.width+25; 
	p_height = document.img_view.height+60; 

	if (p_width > 1024) p_width = 1024; 
	if (p_height > 768) p_height = 768; 
	self.resizeTo(p_width, p_height); 
}

/**
 * @ÅÇ ¸Þ´º ½ºÅ©¸³Æ®
 */
function tab_01(num)
{
	var obj1 = document.getElementById('img1');
	var obj2 = document.getElementById('img2');
	var cont1 = document.getElementById('cont1');
	var cont2 = document.getElementById('cont2');
	if(num==1){
		obj1.src = '/img/main/tab_lcd_off.jpg';
		obj2.src = '/img/main/tab_notebook_on.jpg';
		cont1.style.display = 'block';
		cont2.style.display = 'none';
	}else{
		obj1.src = '/img/main/tab_lcd_on.jpg';
		obj2.src = '/img/main/tab_notebook_off.jpg';
		cont1.style.display = 'none';
		cont2.style.display = 'block';
	}
}