
// function.inc 에서도 전화번호
function writePhone() { document.write( "070-4062-3303" ); }
function writeSolutionPhone() { document.write( "02-6919-5520" ); }
function writeFax() { document.write( "02-6918-6652" ); }
function writeZipcode() { document.write( "135-010" ); }
function writeAddr() { document.write( "서울시 강남구 논현동 38-1번지 조광빌딩 1층" ); }
function writeAddrPrev() { document.write( "서울시 강남구 논현동 57번지 창일빌딩 3층" ); }
function writeCompanyEng() { document.write( "BizSpring Inc" ); }
function writeCompany() { document.write( "(주)비즈스프링" ); }
function writeCompanyCategory() { document.write( "서비스" ); }
function writeCompanyAct() { document.write( "소프트웨어 개발 및 공급" ); }
function writeServiceName() { document.write( "BIZMAILER" ); }
function writeCopyYear() { var cDate = new Date(); var currentYear = (document.all)?(cDate.getYear()):(cDate.getFullYear()); document.write( "2002-" + currentYear ); }
function writeCeo() { document.write( "대표 이철승" ); }
function writePrivate() { document.write( "개인정보관리책임자 : 유철주 부장" ); }
function writeEmail() { document.write( "cs@bizmailer.co.kr" ); }
function writeSolutionEmail() { document.write( "solution@bizmailer.co.kr" ); }
function writeRecord1() { document.write( " 120-86-63550" ); }
function writeRecord2() { document.write( " 제 강남 15895 호" ); }


// contents
function writeSave() { document.write( "3년" ); }
function writeUpdata() { document.write( "1시간" ); }
function writeBank() { document.write( "신한은행 476-01-006822 (주)비즈스프링" ); }
function writeBank1() { document.write( "476-01-006822" ); }
function writeBank2() { document.write( "" ); }
function writeBank3() { document.write( "" ); }


// 과금체제
function writeSms() { document.write( "통당 15원" ); }
function writeLms() { document.write( "통당 55원" ); }
function writeMms() { document.write( "통당 250원" ); }


// family site
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if( selObj.options[selObj.selectedIndex].value+""  != "" )
				  window.open( selObj.options[selObj.selectedIndex].value );
  if (restore) selObj.selectedIndex=0;
}

// openPOP
function openPop(URL, name, popWidth, popHeight, scroll, resize) {
	if( popWidth != 0 && popHeight != 0 ) {
		popLeft = screen.width/2 - popWidth/2;
		popTop = screen.height/2 - popHeight/2;
	} else {
		popWidth = screen.width-12;
		popHeight = screen.height-100;
		popLeft = 0;
		popTop = 0;
	}
    scrollYn = typeof(scroll) == "undefined" || scroll.toLowerCase() == 'yes' ? 'Yes' : 'No';
    resizeYn = typeof(resize) == "undefined" || resize.toLowerCase() == 'yes' ? 'Yes' : 'No';
	option = 'width='+popWidth+',height='+popHeight+',toolbar=0,locationbar=0,status='+scrollYn+',menubar=0,scrollbars='+scrollYn+',top='+popTop+',left='+popLeft+',resizable='+resizeYn;
	win = window.open( URL, name, option );
	win.focus();
}

function addCommas(nStr) {
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}

function comma(str) {
  str = new String(str);
  this.str = str;
  len = str.length;
  str1 = "";

  for(i=1; i<=len; i++) {
   str1 = str.charAt(len-i)+str1;
   if((i%3 == 0)&&(len-i != 0)) str1 = ","+str1;
  }
  return str1;
}


function _g_pausecomp(millis) {
	var date = new Date();
	var curDate = null;
	do { curDate = new Date(); }
	while (curDate-date < millis);
}


// flash tag to javascript 
function draw_flash(para, width, height){
	var param = encodeURI(para);
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=" + width + " HEIGHT=" + height + "><PARAM NAME=movie VALUE=" + param + "> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor VALUE=#FFFFFF> <PARAM NAME=wmode VALUE=Transparent><EMBED src="+param+" loop=false menu=false quality=best bgcolor=#FFFFFF wmode=Transparent  WIDTH=" + width + " HEIGHT=" + height + " TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"https://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>");
}

function hideDiv() {
	document.getElementById("loading").className = "loading-invisible";
};
function showDiv() {
  document.getElementById("loading").className = "loading-visible";
}
