function gghCart () {
    document.getElementById("cartform").submit();
}

function gghAdd (pName,pNumber,pPrice) {
    document.getElementById("addcart").item_name.value=pName;
    document.getElementById("addcart").item_number.value=pNumber;
    document.getElementById("addcart").amount.value=pPrice;
    document.getElementById("addcart").submit();
}

function actualWidth() {
	return actualResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function actualResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}
function reSize() {
var ie = (document.all) ? true : false;
var sW, pagesizeId, headerId, maintextId, maintoyId, w1, w2, w3, sizeRatio;
pagesizeId = document.getElementById('pagesize');
headerId = document.getElementById('header');
if (document.getElementById('maintext')) {
maintextId = document.getElementById('maintext');
}
if (document.getElementById('maintoy')) {
maintoyId = document.getElementById('maintoy');
}
sW=actualWidth();
   if (sW>8900) {
     sizeRatio=sW*0.9;
     w1=Math.floor(sizeRatio)+"px";
     w2=Math.floor(sizeRatio-400)+"px";
     w3=Math.floor(sizeRatio-182)+"px";
     pagesizeId.style.width=w1;
     headerId.style.width=w1;
if (document.getElementById('maintext')) { maintextId.style.width=w2;}
if (document.getElementById('maintoy')) {  maintoyId.style.width=w3;}
   }
}

