/*
DESC : λ²μ©?μΌλ‘??????λ ?λ°?€ν¬λ¦½νΈ ?¨μ
	   common.js? ?¬λ¦¬ ?΄κ³³???¨μ?€μ? ?€λ₯Έ js?μΌ?€μ΄ ?μ΄???€νκ°?₯ν΄???λ€.
*/

function IsEmptyTextBox(objTextBox , mesg_id , objNextFocus)
{
	if (trim(objTextBox.value) == ""){
		displayMsg(mesg_id);
		if (objNextFocus != undefined){
			objNextFocus.focus();
		}
		return false;
	}else{
		return true;
	}
}

// E-Mail?€μ ?μ E-Mail???μ??λ§λμ§ μ²΄ν¬?λ€.
function CheckEMailForm(obj)
{
	var email = obj.value;
	
	if (validateEmail(email)) {		
		return true;
	}
	else{
		displayMsg("EXACT_EMAIL_NEEDED");
		return false;
	}
}

function existCookie(sName){
	if (getCookie(sName) == null) {
		displayMsg("CART_NODATA");
		return false;
	}else{
		return true;
	}
}

function searchItemGuide(pIndex , oSearchTxt){
	if (pIndex == 'AUTH'){
		oSearchTxt.value = getResource("AUTH_SEARCH_GUIDE");
	}
}

function searchWordClear(oSearchTxt){
	if (oSearchTxt.value == getResource("AUTH_SEARCH_GUIDE")){
		oSearchTxt.value = "";
	}
}

/*@***************************************************************************/
/* 1. ?λ‘κ·Έλ¨ ID : κ³΅ν΅?¨μλͺ¨μ                                             */
/* 2. λͺ?      μΉ?: function MakeFlash(strUrl, nWidth, nHeight)              */
/* 3. κΈ?      ??: ?λ©΄???λ?λ? ?μ±?λ€.                                */
/* 4. ??      ??: strUrl - ?λ?ν?Όμ΄ μ‘΄μ¬?λ κ²½λ‘                      */
/*                  nWidth - ?¬κΈ°                                            */
/*                  nHeight - ?μ΄                                           */
/* 5. λ¦? ??  κ°?: ?μ                                                     */
/*@***************************************************************************/
function MakeFlash(strUrl, nWidth, nHeight, mNum)
{
  document.write('<OBJECT id=objFlash classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + nWidth + '" height="' + nHeight + '">');
  document.write('  <param name=movie value="' + strUrl + '">');
  document.write('  <param name=quality value=high>');
  document.write('  <param name="wmode" value="opaque">');
  document.write('  <param name=FlashVars value="'+ mNum+'">');
  document.write('  <EMBED src="' + strUrl + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + nWidth + '" height="' + nHeight + '"></EMBED>');
  document.write('</OBJECT>');
}

function MakeFlashKH(strUrl, nWidth, nHeight)
{
  document.write('<OBJECT id=objFlash  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + nWidth + '" height="' + nHeight + '">');
  document.write('  <param name=movie value="' + strUrl + '">');
  document.write('  <param name=quality value=high>');
  document.write('  <EMBED src="' + strUrl + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + nWidth + '" height="' + nHeight + '"></EMBED>');
  document.write('</OBJECT>');
}


function makeEmbed(strUrl, nWidth, nHeight){
	document.write('<embed src="' + strUrl + '"  width="' + nWidth + '" height="' + nHeight + '" ></embed>');
}