﻿/*
###########################################################################
# 프로그램ID : 
# 프로그램명 : 삼성카메라 사이트(국문/GLOBAL/관리자/파트너) 공통스크립트
# 개발자 : 인피리츠 최주현 팀장
# 설명 : 전체사이트 공통사용 스크립트 함수
# 2005/05/31 최주현 최초작성
# 변경이력 : 날짜/개발자/변경내용
###########################################################################
*/

var	_upperSerialCompare = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
var	_upperValue = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var	_lowerValue = 'abcdefghijklmnopqrstuvwxyz';
var	_etcValue   = ' ~`!@#$%%^&*()-_=+\|[{]};:\'\",<.>/?';
var	_phoneValue = '0123456789-';
var	_enterValue = '\r\n';


function IsCheckSerial(checkvalue) {
/*	var i;
	for(i=0;i<_upperValue.length;i++) {
		if(checkvalue.toUpperCase() == _upperSerialCompare.charAt(i)) {
			return true;
		}
	}
	return false;*/
}

// 한 글자가 영문 대문자인가?
function IsUpper(value) {
  var   i;
  for(i=0;i<_upperValue.length;i++) {
    if(value == _upperValue.charAt(i)) {
      return true;
    }
  }
  return false;
}
// 한 글자가 영문 소문자인가?
function IsLower(value) {
  var   i;
  for(i=0;i<_lowerValue.length;i++) {
    if(value == _lowerValue.charAt(i)) {
      return true;
    }
  }
  return false;
}

// 업로드 상태바
function uploadmoniter() {
	strAppVersion = navigator.appVersion;
	
	//if (eval(uploadcnt) > 0) {
		if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) {
			winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes";
			window.showModelessDialog("/dext/show_progress.asp?nav=ie", 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("/dext/show_progress.asp?nav=ns",null,winstyle);
		}
	//}
	return true;
}

function textAutoTab(currElm,nextElm,n){
//	OnKeyUp=textAutoTab("현재elm명", "옮겨갈 elm명", "글자수")
  thisValue = document.all(currElm).value;
  nextControl = document.all(nextElm);
  if(thisValue.length==parseInt(n)){
    nextControl.focus();
  }
}

// 파일다운로드
function filedownload(file_value, path_value) { //v2.0
	f = document.form_fileupload;
	window.open("/common/filedownloadmonitor.asp?result=no",'down','top=0,left=0,width=445,height=445,scrollbars=0,resizable=0');
	f.action = "/common/filedownloadmonitor.asp";
	f.file.value = file_value;
	f.path.value = path_value;
	f.submit();
}

function f_pagingmove(page) {
	var f = document.paging;
	f.page.value = page;
	f.submit();
}

/* 날자선택 함수 */  
function f_select_date(f, field) {			//달력 호출 함수
	window.open("/library/select_date.asp?object="+field,"select_data","width=200,height=200,toolbars=0,scrollbars=1,resizable=1");
}

/* 이미지 미리보기 VIEW */  
function f_img_view(f_field_name,f_img_name) {
		f_img_name.src = f_field_name.value;
		f_img_name.style.visibility = "visible";
}

function CheckStr(strOriginal, strFind, strChange){
   var position, strOri_Length;
   position = strOriginal.indexOf(strFind);
   while (position != -1) {
      strOriginal = strOriginal.replace(strFind, strChange);
      position = strOriginal.indexOf(strFind);
   }
   strOri_Length = strOriginal.length;
   return strOri_Length;
}


/* window.open */
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

