/*******************************************************
******                                            ******
******    파일명 : Form_Check.js                  ******
******    설명 : 우편번호, 아이디찾기 및 폼체크   ******
******                                            ******
*******************************************************/
//아이프레임 사이즈
  var IE = false ;
  if (window.navigator.appName.indexOf("Explorer") !=-1){
    IE = true;
  }

  function resizeIfr(obj, minHeight) {
	minHeight = minHeight || 10;


	try {
		var getHeightByElement = function(body) {
			var last = body.lastChild;
			try {
				while (last && last.nodeType != 1 || !last.offsetTop) last = last.previousSibling;
				return last.offsetTop+last.offsetHeight;
			} catch(e) {
				return 0;
			}
			
		}
				
		var doc = obj.contentDocument || obj.contentWindow.document;
		if (doc.location.href == 'about:blank') {
			obj.style.height = minHeight+'px';
			return;
		}
		

		if (/MSIE/.test(navigator.userAgent)) {
			var h = doc.body.scrollHeight;
		} else {
			var s = doc.body.appendChild(document.createElement('DIV'))
			s.style.clear = 'both';

			var h = s.offsetTop;
			s.parentNode.removeChild(s);
		}

		if (h < minHeight) h = minHeight;
	
		obj.style.height = h + 'px';
		if (typeof resizeIfr.check == 'undefined') resizeIfr.check = 0;
		if (typeof obj._check == 'undefined') obj._check = 0;


			setTimeout(function(){ resizeIfr(obj,minHeight) }, 200); // check 5 times for IE bug

	} catch (e) { 
		//alert(e);
	}
	
}


//우편번호 찾기(주소찾기 파일 경로 입력)
function findPost(form,url){
	form.address.focus();
	var postwindow = window.open(url,'주소찾기','width=410,height=424');
	postwindow.focus();
}

//아이디 찾기
function findId(form,url){
	var idwindow = window.open(url,'아이디찾기','width=410,height=310');
	idwindow.focus();
}


// 확인 취소 확인후 입력 경로로 이동
function goUrl(msg, url){
  if ( confirm (msg)) {
    location.replace(url);
  }
}

//한글 체크 (한글사용금지)
function checkHan(strObj , msg) {
	var strValue = strObj.value;
	var intCode = 0;
	var msg;
	
	for (i = 0; i < strValue.length; i++) {
		var intCode = strValue.charCodeAt(i)
		var strChar = strValue.substr(i,1).toUpperCase()
		intCode = parseInt(intCode)
	
		if ((strChar < "0" || strChar > "9") && (strChar < "A" || strChar > "Z") && ((intCode > 255) || (intCode < 0))) {
			alert(msg +" 한글을 입력할 수 없습니다.");
			strObj.focus();
			return false;
		}
	}
	return true;
}


//한글이름입력체크
function checkName(strObj,msg) {
	if(strObj.value.length == 0) {
		alert(msg+" 입력하세요.");
		strObj.focus();
		return false;
	}

	if(han_check(strObj) == true) {
		alert(msg+" 한글로 입력하세요.");
		strObj.focus();
		return false;
	}
	return	true;
}

//비밀번호, 비밀번호 확인 체크
function checkPassword(strObj1, strObj2){
	var strValue1 = strObj1.value;
	var strValue2 = strObj2.value;
	if(strValue1 != strValue2) {
		alert("비밀번호란과 비밀번호 확인란이 일치하지 않습니다");
		strObj2.focus();
		return false;
	}
	return true;
}

//공백 체크
function checkSpace(strObj, msg) {
	var strValue = strObj.value;
	var intCode = 0;
	var msg;
	for (i = 0; i < strValue.length; i++) {
		var intCode = strValue.charCodeAt(i)
		var retChar = strValue.substr(i,1).toUpperCase()
		intCode = parseInt(intCode)
		if (retChar == " " ){
			alert(msg +"스페이스를 넣으시면 안됩니다.");
			strObj.focus();
			return false;
		}
	}
	return true;
}

// E-Mail 체크
function checkEmail(strObj) { 
	var strValue = strObj.value;
	var intCode = 0;
	var flag =0;

	for (i = 0; i < strValue.length; i++) {
		var intCode = strValue.charCodeAt(i)
		var strChar = strValue.substr(i,1).toUpperCase()
		intCode = parseInt(intCode)
		if( strChar == "@" ) {
			flag +=1;
		}
		if( strChar == "." ) {
		  	flag +=1;
		}
	}
	if( flag < 2 ){
		alert("이메일 형식을 지켜주세요.");//이메일 형식 체크
		strObj.focus();
		return false;
	}
	return true;
}

