var Domain = document.domain;
var LocName = document.location;
var PosLoc;
var Arr;
var NewLoc;
  if (Domain != "" && Domain.indexOf('www.', 0) == -1 ){

       	PosLoc = LocName + "";
        Arr = PosLoc.split("//");
        NewLoc  = "http://www." + Arr[1];
        document.location = NewLoc;
	};


function stdToggleMenu(id) {
		ChldId = "Chld"+id;
		ParId= "Par"+id;
		MenId= "stdMENU"+id
		if(document.all[ChldId].style.textDecoration != "underline"){	
		    document.all[ChldId].style.textDecoration = "underline";
			stdsetpos(ParId,MenId);
			document.all[MenId].style.visibility = "visible";
		}else{
			   if(event.toElement){
			       if (event.toElement.id == ChldId || event.toElement.id == ParId || event.toElement.className== "stdMENU" || event.toElement.className == "stdMENUBAR" || event.toElement.className == "stdMENUITEM")
			          return;
	          }
 			       document.all[ChldId].style.textDecoration = "";
			       document.all[MenId].style.visibility = "hidden";
		}
}

function stdsetpos(ParId,MenId){
			var left = document.all[ParId].offsetLeft + 105
			if(MenId=="stdMENU1"){	var top = document.all[ParId].offsetTop-((document.all[MenId].clientHeight)/1.3);}
			else {var top = document.all[ParId].offsetTop-((document.all[MenId].clientHeight)/2);}
			document.all[MenId].style.pixelTop = top 
			document.all[MenId].style.pixelLeft = left
			return;
			
			}	


function stdSelect(){
	event.srcElement.parentElement.style.background="#999999";
	event.srcElement.style.color="#f5f5f5";
}

function UnstdSelect(){
	event.srcElement.parentElement.style.background="";
	event.srcElement.style.color="#000000";
}

function stdulink(id){	
		 if(document.all[id].style.textDecoration !="underline"){
		    document.all[id].style.textDecoration ="underline";
		}else{
		    document.all[id].style.textDecoration ="";
		}
}

function Rcertify() 
{
     popupWin = window.open('http://www.bbbonline.org/cks.asp?id=101050314451316522', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
     window.name = 'opener';
}


function extWin(pageName) {
		extWin= open(pageName);
}


function palWindow(url){
  NewWin=window.open(url,'palWindow','toolbars=no,scrollbars=no,status=no,position=absolute,left=350,top=25,height=320,width=320');if(window.focus){NewWin.focus()};
}



function vacWindow(url){
	NewWin=window.open(url,'vacWindow','toolbars=no,scrollbars=yes,status=no,position=absolute,left=350,top=25,height=320,width=320');if(window.focus){NewWin.focus()};
}

function vacBigWindow(url){
    NewWin=window.open(url,'vacWindow','toolbars=no,scrollbars=yes,status=no,position=absolute,left=350,top=25,height=600,width=900');if(window.focus){NewWin.focus()};
}

function shipWindow(){
        NewShipWin=window.open('ship_instruct.html','shipWindow','toolbar=no,scrollbars=yes');if(window.focus){NewShipWin.focus()};

}
function retWindow(){
        NewretWin=window.open('ret_instruct.html','retWindow','toolbar=no,scrollbars=yes');if(window.focus){NewretWin.focus()};

}
  

function ViewCart(){
WIN2 = window.open('http://www.sweepsvacuum.com/cgi-bin/e-cart/addcart.pl?view2',  'win2', 'toolbar=no,scrollbars=yes,resizable=yes,width=350,height=300,left=10,top=10')
}

		
function openWindow(){
	newWindow = window.open('ship_2.html','NewWin', 'toolbar=no, width=500, height=500')
}
	


function pal2Window(){
	NewWin=window.open('pay_10.html','pal2Window','toolbars=no,scrollbars=yes,status=no,position=absolute,left=350,top=25,height=320,width=330');if(window.focus){NewWin.focus()};
}


function vac4Window(url){
	NewWin=window.open(url,'vac4Window','toolbars=no,scrollbars=no,status=no,position=absolute,left=350,top=25,height=340,width=170');if(window.focus){NewWin.focus()};
}


function vac6Window(url){
	NewWin=window.open(url,'vac6Window','toolbars=no,scrollbars=no,status=no,position=absolute,left=350,top=25,height=500,width=290');if(window.focus){NewWin.focus()};
}


function vac2Window(url){
	NewWin=window.open(url,'vac2Window','toolbars=no,scrollbars=no,status=no,position=absolute,left=350,top=25,height=470,width=236');if(window.focus){NewWin.focus()};
}

function vac3Window(url){
	NewWin=window.open(url,'vac3Window','toolbars=no,scrollbars=no,status=no,position=absolute,left=350,top=25,height=500,width=290');if(window.focus){NewWin.focus()};
}

function vac7Window(url){
	NewWin=window.open(url,'vacWindow','toolbars=no,scrollbars=yes,status=no,position=absolute,left=350,top=25,height=670,width=400');if(window.focus){NewWin.focus()};
}
<!-- Shopping Cart Code -->


var Name = "";
var Value = "";
function SetQuantity(quan) {
document.VacForm.tmp_quanity.value = quan;
}
function AddToCart(){
var AddItemsToCart = "";
for (i=0;i<document.VacForm.elements.length; i++) {
Name = document.VacForm.elements[i].name;
Value = document.VacForm.elements[i].value;
if (Value == "0") {
alert ("You can not order a '0' quantity");
return;
}
if (Value != "") {
AddItemsToCart += Name+"="+Value+"&";
var AddedItem = 1;
document.VacForm.elements[i].value="";
  }
}
if (AddedItem != "1") {
alert ("You did not enter a quantity");
return;
}
WIN1 = window.open('http://www.sweepsvacuum.com/cgi-bin/e-cart/addcart.pl?add&' + 
AddItemsToCart,  'win1', 
'toolbar=no,scrollbars=yes,resizable=yes,width=350,height=350,left=10,top=10')
AddCart = "";
}

<!-- End Shopping Cart Code -->