/* 롤오버 관련 함수 */
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* 레이어 관련 함수 */
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(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 doallcheck(field_name) {
	if (field_name == undefined) {
		field_name = 'diselect';
	}
	var frm = document.db_job;
	if(frm.allcheck.checked == true) {
		frm.allcheck.checked == true;
		checkall('db_job',field_name,true);
	} else {
		frm.allcheck.checked == false;
		checkall('db_job',field_name,false);
	}
}

/* 데이터 일괄 처리 관련 전체 체크 함수 실행 */
function checkall(formname,checkname,thestate){
	var el_collection=eval("document.forms."+formname+"."+checkname)
	if(el_collection != null) {
		if(el_collection.length) {
			for (c=0;c<el_collection.length;c++)
				el_collection[c].checked=thestate
		} else {
			el_collection.checked=thestate;
		}
	}
}

function allcheck(formname,checkname,v){
	var thestate = false;
	if(v.checked == true) {
		var thestate = true;
	}
	var el_collection=eval("document.forms."+formname+"."+checkname)
	if(el_collection != null) {
		if(el_collection.length) {
			for (c=0;c<el_collection.length;c++)
				el_collection[c].checked=thestate
		} else {
			el_collection.checked=thestate;
		}
	}
}

// 체크리셋
function checkreset(formname,checkname){
	var thestate = false;
	var el_collection=eval("document.forms."+formname+"."+checkname)
	if(el_collection != null) {
		if(el_collection.length) {
			for (c=0;c<el_collection.length;c++)
				el_collection[c].checked=thestate
		} else {
			el_collection.checked=thestate;
		}
	}
}

/* 데이터 일괄 처리 관련 체크 데이타 삭제 */
function check_data_delete(f) {
	var checknum = f.elements.length;
	for(var i=0; i<checknum; i++) {
		var checkobj = eval("f.elements["+i+"]");
		if(checkobj.checked == true) {
			break;
		}
	}
	if(i == checknum) {
		alert('삭제할 데이터를 선택하십시오.');
		return false;
	} else {
	   if(confirm("선택된 데이터 삭제합니까?\n\n삭제 후 데이터 복구 불가능합니다.")==true) {
			f.db_job.value = "D";
			f.submit();
			return true;
		}
	}
}

/* 데이터 연결 해제함수 */
function data_con(f,db_job) {
	var checknum = f.elements.length;
	for(var i=0; i<checknum; i++) {
		var checkobj = eval("f.elements["+i+"]");
		if(checkobj.checked == true) {
			break;
		}
	}
	var str = "";
	if(db_job == "Y") {
		str = "연결";
	} else if(db_job == "N") {
		str = "연결해제";
	} else {
		str = "";
	}
	if(i == checknum) {
		alert(str+' 할 데이터를 선택하십시오.');
		return false;
	} else {
	   if(confirm("선택된 데이터를 "+str+" 합니까?")==true) {
			f.db_job.value = db_job;
			f.submit();
			return true;
		}
	}
}

/* 데이터 일괄 처리 관련 체크 데이타 수정 */
function check_data_up(f,db_job) {
	var checknum = f.elements.length;
	for(var i=0; i<checknum; i++) {
		var checkobj = eval("f.elements["+i+"]");
		if(checkobj.checked == true) {
			break;
		}
	}
	var str = "";
	if(db_job == "Y") {
		str = "OPEN";
	} else if(db_job == "N") {
		str = "CLOSE";
	} else {
		str = "순서조정";
	}
	if(i == checknum) {
		alert(str+' 할 데이터를 선택하십시오.');
		return false;
	} else {
	   if(confirm("선택된 데이터를 "+str+" 합니까?")==true) {
			f.db_job.value = db_job;
			f.submit();
			return true;
		}
	}
}

/* 제품단종/런칭 구분을 위한 체크함수 */
function check_data_up2(f,db_job,bigo) {
	var checknum = f.elements.length;
	for(var i=0; i<checknum; i++) {
		var checkobj = eval("f.elements["+i+"]");
		if(checkobj.checked == true) {
			break;
		}
	}
	f.bigo.value = bigo;
	var str = "";
	if(bigo == "1") {        // 데이터삭제
		str = "삭제";
	} else if(bigo == "2") { // open/close
		if(db_job == "Y") {
			str = "OPEN";
		} else if(db_job == "N") {
			str = "CLOSE";
		}
	} else if(bigo == "3") { // 단종/런칭
		if(db_job == "Y") {
			str = "단종";
		} else if(db_job == "N") {
			str = "런칭";
		}
	} else if(bigo == "4") { // 순서조정
		str = "순서조정";
	} else if(bigo == "5") { // 신제품등록/해제
		if(db_job == "Y") {
			str = "신제품 등록";
		} else if(db_job == "N") {
			str = "신제품 해제";
		}
	} else {
	}
	if(i == checknum) {
		alert(str+' 할 데이터를 선택하십시오.');
		return false;
	} else {
	   if(confirm("선택된 데이터를 "+str+" 합니까?")==true) {
			f.db_job.value = db_job;
			f.submit();
			return true;
		}
	}
}

/* 페이지 이동 */
function go_page_move(httpd) {
   location.href = httpd;
}

function delete_move(httpd) {
   if(confirm("선택된 데이터를 삭제 합니까?")==true) {
	   iframe1.location.href = httpd;
   }
}
function delete_noframemove(httpd) {
   if(confirm("선택된 데이터를 삭제 합니까?")==true) {
	   location.href = httpd;
   }
}

function alert_move(msg,uri) {
   if(confirm(msg)==true) {
	   location.replace(uri);
   }
}

/* 영문,숫자조합여부 체크 */
function char_check(fstr,str) {
	var k = 0;
	for(k = 0; k < str.length; k++) {
	   if (('0'<=str.charAt(k) && '9'>=str.charAt(k)) || ('A'<=str.charAt(k) && 'Z'>= str.charAt(k)) || ('a'<=str.charAt(k) && 'z'>=str.charAt(k))) { 
	      ;
	   } else  {
	      alert(fstr+ " 는(은) 영문,숫자만 입력 가능합니다..");
	      return "1";
	   }  
	}
}

/* 숫자체크 */
function number_check(fstr,str) {
	var k = 0;
	for(k = 0; k < str.length; k++) {
	   if (('0'<=str.charAt(k) && '9'>=str.charAt(k))) { 
	      ;
	   } else  {
	      alert(fstr+ "은(는) 숫자 이어야합니다.");
	      return "1";
	   }  
	}
}

/* * * * * * * * * * * * *
 input 이미지타입 border 없애기
 * * * * * * * * * * * * */

function inputType_noBorder()
{
	// border 없앨 type
	var notBorderType = ['checkbox', 'radio', 'image'];

	inputObj = document.body.all.tags("INPUT");
	inputLen = inputObj.length;
	for(i=0; i<inputLen; i++)
	{
		notBorderTypeCnt = notBorderType.length;
		for(j=0; j<notBorderTypeCnt; j++)
		{
			if(inputObj[i].type != notBorderType[j]) continue;
			inputObj[i].style.border = 0;
		}
	}
}

// 실행
//window.onload = inputType_noBorder;
// /inc/bottom.asp 사용

/* ##### Active X Control 패치대비 플래시, 미디어플레이어 함수 ######## */
// 플래시 함수
function flash(w,h,u,t) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' value='transparent'>");
	}
	document.write("<embed src='"+u+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed></object>");	
}
function flash_add(w,h,u,t,nm,vr) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+nm+"' name='"+nm+"' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' value='transparent'>");
	}
	if(vr) {
		document.write("<param name='FlashVars' value='"+vr+"'>");
	}
	document.write("<embed src='"+u+"' id='"+nm+"' name='"+nm+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed></object>");	
}

