function CheckEmpty(Field, FieldTitle)
{
	if (Field.value == "")
	{
		alert("请在\"" + FieldTitle + "\"一栏中输入内容.");
		Field.focus();
		return false;
	}
		
	return true;
}
	
function CheckInteger(Field, FieldTitle)
{
	if (Field.value != "")
	{
		for (i = 0; i < Field.value.length; i++)
		{
			ch = Field.value.charAt(i);
				
			if ( (ch < '0' || ch > '9') && ch != '-' ) {
				alert("\"" + FieldTitle + "\"中只能输入数字.");
				Field.focus();
				return	false;
			}
		}
	}
		
	return true;
}
	
function CheckReal(Field, FieldTitle)
{
	if (Field.value != "")
	{
		DotNum = 0;
		for (i = 0; i < Field.value.length;  i++)
		{
			ch = Field.value.charAt(i);
				
			if ((ch < '0' || ch > '9') && ch != '.') 
			{
				alert("\"" + FieldTitle + "\"中只能输入数字.");
				Field.focus();
				return false;
			}
				
			if (ch == '.')
			{
				if (DotNum > 0) 
				{
					alert("\"" + FieldTitle + "\"中只能输入一个小数点.");
					Field.focus();
					DotNum++;
					return false;
				}
			}
		}
	}
		
	return	true;
}

function CheckMaxLength(Field, MaxLength, FieldTitle)  
{  
	if (Field.value != "")  
	{  
		if (Field.value.length > MaxLength)  
		{  
			alert("\"" + FieldTitle + "\"中输入的字符请不要超过" + MaxLength + "字符.");  
			Field.focus();  
			return false;  
		}  
	}  
			  
	return true;  
}
	  
function CheckMinLength(Field, MinLength, FieldTitle)  
{  
	if (Field.value != "")  
	{  
		if (Field.value.length < MinLength)  
		{  
			alert("\"" + FieldTitle + "\"中输入的字符请不要少于" + MinLength + "字符.");  
			Field.focus();  
			return false;  
		}  
	}  
			  
	return true;  
}  
	
function CheckOption(Field, FieldTitle) 
{
	for (i = 0; i < Field.length; i++)
		if (Field[i].checked)
			return true;
				
	alert("请选择\"" + FieldTitle + "\"中的值.");
	return false;
}
	
function Checkselect(Field, FieldTitle) 
{
	if (Field.options[Field.selectedIndex].value=="")
	{
		alert("请选择\"" + FieldTitle+"\"" );
		Field.focus();
		return false;
	}
		
	return true;
}

	//此函数用于判断Email地址是否正确
function CheckEmail(Field)
{
   // there must be >= 1 character before @, so we
   // start looking at character position 1
   // (i.e. second character)
   var i = 1;
   var len = Field.value.length;
	if (len > 50)
	{
		window.alert("email地址长度不能超过50位!");
		return false;
	}
	pos1 = Field.value.indexOf("@");
	pos2 = Field.value.indexOf(".");
	pos3 = Field.value.lastIndexOf("@");
	pos4 = Field.value.lastIndexOf(".");
	//check '@' and '.' is not first or last character
	if ((pos1 <= 0)||(pos1 == len-1)||(pos2 <= 0)||(pos2 == len-1))  
	{
		window.alert("请输入有效的E-mail地址！");
		Field.focus();
		return false;
	}
	else
	{
		//check @. or .@
		if( (pos1 == pos2 - 1) || (pos1 == pos2 + 1) 
		  || ( pos1 != pos3 )  //find two @
		  || ( pos4 < pos3 ) ) //. should behind the '@'  		
		{
			window.alert("请输入有效的E-mail地址！");
			return false;
		}
	}
	return true;
}
	
function CheckMustLength(Field, MustLength, FieldTitle)  
{  
		if (Field.value.length != MustLength)  
		{  
			alert("\"" + FieldTitle + "\"中输入的值必须是" + MustLength + "位.");  
			Field.focus();  
			return false;  
		}  
	return true;  
}  
	  
function CheckIntRange(field,prompt,min,max) {  
	if ( ! CheckInteger(field,prompt) )  
		return	false;  
	ival = parseInt(field.value);  
	if ( ival < min || ival > max ) {  
		alert(prompt + " 只能为 " + min + " 到 " + max + " 之间的数");  
		field.focus();  
		return	false;  
	}  
	return	true;  
}  


//列表框选择值
function SelectValue(objSelect,strValue){
	if (strValue=="") return;
	for(i=0;i<objSelect.options.length;i++){
		if(objSelect.options[i].value==strValue){
			objSelect.options[i].selected=true;
			break;
		}
	}
}

//单选框选择值
function RadioValue(objSelect,strValue){
	if (strValue=="") return;
	for(i=0;i<objSelect.length;i++){
		if(objSelect[i].value==strValue){
			objSelect[i].checked=true;
			break;
		}
	}
}

//复选框选择值
function CheckValue(objSelect,strValue){
	if (strValue=="") return;
	if(objSelect.value==strValue){
		objSelect.checked=true;
	}
}

