
function SMRecordOmnitureCategory(obj,catName)
{if(s_re!=null)
{s_re.linkTrackVars="prop11";s_re.prop11=catName;s_re.tl(obj,"e",catName);}}
function SMSetControlValues()
{var qsZip=getName('zip');var txtZip=document.getElementById('smzip');if(qsZip&&isValidZip(qsZip))
{txtZip.value=qsZip;}
var cid=getName('cid');var sltCategory=document.getElementById('cid');if(cid)
{for(var i=0;i<sltCategory.length;i++)
{if(sltCategory[i].value==cid)
{sltCategory.selectedIndex=i;return;}}}}
function SMValididateFields(objForm)
{if(objForm.cid.options[objForm.cid.selectedIndex].value==""||objForm.cid.selectedIndex<0)
{if(isValidZip(objForm.smzip.value))
{alert("Please select a category");objForm.cid.focus();return false;}
else
{alert("Please select a category and enter a valid ZIP code");objForm.cid.focus();return false;}}
else
{if(isValidZip(objForm.smzip.value))
{document.getElementById("smzip").name='zip';var sltCat=objForm.cid;var catName=sltCat.options[sltCat.selectedIndex].text;SMRecordOmnitureCategory(objForm,catName);return true;}
else
{alert("Please enter a valid ZIP code");objForm.smzip.focus();return false;}}}