// E-Mail 체크
function checkEmail2(strObj) { 
	var strValue = strObj;
	var intCode = 0;
	var flag =0;

	for (i = 0; i < strValue.length; i++) {
		var intCode = strValue.charCodeAt(i)
		var strChar = strValue.substr(i,1).toUpperCase()
		intCode = parseInt(intCode)
		if( strChar == "@" ) {
			flag +=1;
		}
		if( strChar == "." ) {
		  	flag +=1;
		}
	}
	if( flag < 2 ){
		alert("이메일 형식을 지켜주세요.");//이메일 형식 체크
	}
	return true;
}

//공백제거
function trim(str){
	var arrStr = new Array();
	var lenStr;
	var rtnStr = "";
	
	if(str == null) return "";
	lenStr = str.length;

	for (var i = 0; i <lenStr; i++)	{
		arrStr[i] = str.charAt(i);
	
		if (arrStr[i] == " ")
		{
			if (i > 0)
			{
				if (!arrStr[i - 1])
					arrStr[i] = "";
			}
			else
				arrStr[i] = "";
		}
	}
	
	for (i = lenStr - 1; i >= 0; i--) {
		if (arrStr[i] == " "){
			if (i < lenStr - 1){
				if (!arrStr[i + 1])
					arrStr[i] = "";
			}
			else
				arrStr[i] = "";
		}
	}
	
	for (i = 0; i < lenStr; i++)
		if (arrStr[i])
			rtnStr += arrStr[i];
	
	return rtnStr;
}

//셀렉트 박스 선택 여부 
function checkSelect(strObj , msg) { 
	var msg;
    if (strObj.length > 1) { 
        for (var inx = 1; inx < strObj.length; inx++) { 
            if (strObj[inx].selected) return true; 
        } 
    } else { 
        if (strObj.selected) return true; 
    } 
	alert(msg +" 선택하지 않았습니다.");
    return false; 
}


// 라디오버튼의 선택여부 알아내기
function checkRadio(strObj, msg)	{
	var msg;
	if (strObj.length > 1) { 
		for (var inx = 0; inx < strObj.length; inx++) { 
			if (strObj[inx].checked) return true;
		}
	} else {
		if (strObj.checked) return true;
	}
	alert(msg +" 선택해 주세요");
	strObj[0].focus();
	return false; 
}


function checkboxCheck(strObj, cbObjText){

	for(i=0; i < strObj.length ; i++){
		if ((strObj[i].checked == true)){
			return(true);		// 선택된 결과가 있을때
			break;
		}
	}
	alert("선택된 " + cbObjText + "없습니다.\n\n먼저 선택하여 주십시오");
	strObj[0].focus();
	return(false);		// 선택된 결과가 없을때
}

//영문만
function onlyEnglish(chkObj, chkObjText){
	for(i = 0 ; i < chkObj.value.length ; i++){
		if((chkObj.value.charAt(i) < "A" || chkObj.value.charAt(i) > "Z" ) && (chkObj.value.charAt(i) < "a" || chkObj.value.charAt(i) > "z" )){
			alert(chkObjText + " " + "영문으로만 입력하세요.");
			chkObj.focus();
			return(false);
		}
	}
}

//영문만2
function checkEnglish2(chkObj){
	for(i = 0 ; i < chkObj.value.length ; i++){
		if((chkObj.value.charAt(i) < "A" || chkObj.value.charAt(i) > "Z" ) && (chkObj.value.charAt(i) < "a" || chkObj.value.charAt(i) > "z" )){
			return(false);
		}
	}
}


// 영어와숫자만 입력되었는가 검사함 (document.form.username, '관리자ID')
// 하이폰(-), 언더바(_) 입력가능
function onlyEngNum(chkObj, chkObjText){
	for(i = 0 ; i < chkObj.value.length ; i++){
		if((chkObj.value.charAt(i) < "A" || chkObj.value.charAt(i) > "Z" ) && (chkObj.value.charAt(i) < "a" || chkObj.value.charAt(i) > "z" ) && ( chkObj.value.charAt(i) < '0' || chkObj.value.charAt(i) > '9') && ( chkObj.value.charAt(i) != '-' && chkObj.value.charAt(i) != '_')){
			alert(chkObjText + " " + "영문와 숫자로만 입력하세요.");
			chkObj.focus();
			return(false);
		}
	}
}

/* ex)
	bCheck = form_chk_onlyEngNum(form.lid, "지역ID");
	if ( bCheck == false ) return;
*/