// 미디어플레이어
function mediaplayer(u) {
	document.write("<embed src='"+u+"'></embed>");	
}

// 미디어플레이어 : 제어가 필요한 경우
function controlplay(u,w,h) {
	document.write ("<OBJECT classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' codeBase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' height='"+h+"' width='"+w+"' id='mplayer' onfocus='this.blur();' type='application/x-oleobject' VIEWASTEXT>");
	document.write ("<param name='AudioStream' VALUE='-1'>");
	document.write ("<param name='AutoSize' VALUE='0'>");
	document.write ("<param name='autoStart' VALUE='false'>");
	document.write ("<param name='AnimationAtStart' VALUE='-1'>");
	document.write ("<param name='AllowScan' VALUE='-1'>");
	document.write ("<param name='AllowChangeDisplaySize' VALUE='-1'>");
	document.write ("<param name='AutoRewind' VALUE='0'>");
	document.write ("<param name='Balance' VALUE='0'>");
	document.write ("<param name='BufferingTime' VALUE='10'>");
	document.write ("<param name='ClickToPlay' VALUE='0'>");
	document.write ("<param name='CursorType' VALUE='0'>");
	document.write ("<param name='currentPosition' VALUE='0'>");
	document.write ("<param name='CurrentMarker' VALUE='0'>");
	document.write ("<param name='DisplayBackColor' VALUE='0'>");
	document.write ("<param name='DisplayForeColor' VALUE='16777215'>");
	document.write ("<param name='DisplayMode' VALUE='0'>");
	document.write ("<param name='DisplaySize' VALUE='4'>");
	document.write ("<param name='enabled' VALUE='true'>");
	document.write ("<param name='enableContextMenu' VALUE='false'>");
	document.write ("<param name='EnablePositionControls' VALUE='-1'>");
	document.write ("<param name='EnableFullScreenControls' VALUE='0'>");
	document.write ("<param name='EnableTracker' VALUE='-1'>");
	document.write ("<param name='invokeURLs' VALUE='false'>");
	document.write ("<param name='Language' VALUE='-1'>");
	document.write ("<param name='Mute' VALUE='0'>");
	document.write ("<param name='PlayCount' VALUE='1'>");
	document.write ("<param name='PreviewMode' VALUE='0'>");
	document.write ("<param name='rate' VALUE='true'>");
	document.write ("<param name='SAMIStyle' VALUE=''>");
	document.write ("<param name='SelectionStart' VALUE='-1'>");
	document.write ("<param name='SendOpenStateChangeEvents' VALUE='-1'>");
	document.write ("<param name='SendWarningEvents' VALUE='-1'>");
	document.write ("<param name='SendErrorEvents' VALUE='-1'>");
	document.write ("<param name='SendKeyboardEvents' VALUE='0'>");
	document.write ("<param name='SendMouseClickEvents' VALUE='-1'>");
	document.write ("<param name='SendMouseMoveEvents' VALUE='0'>");
	document.write ("<param name='SendPlayStateChangeEvents' VALUE='-1'>");
	document.write ("<param name='ShowCaptioning' VALUE='0'>");
	document.write ("<param name='ShowControls' VALUE='-1'>");
	document.write ("<param name='ShowAudioControls' VALUE='-1'>");
	document.write ("<param name='ShowDisplay' VALUE='0'>");
	document.write ("<param name='ShowGotoBar' VALUE='0'>");
	document.write ("<param name='ShowPositionControls' VALUE='0'>");
	document.write ("<param name='ShowStatusBar' VALUE='-1'>");
	document.write ("<param name='ShowTracker' VALUE='-1'>");
	document.write ("<param name='TransparentAtStart' VALUE='0'>");
	document.write ("<param name='VideoBorderWidth' VALUE='0'>");
	document.write ("<param name='VideoBorderColor' VALUE='0'>");
	document.write ("<param name='VideoBorder3D' VALUE='0'>");
	document.write ("<param name='Volume' VALUE='50'>");
	document.write ("<param name='windowlessVideo' VALUE='false'>");
	document.write ("<param name='URL' VALUE='"+u+"'>");
	document.write ("<param name='defaultFrame' VALUE=''>");
	document.write ("<param name='baseURL' VALUE=''>");
	document.write ("<param name='uiMode' VALUE='full'>");
	document.write ("<param name='stretchToFit' VALUE='true'>");
	document.write ("<param name='fullScreen' VALUE=''>");
	document.write ("<param name='SAMILang' VALUE=''>");
	document.write ("<param name='SAMIFilename' VALUE=''>");
	document.write ("<param name='captioningID' VALUE=''>");
	document.write ("</OBJECT>");
/*	document.write ("<embed height='"+h+"' width='"+h+"' url='"+url+"' rate='true' balance='0' currentposition='0' defaultframe='' playcount='1' autostart='true' currentmarker='0' invokeurls='false' baseurl='' volume='80' mute='0' uimode='full' stretchtofit='true' windowlessvideo='false' enabled='true' enablecontextmenu='false' fullscreen='false' samistyle='' samilang='' samifilename='' captioningid='' src='"+url+"'>");
	document.write ("</embed>");*/
}

