// BEGIN CUSTOM STYLE
var GSDWatermark = function($id,$items) {
  var f = document.getElementById($id);
  if (f && (f.keyword || f.ea)) {
	var q = f.keyword ? f.keyword : f.ea;
	var n = navigator;
	var l = location;
	if (n.platform == 'Win32') 
	{
		if ($items == 1) {
		  q.style.cssText = 'border: 0px solid #7e9db9;';
		}
		else {
		  q.style.cssText = 'border: 1px solid #7e9db9; padding: 2px;';
		}
	}
	var b = function() {
	  if (q.value == '') {
		if ($items == 1) {
		q.style.background = '#FFFFFF url(/templates/huali/images/search_bg.gif) left top no-repeat';
		}
		else {
		q.style.background = '#FFFFFF url(/templates/huali/imagesemail_input.gif) left no-repeat';
		}
	  }
	};
	var f = function() {
		if ($items == 1) {
		q.style.background = '#FFFFFF url(/templates/huali/images/search_bg.gif) left bottom no-repeat';
		}
		else {
		  q.style.background = '#ffffff';
		}
	};
	q.onfocus = f;
	q.onblur = b;
	if (!/[&?]query=[^&]/.test(l.search)) {
	  b();
	}
  }
};


//END CUSTOM STYLE



// Google custom search

	function search_option(model){
		searchModel = model;
		var elradios = document.getElementsByName('model');
		if(elradios){
			if(model == "GSD" )
			{
				elradios[1].checked = true;
			}else{
				elradios[0].checked = true;
			}
		}
		//document.getElementById("samTest").innerHTML=model;
	}


	function changeSubmit() {

	  

	}


	// End google custom search

//Top Cart
function CartListScroll(n)
{
temp=n;
var cartBoxList=document.getElementById("cartBoxList");
cartBoxList.scrollTop=cartBoxList.scrollTop+temp;
if (temp==0) return;
setTimeout("CartListScroll(temp)",10);
}
function showCartBox()
{
if(document.getElementById("cartbox").style.visibility=="visible")
{
document.getElementById("cartbox").style.visibility = "hidden"
}
else{
document.getElementById("cartbox").style.visibility = "visible"
}
}

				function chkform(){
					if(document.form.mes_name.value==""){
						alert("Please input Name/Country!");
						document.form.mes_name.select();
						return false;
					}
					if(document.form.mes_type.value==""){
						alert("Please input Email!");
						document.form.mes_type.select();
						return false;
					}
					if(document.form.mes_content.value==""){
						alert("Please input Content!");
						document.form.mes_content.select();
						return false;
					}
				}
