function CheckInputValue(){
	var objName,objName2;
	var strValue,strValue2;

	objName = "txtName";
	strValue = Trim(document.getElementById(objName).value);
	if(strValue == "")
	{
		alert("請輸入姓名!");
		document.all(objName).focus();
		return false;
	}
	//----------------------------
	
	objName = "txtEmail";
	strValue = Trim(document.getElementById(objName).value);
	if(strValue == "")
	{
		alert("請輸入電子郵件!");
		document.all(objName).focus();
		return false;
	}
	//----------------------------	
	
	objName = "txtEmail";
	strValue = Trim(document.getElementById(objName).value);
	if(!IsEMail(strValue))
	{
		alert("請輸入正確的電子郵件!");
		document.all(objName).focus();
		return false;
	}
	//----------------------------	
	
	objName = "txtSubject";
	strValue = Trim(document.getElementById(objName).value);
	if(strValue == "")
	{
		alert("請輸入詢問主旨!");
		document.all(objName).focus();
		return false;
	}
	//----------------------------	
	
	objName = "txtMemo";
	strValue = Trim(document.getElementById(objName).value);
	if(strValue == "")
	{
		alert("請輸入詢問內容!");
		document.all(objName).focus();
		return false;
	}
	
	objName = "txtMemo";
	strValue = Trim(document.getElementById(objName).value);
	if(Trim(strValue).length > 500)
	{
		msg = "內容字數不可多於500字!";
		SelectObject(objName,true,msg);
		return false;
	}
	//----------------------------	

	return true;
}

function CheckMaxCharLenth(objName,charLenth)
{	
	var obj;
	var val;
	if(!MaxCharLength(objName,charLenth))
	{		
		alert("已超過最大字數" + charLenth + "字!");		
		return false;
	}
	return true;
}

function OpenConduct(){
	var url,status;
	var returnValues;
			
	url = "../eshop/econduct/page1.htm";
	status = "scroll:0;resizable:0;status:0;help:0;dialogWidth:305px;dialogHeight:480px";
	win = window.showModalDialog(url,0,status);	
 }
