
function Start_Login1()
{         
  if (window.event.keyCode==13)
     {  
       document.all("btnLogin").click();
       return(false);
      }
  else
      {
       return(true);      
      }     
}

function norightclick()
{
 event.returnValue = false;
}


function nocopy()
{
 event.returnValue = false;
}


function nopaste()
{
 event.returnValue = false;
}


function MemberLogOut()
{
  window.open("../default/logout.aspx");
}


function flashContent(src, w, h, wmode){
	flashCode='';
	tmpStr='<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+'>';
	flashCode+=tmpStr;
	tmpStr='<param name="movie" value="'+src+'">';
	flashCode+=tmpStr;
	tmpStr='<param name="menu" value="false">';
	flashCode+=tmpStr;
	if(wmode!=''){
		tmpStr='<param name="wmode" value='+wmode+'>';
		flashCode+=tmpStr;
		tmpStr='<embed src="'+src+'" menu="false" wmode="'+wmode+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+w+' height='+h+'></embed></object>';
	}else{
		tmpStr='<embed src="'+src+'" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+w+' height='+h+'></embed></object>';
	}
	flashCode+=tmpStr;
	
	document.write(flashCode);
}




function PrintTagData(id)
{
	var Item = document.getElementById(id);
	var printdetail = window.open("","TextareaDetail","width=750,height=600,scrollbars=yes");
	printdetail.document.open();
	printdetail.document.write("<HTML><HEAD><title>ISABELLE</title><LINK href='../Css/style.css' type='text/css' rel='stylesheet'>");
	printdetail.document.write("<BODY  style='margin-left:10px;margin-top:15px;margin-right:10px;background:white;' onload=\"window.print();\" >");
	printdetail.document.write(Item.outerHTML);	
	printdetail.document.close("</BODY></HTML>");
} 

function WarnUnderLowerLimitSafeQty()
{
	
	alert(Product_UnderLowerLimitSafeQty);	
	return false;
}

function WarnunLogin()
{
	alert(Member_unLogin);	
	return false;
}


function clearSearchText(mID)
{
	document.getElementById(mID).value='';
}

function defaultSearchText(mID)
{
	if (document.getElementById(mID).value==''){
		document.getElementById(mID).value=Search_SearchText;
	}
}

//2010/12/03 若網頁在空白地方CLICK後,再按下ENTER鍵後會執行的BUTTON
//因目前按下ENTER皆會自動執行搜尋商品的BUTTON, 導至如LOGIN頁面在輸入完驗證碼後若按ENTER會變成跳到搜尋結果的頁面, 容易造成誤會
function getFocus(btn)
{
	if (event.keyCode == 13)
		document.getElementById(btn).focus();

}
