
function submitFormSearch() {
	var thisSearch = window.document.toolbar.txtSiteSearch.value;
	document.toolbar.action = "index.cfm?FuseAction=eSearch&txtSiteSearch="+thisSearch;
	document.toolbar.submit();
}
function submitPrintDialog(printThisPage) {
	var winProp = "height=200, resizeable=No, width=350,toolbar=0,location=0,directories=0,status=0,menubar=0, top=200,left=270";
	var thePage = window.document.toolbar.pjURL.value;
	var printDialog = window.open('dsp_printDialog.cfm', 'GoodmansPrintDialog', winProp);
	printDialog.focus();
}
function submitFormPrint() {
	var winProp = "height=500, scrollbars=Yes, resizeable=Yes, width=700,toolbar=0,location=0,directories=0,status=0,menubar=0, top=30,left=30";
	var thePage = window.document.toolbar.pjURL.value+"&p=1";
	var printPage = window.open(thePage, 'TCCPrintPage', winProp);
	printPage.focus();
}
function submitPrintThisPage(printThisPage) {
	var winProp = "height=500, scrollbars=Yes, resizeable=Yes, width=700,toolbar=0,location=0,directories=0,status=0,menubar=0, top=30,left=30";
	var printDialog = window.open(printThisPage, '', winProp);
	printDialog.focus();
}
function submitAddToCart() {
	self.document.location = self.document.toolbar.pjURL.value+"&c=1";
}
function submitViewCart() {
	var winProp = "height=300, scrollbars=Yes, resizeable=No, width=450,toolbar=0,location=0,directories=0,status=1,menubar=0, top=200,left=270";
	var thePage = "dsp_printCart.cfm";
	var printPage = window.open(thePage, 'GoodmansPrintCart', '');
	printPage.focus();
}
function submitPrintLink(thePage) {
	var winProp = "height=600, scrollbars=Yes, resizeable=Yes, width=550,toolbar=0,location=0,directories=0,status=0,menubar=0, top=30,left=30";
	var thePage = thePage;
	var printPage = window.open(thePage, 'GoodmansPrintPage', '');
	printPage.focus();
}


function printAllFromCart() {
      for (var i=0; i<self.document.frmPrint.printPage.length;i++)
	  {
	    var thePage = self.document.frmPrint.printPage[i];
        window.opener.submitPrintLink(thePage);
	  }
	  }
function printFromCart(thePage) {
      window.opener.submitPrintLink(thePage);
      window.close();
	  }
function printFromCartStayOpen(thePage) {
      window.opener.submitPrintLink(thePage);
	  }
function printit() {
     // window.opener.submitFormPrint();
      window.submitFormPrint();
     // window.close();
	  }
function printAll() {
      window.opener.submitFormPrintAll();
      window.close();
	  }
function cartit() {
      window.opener.submitAddToCart();
      window.close();
	  }