// 폼내의 특정 element찾기
function findElement(form, element){		// 찾을 폼, 찾을 객체이름(obj.name or 'lc_cd[]')
	for(i=0; i < form.elements.length ; i++){
		if(form.elements[i].name == element){
			element = form.elements[i];
			return(element);
		}
	}
}

/* ex)
	// 배열로 선언된 객체를 제어하기
	var selectObj = form_findElement(document.form, 'lc_cd[]');		// selectObj => document.form.elements[?]
*/


// 입력여부 검사 (document.form[0].title, 제목)
function checkValue(obj, objName){
	var result;
	var msg;
	result = trim(obj.value);		// 공백제거
	
	if (result == ""){
		if ( (obj.type == "text") || (obj.type == "textarea") || (obj.type == "password")){
			msg = "Input";
		}else{
			msg = "Select";
		}

		alert( msg + " " + objName );
		obj.focus();

		if (obj.type == "text") obj.select();
		return(false);
	}
}

/* ex)
	bCheck = form_chk_value(form.lid, "지역ID");
	if ( bCheck == false ) return;
*/

// 길이 검사 (document.form[0].title, 제목, 최소길이, 최대길이) - 한글도 영문과 동일하게 취급함.
function checkLength(obj, objName, minLen, maxLen){
	var result;
	var msg;

	result = trim(obj.value);		// [trim.js] 공백제거
	if (result.length < minLen){
		alert( objName +" "+minLen + "자 이상 입력하세요.");
		obj.focus();
		obj.select();

		return(false);
	}

	if (result.length > maxLen){
		alert( objName + " "+maxLen + "자 이하로 입력하세요.");
		obj.focus();
		obj.select();

		return(false);
	}
}

/* ex)
		bCheck = form_chk_value(form.lid, "지역ID");
		if ( bCheck == false ) return;
*/

//사업자등록번호체크
function checkCompany(obj){
	var sum = 0;
	var li_epno = new Array(10);
	var li_chkvalue = new Array(1,3,7,1,3,7,1,3,5);

	for( i = 0 ; i < 10 ; i ++ ){
		li_epno[i] = obj.substr(i, 1);
	}
	for( i = 0 ; i < 9 ; i++ ){
		sum += li_epno[i] * li_chkvalue[i];
	}

	sum = sum + ((li_epno[8] * 5) / 10);
	var li_y = sum%10 ;

	if( li_y == 0 ){
		epno_chk = 0 ;
	}else{
		epno_chk = 10 - li_y ;
	}

	if( epno_chk == li_epno[9] ){
		return true;
	}else{
		alert('유효하지 않은 사업자등록번호 입니다. 확인해주세요');
		obj.focus();
		return false;
	}
}


//주민번호 체크
function checkResNumber(obj1,obj2){
	
	var str_f_num = obj1.value;
	var str_l_num = obj2.value;

	if (str_f_num=='' || str_l_num==''){
		alert('주민번호를 입력하세요');
		if(str_f_num=='') obj1.focus();
		else obj2.focus();
	}
	var i3=0

	for (var i=0;i<str_f_num.length;i++){
		var ch1 = str_f_num.substring(i,i+1);
		if (ch1<'0' || ch1>'9'){ i3=i3+1 }
	}
	if ((str_f_num == '') || ( i3 != 0 )){
		return false;
	}
	var i4=0

	for (var i=0;i<str_l_num.length;i++){
		var ch1 = str_l_num.substring(i,i+1);
		if (ch1<'0' || ch1>'9') { i4=i4+1 }
	}
	if ((str_l_num == '') || ( i4 != 0 )){
		return false;
	}
	if(str_f_num.substring(0,1) < 0){
		return false;
	}
	if(str_l_num.substring(0,1) > 2){
		return false;
	}
	if((str_f_num.length > 7) || (str_l_num.length > 8)){
		return false;
	}
	if ((str_f_num == '72') || ( str_l_num == '18')){
		return false;
	}

	var f1=str_f_num.substring(0,1)
	var f2=str_f_num.substring(1,2)
	var f3=str_f_num.substring(2,3)
	var f4=str_f_num.substring(3,4)
	var f5=str_f_num.substring(4,5)
	var f6=str_f_num.substring(5,6)
	var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7
	var l1=str_l_num.substring(0,1)
	var l2=str_l_num.substring(1,2)
	var l3=str_l_num.substring(2,3)
	var l4=str_l_num.substring(3,4)
	var l5=str_l_num.substring(4,5)
	var l6=str_l_num.substring(5,6)
	var l7=str_l_num.substring(6,7)
	hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5
	hap=hap%11
	hap=11-hap
	hap=hap%10
	if (hap != l7){
		alert("주민번호를 정확히 입력해주세요");
		obj1.focus();
		return false;
	}
  return true;
}

