function atover()
{
return addthis_open(this, "", "[URL]", "[TITLE]");
}

function chsearchclickout()
{
allwded = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 0123456789.";
wh = document.getElementById("searchbox");
if(wh.value == "")
	{wh.value = "Search Vacuum Cleaners...";}
wkey = wh.value;
xlen = wkey.length;
w2pass = "";
for(i=0;i<xlen;i++)
	{
	s2ch = wkey.substr(i,1);
	if(allwded.indexOf(s2ch) != -1)
		{
		w2pass += s2ch;
		}
	}
wh.value = w2pass;
}
					
function chsearchclickon()
{
wh = document.getElementById("searchbox");
if(wh.value == "Search Vacuum Cleaners...")
	{wh.value = "";}
}
function maincatchange(wh)
{
hideallsubcats();
if(wh == "")
	{whsel = document.getElementById("maincatsel2");}
else
	{whsel = document.getElementById("maincatsel2_"+wh);}
whsel.style.display = "";
}
function hideallsubcats()
{
whsel = document.getElementById("maincatsel2_1");
whsel.style.display = "none";
whsel = document.getElementById("maincatsel2_2");
whsel.style.display = "none";
whsel = document.getElementById("maincatsel2_3");
whsel.style.display = "none";
whsel = document.getElementById("maincatsel2_4");
whsel.style.display = "none";
whsel = document.getElementById("maincatsel2");
whsel.style.display = "none";
}
function gotocat()
{
wh = document.getElementById("maincatsel");
if(wh.value == "")
	{alert("Select a Main Category");wh.focus();return;}
whsel = document.getElementById("subcatsel2_"+wh.value);
if(whsel.value == "")
	{alert("Select a Sub Category");whsel.focus();return;}
window.location = whsel.value;
}
function gotobrand()
{
wh = document.getElementById("brandsel");
if(wh.value == "")
	{alert("Select a Brand");wh.focus();return;}
window.location = wh.value;
}
var dn="vacuumcleaners.net";
if(window.location.protocol == "https:")
	{
	if(window.location.pathname != "/primepages/onecart/onecart.php" && window.location.pathname != "/primepages/onecart/onecommit.php" && window.location.pathname != "/primepages/onecart/oneprocess.php" && window.location.pathname != "/primepages/onecart/onereceipt.php" && window.location.pathname != "/cbop/clearcart/clearcart.php" && window.location.pathname != "/cbop/clearcart/clearcommit.php" && window.location.pathname != "/cbop/clearcart/clearprocess.php" && window.location.pathname != "/cbop/clearcart/clearreceipt.php")
		{window.location = "http://www." + dn + window.location.pathname + window.location.search;}
	}
if(window.location.hostname == dn)
	{window.location = window.location.protocol + "//www." + dn + window.location.pathname + window.location.search;}

msgArray = new Array();
urlArray = new Array();
lnoArray = new Array();

function myOnError(msg, url, lno) {
   msgArray[msgArray.length] = msg;
   urlArray[urlArray.length] = url;
   lnoArray[lnoArray.length] = lno;
   //alert(msg);
   if(msg.indexOf("denied")!= -1)
      //{alert("ini");}
    {parent.window.location = "http://www." + dn;}
   //displayErrors();
   
   return true;
}

window.onerror = myOnError;
if(parent.document.location != dn)
 {myOnError();}
else
 {}
