var newWindow = null;

function openWindow(contentURL,sb,windowName,windowWidth,windowHeight) {
	widthHeight = 'scrollbars=' + sb + ',height=' + windowHeight + ',width=' + windowWidth;
	newWindow = window.open(contentURL,windowName,widthHeight);
	newWindow.focus();
    return false
}

function closeWindow() {
	if (newWindow != null)  {	
	 newWindow.close();
	 newWindow = null;

	}
}
function Toggle(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   
   if (visible) {
     obj.style.display="none";
     
   } else {
      obj.style.display="block";
      
   }
}


function opendiv(item) {
    obj=document.getElementById(item);
    obj.style.display="block";
 
}
function closediv(item) {
   obj=document.getElementById(item);
   obj.style.display="none";
 
}
function updatekitparts() {

   var passvariables
   passvariables="?returnPage=" + document.kit_parts_form.returnPage.value
   passvariables=passvariables + "&kit_id=" + document.kit_parts_form.kit_id.options[document.kit_parts_form.kit_id.selectedIndex].value;

   parent.frames['kitparts'].location.href="kit_parts_list.asp" + passvariables

   
}

function opendiv2(item) {
 
   obj=document.getElementById(item);
   obj.style.display="block";
   if (item=="kits") {
      document.dealerOrder_form.item_type.value=0;
   } else {
      document.dealerOrder_form.item_type.value=1;
   }
 
}