function controlplay_auto(u,w,h) {
	document.write ("<OBJECT classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' codeBase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' height='"+h+"' width='"+w+"' id='mplayer' onfocus='this.blur();' type='application/x-oleobject' VIEWASTEXT>");
	document.write ("<param name='AudioStream' VALUE='-1'>");
	document.write ("<param name='AutoSize' VALUE='0'>");
	document.write ("<param name='autoStart' VALUE='true'>");
	document.write ("<param name='AnimationAtStart' VALUE='-1'>");
	document.write ("<param name='AllowScan' VALUE='-1'>");
	document.write ("<param name='AllowChangeDisplaySize' VALUE='-1'>");
	document.write ("<param name='AutoRewind' VALUE='0'>");
	document.write ("<param name='Balance' VALUE='0'>");
	document.write ("<param name='BufferingTime' VALUE='10'>");
	document.write ("<param name='ClickToPlay' VALUE='0'>");
	document.write ("<param name='CursorType' VALUE='0'>");
	document.write ("<param name='currentPosition' VALUE='0'>");
	document.write ("<param name='CurrentMarker' VALUE='0'>");
	document.write ("<param name='DisplayBackColor' VALUE='0'>");
	document.write ("<param name='DisplayForeColor' VALUE='16777215'>");
	document.write ("<param name='DisplayMode' VALUE='0'>");
	document.write ("<param name='DisplaySize' VALUE='4'>");
	document.write ("<param name='enabled' VALUE='true'>");
	document.write ("<param name='enableContextMenu' VALUE='false'>");
	document.write ("<param name='EnablePositionControls' VALUE='-1'>");
	document.write ("<param name='EnableFullScreenControls' VALUE='0'>");
	document.write ("<param name='EnableTracker' VALUE='-1'>");
	document.write ("<param name='invokeURLs' VALUE='false'>");
	document.write ("<param name='Language' VALUE='-1'>");
	document.write ("<param name='Mute' VALUE='0'>");
	document.write ("<param name='PlayCount' VALUE='1'>");
	document.write ("<param name='PreviewMode' VALUE='0'>");
	document.write ("<param name='rate' VALUE='true'>");
	document.write ("<param name='SAMIStyle' VALUE=''>");
	document.write ("<param name='SelectionStart' VALUE='-1'>");
	document.write ("<param name='SendOpenStateChangeEvents' VALUE='-1'>");
	document.write ("<param name='SendWarningEvents' VALUE='-1'>");
	document.write ("<param name='SendErrorEvents' VALUE='-1'>");
	document.write ("<param name='SendKeyboardEvents' VALUE='0'>");
	document.write ("<param name='SendMouseClickEvents' VALUE='-1'>");
	document.write ("<param name='SendMouseMoveEvents' VALUE='0'>");
	document.write ("<param name='SendPlayStateChangeEvents' VALUE='-1'>");
	document.write ("<param name='ShowCaptioning' VALUE='0'>");
	document.write ("<param name='ShowControls' VALUE='-1'>");
	document.write ("<param name='ShowAudioControls' VALUE='-1'>");
	document.write ("<param name='ShowDisplay' VALUE='0'>");
	document.write ("<param name='ShowGotoBar' VALUE='0'>");
	document.write ("<param name='ShowPositionControls' VALUE='0'>");
	document.write ("<param name='ShowStatusBar' VALUE='-1'>");
	document.write ("<param name='ShowTracker' VALUE='-1'>");
	document.write ("<param name='TransparentAtStart' VALUE='0'>");
	document.write ("<param name='VideoBorderWidth' VALUE='0'>");
	document.write ("<param name='VideoBorderColor' VALUE='0'>");
	document.write ("<param name='VideoBorder3D' VALUE='0'>");
	document.write ("<param name='Volume' VALUE='50'>");
	document.write ("<param name='windowlessVideo' VALUE='false'>");
	document.write ("<param name='URL' VALUE='"+u+"'>");
	document.write ("<param name='defaultFrame' VALUE=''>");
	document.write ("<param name='baseURL' VALUE=''>");
	document.write ("<param name='uiMode' VALUE='full'>");
	document.write ("<param name='stretchToFit' VALUE='true'>");
	document.write ("<param name='fullScreen' VALUE=''>");
	document.write ("<param name='SAMILang' VALUE=''>");
	document.write ("<param name='SAMIFilename' VALUE=''>");
	document.write ("<param name='captioningID' VALUE=''>");
	document.write ("</OBJECT>");
/*	document.write ("<embed height='"+h+"' width='"+h+"' url='"+url+"' rate='true' balance='0' currentposition='0' defaultframe='' playcount='1' autostart='true' currentmarker='0' invokeurls='false' baseurl='' volume='80' mute='0' uimode='full' stretchtofit='true' windowlessvideo='false' enabled='true' enablecontextmenu='false' fullscreen='false' samistyle='' samilang='' samifilename='' captioningid='' src='"+url+"'>");
	document.write ("</embed>");*/
}

