function wo(i, w, h) {
	w = w?w:400;
	h = h?h:300;
	var wcfg = "width="+w+",height="+h+",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes";
	var wname = "nw";
	var nw = window.open(i, wname, wcfg);
	nw.focus();
	return false;
}
function minWidth()
{
	var body = document.getElementById('body'),
	head = document.getElementById('head');
	body.style.width = (document.documentElement.offsetWidth < 990) ? '990px' : document.documentElement.clientWidth + 'px';
	head.style.width = (document.documentElement.offsetWidth < 990) ? '990px' : document.documentElement.clientWidth + 'px';
}

function formSubmit(node) {
	action_input = node.previousSibling;
	action_input.name = 'buy_x';
	/*
	frm = node.parentNode;
	if (frm.nodeName != 'FORM') frm = frm.parentNode;
	*/
	frm = action_input.form;
	frm.submit();
	
	return false;
}
function popupclose() {
	var popup = document.getElementById('popup');
	popup.style.visibility='hidden';
}

window.onload = function()
{
	var nav = navigator.appVersion;
	if(/MSIE 6.0/.test(nav))
	{
		minWidth();
		window.attachEvent('onresize', minWidth);
	}
}
