function preprocess1(iIndex,iType,ic,agent,eq){ 
var qtyVal,submitString;
var retval, qty,retval,element;
element = "document.frmadd.qty"+iIndex+".value";
qty = eval(element);
retval=IsNumeric(qty);
if(retval == 1)
{
alert("Please enter a valid quantity");
eval("document.frmadd.qty"+iIndex+".value=1");
eval("document.frmadd.qty"+iIndex+".focus()");
return;
}
submitString="";
qtyVal=document.frmadd["qty"+iIndex].value;
submitString="http://www.airsplat.com/gocart.asp?ic=" + ic +"&type=" + iType + "&eqcode=" + eq + "&agent=" + agent + "&qty=" + qtyVal;
document.location=submitString;
}
function preprocess(iIndex,iType,ic,agent){ 
var qtyVal,submitString;
var retval, qty,retval,element;
element = "document.frmadd.qty"+iIndex+".value";
qty = eval(element);
retval=IsNumeric(qty);
if(retval == 1)
{
alert("Please enter a valid quantity");
eval("document.frmadd.qty"+iIndex+".value=1");
eval("document.frmadd.qty"+iIndex+".focus()");
return;
}
submitString="";
qtyVal=document.frmadd["qty"+iIndex].value;
submitString="http://www.airsplat.com/gocart.asp?ic=" + ic +"&type=" + iType + "&agent=" + agent + "&qty=" + qtyVal;
document.location=submitString;
}
function IsNumeric(value)
{
var validate=/(^\d+$)/;
if ((validate.test(value)) && (value > 0))
return 0;
else
return 1;
}
function submitMainsearch()
{
if (document.frmMainsearch.SearchWord.value.indexOf(" ") == 0)
{
alert("Search string should not start with spaces.");
document.frmMainsearch.SearchWord.focus();
return false;
}
if (document.frmMainsearch.SearchWord.value == "")
{
alert("Please enter a Search String.");
document.frmMainsearch.SearchWord.focus();
return false;
}
document.frmMainsearch.submit();
return true;
}
var enableSelected;
var catSelected;
function  selectthis()
{
catSelected=document.selectcombo.combo1.options[document.selectcombo.combo1.options.selectedIndex].text;
enableSelected=document.selectcombo.combo1.options[document.selectcombo.combo1.options.selectedIndex].value;
if(enableSelected=="default")
return false;
else
location.href=enableSelected;
}
function reFresh() {
  location.reload(true)
}
window.setInterval("reFresh()",600000);