// 사이트 링크
function f_goglobalsite(url) {
	if(url) {
		window.open(url,'link','');
	}
}

function f_check_usr_email(usr_email1,lang_fg) {
	var str1 = "";
	var str2 = "";
	var str3 = "";
	var str4 = "";
	var str5 = "";
	var str6 = "";
	lang_fg = lang_fg.toUpperCase();
	
	if(lang_fg == "KO") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "AR") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "DA") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "DE") {
		str1 = "Tragen Sie bitte die rechte email Art ein.";
		str2 = "Tragen Sie bitte die rechte email Art ein.";
		str3 = "Tragen Sie bitte die rechte email Art ein.";
		str4 = "Tragen Sie bitte die rechte email Art ein.";
		str5 = "Tragen Sie bitte die rechte email Art ein.";
	} else if(lang_fg == "EN") {
		str1 = "Please enter the right email type.";
		str2 = "Please enter the right email type.";
		str3 = "Please enter the right email type.";
		str4 = "Please enter the right email type.";
		str5 = "Please enter the right email type.";
	} else if(lang_fg == "ES") {
		str1 = "Incorpore por favor el tipo derecho del email.";
		str2 = "Incorpore por favor el tipo derecho del email.";
		str3 = "Incorpore por favor el tipo derecho del email.";
		str4 = "Incorpore por favor el tipo derecho del email.";
		str5 = "Incorpore por favor el tipo derecho del email.";
	} else if(lang_fg == "FI") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "FR") {
		str1 = "Veuillez ecrire le bon type d'email.";
		str2 = "Veuillez ecrire le bon type d'email.";
		str3 = "Veuillez ecrire le bon type d'email.";
		str4 = "Veuillez ecrire le bon type d'email.";
		str5 = "Veuillez ecrire le bon type d'email.";
	} else if(lang_fg == "ID") {
		str1 = "Please enter the right email type.";
		str2 = "Please enter the right email type.";
		str3 = "Please enter the right email type.";
		str4 = "Please enter the right email type.";
		str5 = "Please enter the right email type.";
	} else if(lang_fg == "IRA") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "IT") {
		str1 = "Formato E-MAIL non valido.";
		str2 = "Formato E-MAIL non valido.";
		str3 = "Formato E-MAIL non valido.";
		str4 = "Formato E-MAIL non valido.";
		str5 = "Formato E-MAIL non valido.";
	} else if(lang_fg == "JP") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "NL") {
		str1 = "Voer uw email-adres in.";
		str2 = "Voer uw email-adres in.";
		str3 = "Voer uw email-adres in.";
		str4 = "Voer uw email-adres in.";
		str5 = "Voer uw email-adres in.";
	} else if(lang_fg == "PL") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "PT") {
		str1 = "O formato de e-mail esta incorreto.";
		str2 = "O formato de e-mail esta incorreto.";
		str3 = "O formato de e-mail esta incorreto.";
		str4 = "O formato de e-mail esta incorreto.";
		str5 = "O formato de e-mail esta incorreto.";
	} else if(lang_fg == "RU") {
		str1 = "Пожалуйста впишите правый тип email.";
		str2 = "Пожалуйста впишите правый тип email.";
		str3 = "Пожалуйста впишите правый тип email.";
		str4 = "Пожалуйста впишите правый тип email.";
		str5 = "Пожалуйста впишите правый тип email.";
	} else if(lang_fg == "SV") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "SE") {
		str1 = "ogiltig e-postadress";
		str2 = "ogiltig e-postadress";
		str3 = "ogiltig e-postadress";
		str4 = "ogiltig e-postadress";
		str5 = "ogiltig e-postadress";
	} else if(lang_fg == "TR") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "TS") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "ZH-CN") {
		str1 = "E-Mail에 사용할 수 없는 문자가 입력되었습니다.";
		str2 = "E-Mail에 '@'가 존재하지 않습니다.";
		str3 = "E-Mail에 2개 이상의 '@'가 존재합니다.";
		str4 = "E-Mail에 메일서버명이 존재하지 않습니다.";
		str5 = "E-Mail의 메일서버명은 최소 2자리 이상입니다.";
	} else if(lang_fg == "ZH-TW") {
		str1 = "電子郵件地址.";
		str2 = "電子郵件地址.";
		str3 = "電子郵件地址.";
		str4 = "電子郵件地址.";
		str5 = "電子郵件地址.";
	}

	invalidchars = " /:,#$%^%^*?!~;"
	usr_email = usr_email1;
	for(i = 0 ; i < invalidchars.length ; i++) {
		badchar = invalidchars.charAt(i)
		if(usr_email.indexOf(badchar,0) > -1) {
			alert(str1+"[" + badchar +"]")
			return false; 
		}
	}
	atpos = usr_email.indexOf("@",1)
	if(atpos == -1) {
		alert(str2)
		return false; 
	}
	if(usr_email.indexOf("@",atpos+1) > -1) {
		alert(str3)
		return false; 
	}
	periodpos = usr_email.indexOf(".",atpos)
	if(periodpos == -1) {
		alert(str4)
		return false; 
	}
	if(periodpos + 3 > usr_email.length) {
		alert(str5)
		return false; 
	}
	return true;
}

