<!-- 
function  validate_product(theForm)
{
	if (theForm.option0 && theForm.option0.value=='')
	{
		theForm.option0.focus()
		alert('Please select '+theForm.on0.value);
		return false;
	}
	if (theForm.option1 && theForm.option1.value=='')
	{
		theForm.option1.focus()
		alert('Please select '+theForm.on1.value);
		return false;
	}
	return true;
}


function search()
{
	if (document.searchForm.keyword.value!='')
	{
		self.location = '/search-'+document.searchForm.keyword.value+'.htm';
		return false;
	}
	else
	{
		alert('Please enter the keyword!');
		document.searchForm.keyword.focus();
		return false;
	}
}
function tabview_aux(TabViewId, id)
{
  var TabView = document.getElementById(TabViewId);
  var Tabs = TabView.firstChild;
  while (Tabs.className != "Tabs" ) Tabs = Tabs.nextSibling;

  var Tab = Tabs.firstChild;
  var i   = 0;

  do
  {
    if (Tab.tagName == "A")
    {
      i++;
      Tab.href      = "javascript:tabview_switch('"+TabViewId+"', "+i+");";
      Tab.className = (i == id) ? "Active" : "";
      Tab.blur();
    }
  }
  while (Tab = Tab.nextSibling);

  var Pages = TabView.firstChild;
  while (Pages.className != 'Pages') Pages = Pages.nextSibling;

  var Page = Pages.firstChild;
  var i    = 0;

  do
  {
    if (Page.className == 'Page')
    {
      i++;
      Page.style.display  = (i == id) ? 'block' : 'none';
    }
  }
  while (Page = Page.nextSibling);
}
function tabview_switch(TabViewId, id) { tabview_aux(TabViewId, id); }
function tabview_ini(TabViewId) { tabview_aux(TabViewId,  1); }
//-->
