function AddCart(ID) {
	window.open("cart_add.php?id="+ID, "AddCartWindow", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, titlebar=no, width=250, height=100");
}

function resizeOuterTo(w,h) {
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			top.outerWidth=w+8;
			top.outerHeight=h+29;
		}else{
			top.resizeTo(400,300);
			wd = 400-document.body.clientWidth;
			hd = 300-document.body.clientHeight;
			top.resizeTo(w+wd,h+hd);
		}
	}
}

function MM_jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function put_content(){
	t=document.getElementById('contenttd');
	d=document.getElementById('contentdiv');
	t.style.height=d.scrollHeight+50;
	t.style.width=d.scrollWidth+50;
}

function put_content_dt(){
	t=document.getElementById('contenttd_dt');
	d=document.getElementById('contentdiv_dt');
	p=document.getElementById('contentdiv_table');
	t.style.height=d.scrollHeight+10;
	t.style.width=d.scrollWidth;
	d.style.top=p.scrollHeight+10;
}

function flash_price() {
	if (document.all["price_link"].style.color=="white") {
		document.all["price_link"].style.color="#9ca28c";
		setTimeout("flash_price()", 300);
	}else{
		document.all["price_link"].style.color="white";
		setTimeout("flash_price()", 1500);
	}
}