// select 상자
function selectBox(startNum, endNum, nowNum) {
	var boxSet = new Array();
	for(var k=startNum; k<=endNum; k++) {
		Sel = (nowNum && nowNum == k) ? ' selected' : '';
		boxSet[k] = '<option value="' + k + '"' + Sel + '>' + k + '</option>';
	}
	document.write(boxSet.join());
	return;
}

// 날짜얻기
function setDay(obj) {
	// find form
	Fm = obj;
	while(Fm.tagName != "FORM") {
		Fm = Fm.parentElement;
		/////////////// 테스트해보길 getElementsByTagName
		// IE 이외는 tagName 을 인식못함
		if(Fm == null) {
			FsLen = document.forms.length;
			for(var i=0; i<FsLen; i++) {
				Fm = document.forms[i];
				FLen = Fm.length;
				for(k=0; k<FLen; k++) {
					El = Fm.elements[k];
					if(obj.name == El.name) {
						FsLen = 0;
						break;
					}
				}
			}
			break;
		}
	}

	if(typeof(Fm) != "object") return;

	var nameHead = obj.name.substr(0, obj.name.lastIndexOf("_"));
	yearObj = Fm[nameHead + "_year"];
	monthObj = Fm[nameHead + "_month"];
	dayObj = Fm[nameHead + "_day"];

	// 날짜 select 없으면 끝
	if(typeof(dayObj) != "object") return;

	var preValue = "";
	if(dayObj.length) preValue = dayObj.options[dayObj.selectedIndex].value;

	TM = new Date(yearObj.options[yearObj.selectedIndex].value, monthObj.options[monthObj.selectedIndex].value, 1);
	RTM = TM - 86400000;
	TM = new Date(RTM);
	var dateCnt = TM.getDate();
	for(var i=0; i<dayObj.length; i++) {
		dayObj.options[0] = null;
	}

	var opSel = false;
	for(var i=0; i<=dateCnt; i++) {
		//if(preValue) opSel = (preValue == i+1) ? true : false;
		//dayObj.options[i] = new Option(i+1, i+1, false, opSel);

		dayTxt = i ? i : "--";
		dayVal = i ? i : -1;
		if(preValue) opSel = (preValue == i) ? true : false;
		dayObj.options[i] = new Option(dayTxt, dayVal, false, opSel);
	}
	return;
}

var nowDate = new Date();
var nowYear = nowDate.getFullYear();
var nowMonth = nowDate.getMonth()+1;
var nowDay = nowDate.getDate();

var tempDate = new Date(nowYear, nowMonth, 1);
tempDate = tempDate - 86400000;
var prevDate = new Date(tempDate);
var dayCnt = prevDate.getDate();

// 검색날짜 간단
function quickDateSet(thisFm, startName, termDay) {
	var Len = thisFm.length;
	for(var i=0; i<Len; i++) {
		E = thisFm.elements[i];
		if(E.type.indexOf("select") < 0) continue;
		else if(E.name == startName) break;
	}

	startYearObj = thisFm.elements[i];
	startMonthObj = thisFm.elements[i+1];
	endYearObj = thisFm.elements[i+3];
	endMonthObj = thisFm.elements[i+4];

	ymSet = ["year", "month"];
	for(var j=0; j<5; j++) {
		chkObj = thisFm.elements[j];
		if(j%3 > 1) continue;
		else if(typeof(chkObj) != "object") return;
		else if(chkObj.name.indexOf("_" + ymSet[j%3]) < 0) {
			alert("정상적인 object 선택할 수 없습니다.");
			return;
		}
	}

	startDayObj = thisFm.elements[i+2];
	endDayObj = thisFm.elements[i+5];

	// 테스트용
	nowDate = new Date(endYearObj.value, (endMonthObj.value-1), endDayObj.value);

	var termDate = nowDate - (86400000 * (termDay-1));
	//var startDate = new Date(nowYear, nowMonth, nowDay-termDay+1);
	var startDate = new Date(termDate);
	var startYear = startDate.getFullYear();
	var startMonth = startDate.getMonth()+1;
	var startDay = startDate.getDate();

	startYearObj.value = startYear;
	startMonthObj.value = startMonth;
	getDay3(thisFm.elements[i]);
	nowDay = document.LLL.ddd_lll_day.value;
	thisFm.elements[i+2].value = (termDay > 29) ? ((nowDay < startDay) ? thisFm.elements[i+2].options[thisFm.elements[i+2].length-1].value : nowDay) : startDay;
	//alert(nowDay+" , "+startDay);
/*
	thisFm.elements[i+3].value = nowYear;
	thisFm.elements[i+4].value = nowMonth;
	getDay3(thisFm.elements[i+3]);
	thisFm.elements[i+5].value = nowDay;
*/
	//alert(nowYear+"년 "+nowMonth+"월 "+nowDay+"일");
}

