<!-- // hide from old browsers

function ValidateFormBrandProductType2()
{
if (document.frmBrandProductType2.selectBrand.value=='Brand' && document.frmBrandProductType2.selectProductType.value=='ProductType')
{
alert('please select a BRAND and/or a PRODUCT TYPE');
}
else{
document.frmBrandProductType2.submit();
}
}






function ValidateFormBrandProductType()
{
if (document.frmBrandProductType.selectBrand.value=='Brand' && document.frmBrandProductType.selectProductType.value=='ProductType')
{
alert('please select a BRAND and/or a PRODUCT TYPE');
}
else{
document.frmBrandProductType.submit();
}
}

function focusField(element, text) { //removes default text in search field
  if (element.value == text) {
 element.value = "";
  }
}


function blurField(element, text) { //removes default text in search field if left empty
  if (element.value == "") {
 element.value = text;
  }
}


function ToggleDisplay(id){

var doc = document;

if (doc.getElementById(id).style.display == "none"){
doc.getElementById(id).style.display = "block";
}
else if (doc.getElementById(id).style.display == "block"){
doc.getElementById(id).style.display = "none";
}
}


function ShowInPopup (PageToShow)
{
window.open(PageToShow, "Window1", "menubar=no,scrollbars=yes,toolbar=no,width=650,height=600");
}

function ShowInPopup2 (PageToShow)
{
window.open(PageToShow, "Window1", "menubar=no,scrollbars=yes,toolbar=no,width=650,height=300");
}

// -->