// 숫자만 입력하도록 검사 (document.form[0].money, 가격)
function checkNumber(obj, objName){
	var result;

	result = trim(obj.value);		// [trim.js] 공백제거

	if (isNaN(result)){
		alert( objName + "숫자로만 입력하세요.");
		obj.focus();
	
		if (obj.type == "text") obj.select();
		return(false);
	}
}


// 숫자만 입력하도록 검사 (document.form[0].money, 가격)
function onlyNumber(obj, objName){
	var result;

	result = trim(obj.value);		// [trim.js] 공백제거

	if (isNaN(result)){
		alert( objName + "숫자로만 입력하세요.");
		obj.focus();
	
		if (obj.type == "text") obj.select();
		return(false);
	}
}

/* ex)
		bCheck = form_chk_number(form.money, "가격");
		if ( bCheck == false ) return;
*/



// 날짜여부 검사 (dateObject = document.form[0].date1)(msg = 객체명)
function checkDate(dateObject, msg){
	var date = dateObject.value;
	var s_date = date.split("-");
	var yyyy = (s_date[0]*10)/10;		// parseInt()의 경우 "08", "09"일때 0으로 잘못 변경되므로 연산을 이용함.
	var mm = (s_date[1]*10)/10;
	var dd = (s_date[2]*10)/10;
	var chk_day;
	var result;

	if (date != "" ){		// 입력값이 존재할때만 검사함
		if ((date.length >= 8) && (date.length <= 10)){		// [길이] 2001-1-1 ~ 2001-12-12
			if (s_date.length == 3){		// [형식] xxxx-xx-xx
				if ((yyyy > 1900) && (yyyy < 2100)){		// [년도] 1900년 ~ 2100년
					if ((mm >= 1) && (mm <= 12)){		// [월] 1월 ~ 12월
						switch (mm){		// [달별날수] 1월 - 31, 4월 - 30 ...
							case 2:
								chk_day = (!(yyyy % 4) && (yyyy % 100) || !(yyyy % 400)) ? 29 : 28;		// 윤년구분
								break;
							case 4: case 6: case 9: case 11:
								chk_day = 30;
								break;
							default :
								chk_day = 31;
								break;
						}

						//alert(chk_day + " / " + dd + " / " + s_date[2]);
						if ((dd >= 1) && (dd <= chk_day)){			// [일] 1일 ~ 달별날수
							result = true;
						}
					}
				}					
			}
		}

		if (result != true){
			alert(msg + "의 날짜형식이 잘못되었거나 올바른 날짜가 아닙니다.\n\n[2001-01-01]형식으로 입력하여 주십시오.");
			dateObject.focus();
			dateObject.select();
			return(false);
		}
	}
}

/* ex
		// 날짜여부 검사
		bCheck = form_chk_date(form.c_buydate, "차량등록일");
		if ( bCheck == false ) return;
*/


// 날짜 기간 검사 (dateObject1 = document.form[0].date1)(objName = 화면상에 표시될 객체이름)
function compareDate(dateObject1, dateObject2, objName){
	function form_getTime(value){
		var d;	// Date Object
		var sd;		// Split Date
		sd= value.split("-");
		d = new Date(sd[0], sd[1], sd[2]);
		return(d.getTime());		// getTime() - returns a numeric value
	}

	var d1;		// First Compare Date
	var d2;		// Second Compare Date

	d1 = form_getTime(dateObject1.value);
	d2 = form_getTime(dateObject2.value);
	if (d1 > d2){
		alert( objName + "이 잘못되었습니다.\n\n첫번째 날짜는 두번째날짜보다 빨라야 합니다." );
		dateObject1.focus();
		dateObject1.select();
		return(false);
	}
}

/* ex
		// 날짜 기간 검사
		bCheck = form_compare_date(form.c_hb_begin, form.c_hb_end, "할부기간");
		if ( bCheck == false ) return;
*/

// Change Div display 
function changeDiv(IObject){
   var ObjStyle;

   if (IObject.style.display != "none"){
		ObjStyle = "none";
   }else{
        ObjStyle = "";
   }

   IObject.style.display = ObjStyle;
}

//onkeypress='Check_Number()' 이벤트 핸들러 발생시 숫자 체크
function checkEventNumber(){
 	if ((event.keyCode<48)||(event.keyCode>57)){
  		alert("숫자만 입력이 허용됩니다.");
  		event.returnValue=false;
 	}
}