function callprint() {
	document.write ("<object id='factory' style='display:none' classid='clsid:1663ed61-23eb-11d2-b92f-008048fdd814' codebase='/common/ScriptX.cab#Version=6,1,431,8'></object>");
}

// 외국인 등록번호 체크
function fgn_no_chksum(reg_no) {
	var sum = 0;
	var odd = 0;

	buf = new Array(13);
	for (i = 0; i < 13; i++) buf[i] = parseInt(reg_no.charAt(i));
	odd = buf[7]*10 + buf[8];

	if (odd%2 != 0) {
		return false;
	}
	if ((buf[11] != 6)&&(buf[11] != 7)&&(buf[11] != 8)&&(buf[11] != 9)) {
		return false;
	}
   	
	multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
	for(i = 0, sum = 0; i < 12; i++) sum += (buf[i] *= multipliers[i]);
	sum=11-(sum%11);
	if(sum>=10) sum-=10; sum += 2;
	if(sum>=10) sum-=10;
	if(sum != buf[12]) {
		return false;
	} else {
		return true;
	}
}

function russiasvr() {
	window.open('http://www.samsung.ru/support/services','_blank','');
}

function fixWinOpen(url){
 //var x = window.screen.Width;
 var x = "1025";
 var y = window.screen.Height;
 window.open(url,"_blank","menubar=yes, toolbar=yes, location=yes, status=yes, resizable=yes, scrollbars=yes,top=0,left=0,width=" + x + ", height=" + y);
// window.close();
}


// 글자수 체크
function fnCheckLen(objCountEle, objTxtEle, intMaxLen) {
	var intTotalLength = 0;
	var strContent = objTxtEle.value
  for (i=0; i<strContent.length; i++) {
		intValue = strContent.charCodeAt(i);
		if (intValue > 255)       intTotalLength += 2;
		else                      intTotalLength += 1;
	}

  objCountEle.value = String(intTotalLength);
  if (intTotalLength > intMaxLen) {
		alert (intMaxLen + 'Bytes를 초과할 수 없습니다');
		objTxtEle.value = fnGetTxt(objTxtEle.value, intMaxLen, 1);
		objCountEle.value = intMaxLen;
		return;
	}
}

function fnGetTxt(strContent, intLen, intType) {
	var chLetter, j;
	var intTotalLength = 0;
	var strTxt = '';

	for (i=0; i<strContent.length; i++) {
  	j = i + 1;
  	intValue = strContent.charCodeAt(i);
  	chLetter = strContent.substring(i, j);
  	strTxt += chLetter;

		if (intType == 1) {
			if (intValue > 255)       intTotalLength += 2;
			else                      intTotalLength += 1;
		}
		else      intTotalLength += 1;
		if (intTotalLength >= intLen) {
			break;
		}
	}
	return strTxt;
}


// Flash publish
function swfprint(furl,fwidth,fheight,transoption)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]> <-->');
	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');
	if (transoption == "t")	{
		document.write(' wmode="transparent"');
	} else if	(transoption == "o")	{
		document.write(' wmode="opaque"');
	}
	document.write('></object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');
}

//product tab
function funcChange(objNum) {	  
	for(i=0;i<7;i++) {          
		if(objNum==i) {
			document.getElementById("protab_"+i).style.display = "block";               
		} else {              
			document.getElementById("protab_"+i).style.display = "none";
		}
	}
}

function newfuncChange(objNum,maxi) {	  
	for(i=0;i<eval(maxi);i++) {          
		if(objNum==i) {
			document.getElementById("protab_"+i).style.display = "block";               
		} else {              
			document.getElementById("protab_"+i).style.display = "none";
		}
	}
}

// menuOver
function imageOver(obj) {
	obj.src = obj.src.replace("off.gif", "on.gif");
}
function imageOut(obj) {
	obj.src = obj.src.replace("on.gif", "off.gif");
}

//footer
function menushow() {
	document.getElementById("Menu").style.display = "block";
}
function menuhidden() {
	document.getElementById("Menu").style.display = "none";
}
function numshow( icnt ) {
	document.getElementById("Num"+icnt).style.display = "block";
}
function numhidden( icnt ) {
	document.getElementById("Num"+icnt).style.display = "none";
}

//input text
function cnj_search(field,type){ 
if (!field.value && type) field.value = field.defaultValue;  // click before   
} 
function cnj_search2(field,type){ 
if (field.value == field.defaultValue && type) field.value = ''; // click after
} 

// TOP FLASH DIV HEIGHT ADJUST 20070822
function dynamicDiv(divH) {
  document.getElementById("navi_flash").style.height = divH+"px";
}

//원격 AS 팝업 2007-09-07 By JA Nam
function RemoteAs_kr() {
	window.open('http://www.cameraservice.kr/remoteas/client/kr/index.htm', 'RemoteAS', 'scrollbars=yes,resizeable=yes,width=800,height=700');
}

