var xmlHttp

function showResult()
{
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

var cs = document.getElementById('clss');
var tp = document.LSS.vt.options[document.LSS.vt.selectedIndex].value;
if (tp == 1){cs.style.display = 'block';} else {cs.style.display = 'none';}

var p1 = null; var select = document.LSS.vt;
for (var i = 0; i < select.options.length; i++ ){if (select.options[i].selected) {p1 = select.options[i].value;}}

var p2 = null; var select = document.LSS.vn;
for (var i = 0; i < select.options.length; i++ ){if (select.options[i].selected) {p2 = select.options[i].value;}}

var p3 = document.LSS.mdl.value;

var p7 = document.LSS.ysta.value;

var p8 = document.LSS.yfin.value;

var p9 = document.LSS.prsta.value;

var p10 = document.LSS.prfin.value;

var p4 = null; var select = document.LSS.ccm;
for (var i = 0; i < select.options.length; i++ ){if (select.options[i].selected) {p4 = select.options[i].value;}}

var p5 = null; var select = document.LSS.vc;
for (var i = 0; i < select.options.length; i++ ){if (select.options[i].selected) {p5 = select.options[i].value;}}

var p6 = null; var select = document.LSS.rgn;
for (var i = 0; i < select.options.length; i++ ){if (select.options[i].selected) {p6 = select.options[i].value;}}

if (newthrd){url=url+"&newthrd="+newthrd;}
var post='&mts=1&vn='+p2;
if (p1){var post=post+'&vt='+p1;}
if (p1 == 1){var post=post+'&vc='+p5;}
if (p3){var post=post+'&mdl='+p3;}
if (p4){var post=post+'&ccm='+p4;}
if (p6){var post=post+'&rgn='+p6;}
if (p7){var post=post+'&ysta='+p7;}
if (p8){var post=post+'&yfin='+p8;}
if (p9){var post=post+'&prsta='+p9;}
if (p10){var post=post+'&prfin='+p10;}

document.location = url+post;

}

function hidelivesearch(){
 document.getElementById("livesalesearch").
 innerHTML=xmlHttp.responseText;
 document.getElementById("livesalesearch").
 style.display = "none";
}

function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 document.getElementById("livesalesearch").
 innerHTML=xmlHttp.responseText;
 document.getElementById("livesalesearch").
 style.display = "block";
 }
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