//금액입력(,사용) : onkeyup="this.value=this.value.replace(/[^0-9]/g,'');amount_aden(this);amount_aden2(Form.tg_price);"
function checkPrice(frm) 
{ 
	var rtn = ""; 
	var val = ""; 
	var j = 0; 
	x = frm.value.length; 

	for(i=x; i>0; i--) 
	  { 
		if(frm.value.substring(i,i-1) != ",") 
		  { 
			val = frm.value.substring(i,i-1)+val; 
		  } 
	  } 
	x = val.length; 
	for(i=x; i>0; i--) 
	  { 
		if(j%3 == 0 && j!=0) 
		  { 
			rtn = val.substring(i,i-1)+","+rtn; 
		  } else { 
			rtn = val.substring(i,i-1)+rtn; 
		  } 
		j++; 
	  } 
	frm.value=rtn; 
	amount=frm.value.replace(/,/g,'') 
} 
  
//포커스 이동하기
function moveNext(varControl,varNext){
  if(varControl.value.length == varControl.maxLength){
    varNext.focus();
    varNext.select();
  }
}

/*******************************************************
******                                            ******
******              설명 : 팝업 띄우기            ******
******                                            ******
*******************************************************/


//팝업
function makeWin(url, winname, width, height, scrolltype){
   xposition=0; yposition=0;
   if (parseInt(navigator.appVersion) >= 4){
      xposition = (screen.width - width) / 2;
      yposition = (screen.height - height) / 2;
   }
   args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0,"
         + "scrollbars=" + scrolltype + "," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0,"
		 + "screenx=" + xposition + ","  //NN Only
		 + "screeny=" + yposition + ","  //NN Only
		 + "left=" + xposition + ","     //IE Only
		 + "top=" + yposition;           //IE Only

   newWin=window.open(url,winname,args)
   newWin.focus();
}

//팝업 - 위치 지정
function makeWin1(url, winname, width, height, scrollbars, xposition1, yposition1,ck){
   xposition=0; yposition=0;
   if (parseInt(navigator.appVersion) >= 4){
      xposition = (screen.width - width) / 2;
      yposition = (screen.height - height) / 2;
   }
   if (scrollbars == null){
      scrollbars = '0';
   }
   args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0,"
         + "scrollbars=" + scrollbars + "," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0,"
   + "screenx=" + xposition + ","  //NN Only
   + "screeny=" + yposition + ","  //NN Only
   + "left=" + xposition1 + ","     //IE Only
   + "top=" + yposition1;           //IE Only

   newWin=window.open(url,winname,args,ck)
   newWin.focus();
}

function newWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/* 팝업 */
function popup(pop,width,height)
{
	var url = pop;
	var wd = width;
	var he = height;

	window.open(url,"","left=300;top=300,toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
}

/*************************************************************************************************
* 디자인팀
*************************************************************************************************/

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_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_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 swf(src, width, height, id) {
  var viewId;
  if (id){
    viewId = 'id="'+id+'" '
  }
 html = '<object '+viewId+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
  ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"' +
  ' width="' + width + '" height="' + height + '">';
 html += '<param name="movie" value="' + src + '" />';
 html += '<param name="quality" value="high" />';
 html += '<param name="menu" value="false" />';
 html += '<param name="wmode" value="transparent" />';
 html += '<embed src="' + src + '"  quality="high"' +
  ' pluginspage="http://www.macromedia.com/go/getflashplayer"' +
  ' type="application/x-shockwave-flash"' +
  ' width="' + width + '" height="' + height + '" wmode="transparent"></embed>';
 html += '</object>';
 document.write(html);
}


function mov(filePath,width,height){
	var content ='';
	content += '<object id="WMPlayer" codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 width='+width+' height='+height+' type=application/x-oleobject standby="Loading Microsoft?Windows?Media Player components...">';
	content += '<param name="FileName" value="'+filePath+'">';
	content += '<param name="ShowStatusBar" value="0">';
	content += '<param name="AutoStart" value="1">';
	content += '<param name="ShowControls" value="0">';

	content += '<param name="AllowChangeDisplaySize" value="1">';
	content += '<param name="DisplaySize" value="1">';
	content += '</object>';
	document.write(content);
}

function $(id){
  return document.getElementById(id)
}


function flashSmallProcess(){
//	$('main_menu').style.height = '30px';

}

function flashSmall(){
//	alert('작게');

  $('mainFlash').style.height='50px';
  $('menuFlash').style.height='50px';
}

function flashLarge(){
	//alert('크게');
	$('mainFlash').style.height = '190px';
}