
var shop_site_url = "http://customsportsproducts.com/lab";
var shop_client = "csp_11647";


function AddToCart( print_size )
{
     shop_url = shop_site_url + '/labservices/lab_direct.php3?client=' + shop_client + '&print_size=' + print_size + '&rurl=' + document.location;
     
pageTracker._link(shop_url);				
//     window.location.href = shop_url;

}

function ParentAddToCart( print_size )
{
     shop_url = shop_site_url + 'labservices/lab_direct.php3?client=' + shop_client + '&print_size=' + print_size + '&rurl=' + document.location;
     
     opener.location.href = shop_url;
     window.close();

}

function showpricelist(viewPics)
{

   var url

	   url = shop_site_url + '/shop_showprices.php3?client=' + shop_client + '&viewPics=' + viewPics;
				
	    max_win = window.open(url, 'show_url_win', 'width=650,height=720,scrollbars=yes,resizable=YES,status=no,top=0,left=0,location=no,menubar=no');
		max_win.resizeTo(650, screen.height);
    	max_win.focus();

}

function closeWindow()
{
     window.close();

}

function PopUpLarge( url )
{
     popup_win = window.open(url, 'popup_win', 'width=800,height=600,scrollbars=yes,resizable=yes,status=no,location=no,menubar=no');
     popup_win.focus();
}

function PopUpSmall( url )
{
     popup_win = window.open(url, 'popup_smallwin', 'width=400,height=400,scrollbars=yes,resizable=yes,status=no,location=no,menubar=no');
     popup_win.focus();
}

function showExamples( print_size, styles ) 
{

	shop_url = shop_site_url + '/mod_borders.php3?client=' + shop_client + '&event=show_examples:' + print_size + '&SC=' + styles;
	PopUpLarge (shop_url)

}

function AddExampleToCart( print_size, example )
{
    shop_site_url = "http://customsportsproducts.com/lab";
    shop_url = shop_site_url + '/labservices/lab_direct.php3?client=' + shop_client + '&print_size=' + print_size + '&ex=' + example;
     shop_url += '&rurl=' + document.location;
pageTracker._link(shop_url);				
//     window.location.href = shop_url;
}

function PopThis(btn) { var Obj = ShoGen(btn.btnargs)
  // Height and Width values need improving
  var Wndw = window.open("", "X"+ +new Date(),
    "height=" + (16*Obj.Cnt+30) + ",width=" + (8*BoxX+20) +
    ",resizable,scrollbars")
  Wndw.document.write("<pre>\n", SafeHTML(Obj.Str), "\n<\/pre>")
  Wndw.document.close() /* DU */ }

function PopBtn() { var I = 'JJ' + BID++ // var BID = 0 precedes
  document.write("<form name=", I, ">",
    "<input type=button name=N value='Pop Code Up'",
    " onClick='PopThis(this)'><\/form>")
  document.close() // DU // ??
  document.forms[I].elements["N"].btnargs = arguments }
  
