function updateWithFile(){
  var url = "http://mmdusa.net/ajax_wine.php?brand_id="+document.getElementById("brandList").value;
  var xmlHttp; 
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
	if (xmlHttp.overrideMimeType) { 
            xmlHttp.overrideMimeType('text/xml; charset=iso-8859-1'); 
    }  
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("placeholder").innerHTML=unescape(xmlHttp.responseText);
        }
      }
    xmlHttp.open("GET", url,true);
    xmlHttp.send(null); 
  }

function wine_score(){
  var url = "http://mmdusa.net/ajax_score.php?brand_id="+document.getElementById("brandListID").value; 
  var xmlHttp; 
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
	if (xmlHttp.overrideMimeType) { 
            xmlHttp.overrideMimeType('text/xml; charset=iso-8859-1'); 
    }  
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("scorepalceholder").innerHTML=unescape(xmlHttp.responseText);
        }
      }
    xmlHttp.open("GET", url,true);
    xmlHttp.send(null); 
  }  

function form_submt(){
	 var WineId = document.f2.m2.value;
	 var BrandId = document.f2.brandList.value;
	 if(WineId!=''){ 
	 window.location = WineId;
	 }else if(BrandId!='First select a brand...'){
	 window.location = BrandId;
	 }else{ // do nothing
	 }
}
function jumptoPage(val){
    window.location = "#"+val;
}