function RemoteAs_com() {
	window.open('http://www.cameraservice.kr/remoteas/client/com/index.htm', 'RemoteAS', 'scrollbars=yes,resizeable=yes,width=700,height=650');
}

function RemoteAs_usa() {
	window.open('http://www.cameraservice.kr/remoteas/client/usa/index.htm', 'RemoteAS', 'scrollbars=yes,resizeable=yes,width=700,height=650');
}

function RemoteAs_fr() {
	window.open('http://www.cameraservice.kr/remoteas/client/fr/index.htm', 'RemoteAS', 'scrollbars=yes,resizeable=yes,width=700,height=650');
}

function RemoteAs_ru() {
	window.open('http://www.cameraservice.kr/remoteas/client/ru/index.htm', 'RemoteAS', 'scrollbars=yes,resizeable=yes,width=700,height=650');
}

function RemoteAs_cn() {
	window.open('http://www.cameraservice.kr/remoteas/client/cn/index.htm', 'RemoteAS', 'scrollbars=yes,resizeable=yes,width=700,height=700');
}

function sizeChange(bw) {
	if(eval(bw) < 1024) {
		document.all.dvwrap.style.left="15";
	} else {
		document.all.dvwrap.style.left="0";
	}
}

function sizeChange2(bw) {
	if(eval(bw) < 1024) {
		document.all.wrap.style.left="15";
	} else {
		document.all.wrap.style.left="0";
	}
}

function render_flash(url, width, height) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="movie" value="' + url + '">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="scale" value="noscale" />');
		document.write('<embed src="' + url + '" allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="transparent"></embed>');
		document.write('</object>');
}

function render_showhide(layname) {
	if(document.getElementById(layname).style.display == "none") document.getElementById(layname).style.display = "inline";
	else document.getElementById(layname).style.display = "none";
}



function ShowFlash(url, width, height, varname){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" id="sub_top_01" ALIGN="">');
	document.write('<PARAM NAME=movie VALUE="' + url + '">');
	document.write('<PARAM NAME=menu VALUE=false>');
	document.write('<PARAM NAME=quality VALUE=high>');
	document.write('<PARAM NAME=scale VALUE=noscale>');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
	document.write('<PARAM NAME=flashVars VALUE="' + varname + '">');
	document.write('<EMBED src="' + url + '" menu=false quality=high scale=noscale wmode=transparent bgcolor=#FFFFFF  WIDTH="' + width + '" HEIGHT="' + height + '" NAME="sub_top_01" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write('</OBJECT>');
}


function bottomFooter() {
	bottom_menu = "<div id=\"dvfoot\">\n";
	bottom_menu= bottom_menu +"	<div id=\"fproductbox\">\n";
	bottom_menu= bottom_menu +"		<div class=\"fproduct\">\n";
	bottom_menu= bottom_menu +"			<div class=\"footlink2\">\n";
	bottom_menu= bottom_menu +"				<ul style=\"float:left;\"><img src=\"http://www.samsungcamera.com/images/common/foot_recent.gif\" alt=\"recently viewed\" /></ul>\n";
	bottom_menu= bottom_menu +"				<ul style=\"float:left; padding:5px 0 0 10px;\"></ul>\n";
	bottom_menu= bottom_menu +"			</div>\n";
	bottom_menu= bottom_menu +"		</div>\n";
	bottom_menu= bottom_menu +"	</div>\n";
	bottom_menu= bottom_menu +"	<div id=\"faddress\">\n";
	bottom_menu= bottom_menu +"		<a href=\"http://www.samsung.com/us/aboutsamsung/corporateprofile/affiliatedcompanies.html\" target=\"samsung\">Group &; Affiliated Companies</a> \n";
	bottom_menu= bottom_menu +"		<span>|</span> <a href=\"javascript:MM_openBrWindow('http://www.samsungcamera.com/popup/privacy.asp','pup_01','width=620,height=600,scrollbars=1,resizable=1')\">Privacy</a>  \n";
	bottom_menu= bottom_menu +"		<span>|</span> <a href=\"javascript:MM_openBrWindow('http://www.samsungcamera.com/popup/legal_notice.asp','pup_01','width=620,height=600,scrollbars=1,resizable=1')\">Legal</a> \n";
	bottom_menu= bottom_menu +"		<span>|</span> <a href=\"http://www.samsung.com/us/info/contactus.html\" target=\"samsung\">Contacts US</a> \n";
	bottom_menu= bottom_menu +"		<span>|</span> <a href=\"http://www.samsungcamera.com/sitemap/sitemap.asp\">Site map</a><br />\n";
	bottom_menu= bottom_menu +"		Copyright ⓒ 2009 SAMSUNG DIGITAL IMAGING. All rights reserved.<br />\n";
	bottom_menu= bottom_menu +"	</div>\n";
	bottom_menu= bottom_menu +"</div>\n";
	bottom_menu= bottom_menu +"<div id=\"_global\" style=\"position:absolute;left:((document.body.clientWidth)/2-474);top:70px;display:none;width:948px;height:534px;z-index:1000;\"><script language=\"javascript\">render_flash(\"http://www.samsungcamera.com/images/flash/global.swf?path=http://www.samsungcamera.com/images/flash/sub\", \"948\", \"534\");</script></div>"
	document.write(bottom_menu);
}