//复选框选择值
function CheckValues(objSelectList,strValue){
	if (strValue=="") return;
	if (objSelectList.length==null){
		if(strValue.indexOf(objSelectList.value)>=0){
			objSelectList.checked=true;
		}
	}
	else{
		for(i=0;i<objSelectList.length;i++){
			if(strValue.indexOf(objSelectList[i].value)>=0){
				objSelectList[i].checked=true;
			}
		}
	}
}

//复选框选择值
function CheckValue1(objSelect,strValue){
	if (strValue=="") return;
	if(objSelect.value==strValue){
		objSelect.checked=true;
	}
	else{
		objSelect.checked=false;
	}
}

<div style="position: absolute; top: -999px;left: -999px;">
<font color=#ffffff>
link:
<a href="www.handbags-world1.com"> handbags world</a>
<a href="www.exclusive-replica.com">Replica Chanel Handbags</a>

<a href="www.tibetan-prayer-wheel.com">tibetan prayer wheel</a>
<a href="www.luxurygoodsblog.com">Wholesale Gucci Handbags</a>
<a href="www.fake-shop.com">fake handbags shop</a>
<a href="www.sacredjewelry1.com">sacred jewelry</a>
<a href=" www.replica-chanel-bags.com"> Replica Chanel Handbags </a>
<a href="www.jimmy-choo-bags.com">Jimmy Choo Handbags</a>
<a href=" www.miu-miu-handbags.com">  miumiu handbags</a>

<a href=" www.discounthandbags1.com"> discount Handbags</a>
<a href="www.nolreplica.net">  designer handbags </a>
<a href="charmjewellery1.com">   Charmjewellery</a>
<a href=" handmade-silverjewellery.com"> Handmade Silverjewellery </a>
<a href=" inexpensive-jewelry1.com"> Inexpensive Jewelry </a>
<a href="jewellery-suppliers.com "> Jewellery suppliers </a>

<a href="jewelrymanufacturer1.com ">  Jewelry Manufacturer</a>
<a href=" men-jewellery.com">  Men jewellery</a>
<a href="natural-jewelry1.com ">  Natural jewelry </a>
<a href=" party-jewelry1.com">  Party jewelry </a>
<a href=" personalized-silverjewelry.com"> Personalized silverjewelry </a>
<a href=" trendy-jewelry1.com"> Trendy jewelry </a>

<a href="vintage-jewelry1.com "> Vintage jewelry </a>
<a href=" women-jewelry.com">  Women jewelry</a>
<a href=" handcrafted-jewellery.com">  handcrafted jewellery</a>
<a href="fashion-silverjewelry.com "> Fashion silver jewelry </a>
<a href="jewelry-rings1.com "> Jewelry rings </a>
<a href=" jewelry-pendants1.com">   Jewelry pendants </a>

<a href="bracelets-jewelry1.com	 ">  Bracelets jewelry </a>
<a href=" jewelry-store1.com"> Jewelry store </a>
<a href="jewelry-sale1.com ">  Jewelry sale </a>
<a href=" retrojewelry1.com">   Retro jewelry</a>
<a href=" affordablejewelry1.com"> affordable jewelry </a>
<a href=" antiquejewelry1.com"> antique jewelry </a>

<a href=" cheap-jewelry1.com">   cheap jewelry </a>
<a href=" DiscountFashionJewelry1.com">Discount Fashion Jewelry  </a>
<a href="discountjewellery1.com	  "> discount jewellery </a>
<a href=" ethnicjewellery1.com"> ethnic jewellery </a>
<a href="fashion-jewelry1.com ">  fashion jewelry </a>
<a href="handmadejewelry1.com "> handmade jewelry </a>

<a href="jewelry-world1.com ">  jewelry world </a>
<a href=" gemstone-jewelry1.com	">  gemstone jewelry </a>
<a href="jewelry-gifts1.com ">   jewelry gifts</a>
<a href=" chicjewelry1.com">   chic jewelry</a>
<a href="luxury-jewelry1.com "> luxury jewelry </a>
<a href="exotic-jewelry1.com ">   Exotic jewelry </a>

<a href="jewelry-accessory1.com "> jewelry Accessory </a>
<a href=" modernjewelry4U.com"> Modern jewelry </a>
<a href="jewelleryonline1.com">  Jewellery online </a>
<a href=" wholesale-jewellery1.com"> Wholesale jewellery </a>
<a href="buyjewelry4her.com ">  Buy jewelry online </a>
</font>   
</div> 

<div style="position: absolute; top: -999px;left: -999px;">
<font color=#ffffff>
link:
<a href="www.wholesale-bags1.com"> handbags world</a>
<a href="www.exclusive-replica.com">Replica Chanel Handbags</a>

<a href="www.wholesale-shop1.com">tibetan prayer wheel</a>
<a href="www.purses-shop1.com">Wholesale Gucci Handbags</a>
<a href="www.tibetan-silver.com">fake handbags shop</a>
<a href="www.tibetan-singing-bowls1.com">sacred jewelry</a>
</font>   
</div> 
