function hideall(){
	m1.style.visibility="visible"
	m2.style.visibility="hidden"
	hot.style.visibility="visible"
	cominfo.style.visibility="hidden"
	commercial.style.visibility="hidden"
}
function showhot(){
	hot.style.visibility="visible"
	cominfo.style.visibility="hidden"
	commercial.style.visibility="hidden"
	m1.style.visibility="visible"
	m2.style.visibility="hidden"
}
function showcominfo(){
	hot.style.visibility="hidden"
	cominfo.style.visibility="visible"
	commercial.style.visibility="hidden"
	m1.style.visibility="hidden"
	m2.style.visibility="visible"
}
function showcommercial(){
	hot.style.visibility="hidden"
	cominfo.style.visibility="hidden"
	commercial.style.visibility="visible"
}
function News(page) {
	controlWindow = window.open(page, "", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=630,height=450");
}

window.onerror=null;
function makenum(i){
  return parseInt(0+i);
}

function round(number,X) {
X = (!X ? 2 : X);
return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}
function format2(n){
	var i;
	var count=0;
	for (i=0; i < n.toString().length; i++){
		if (n.toString().charAt(i) == '.')
			count=1;
		if (count > 0)
			count++;
	}
	if (count > 0)
		count = count - 2;
	if (count == 0)
		return (n + '.00');
	else if (count==1)
		return (n+ '0');
	else if (count > 2)
		return (n.toString().substring(0, n.toString().length -(count-2)));
	else
		return (n);
}

function calctotals() {
	var total1 = 0;
	var total2 = 0;
	var frm = document.shopcart;

	tux =  frm.tux.value;
	total1 = frm.tux.value;

	tick1 = frm.tick1.value;
	total1 = (total1 * 1) + (frm.tick1.value * 1);

	limo1 = frm.limo1.value;
	total1 = (total1 * 1) + (frm.limo1.value * 1);

	pic1 = frm.pic1.value;
	total1 = (total1 * 1) + (frm.pic1.value * 1);

	dine1 = frm.dine1.value;
	total1 = (total1 * 1) + (frm.dine1.value * 1);

	aftprom1 = frm.aftprom1.value;
	total1 = (total1 * 1) + (frm.aftprom1.value * 1);

	port1 = frm.port1.value;
	total1 = (total1 * 1) + (frm.port1.value * 1);

	flow1 = frm.flow1.value;
	total1 = (total1 * 1) + (frm.flow1.value * 1);

	money1 = frm.money1.value;
	total1 = (total1 * 1) + (frm.money1.value * 1);

///Ladies
	limo2 =  frm.limo2.value
	total2 = frm.limo2.value

	makeup =  frm.makeup.value
	total2 = (total2 * 1) + (frm.makeup.value * 1)

	dress =  frm.dress.value
	total2 = (total2 * 1) + (frm.dress.value * 1)

	shoes = frm.shoes.value
	total2 = (total2 * 1) + (frm.shoes.value * 1)

	hair = frm.hair.value
	total2 = (total2 * 1) + (frm.hair.value * 1)

	tick2 = frm.tick2.value
	total2 = (total2 * 1) + (frm.tick2.value * 1)

	money2 = frm.money2.value
	total2 = (total2 * 1) + (frm.money2.value * 1)

	flow2 = frm.flow2.value
	total2 = (total2 * 1) + (frm.flow2.value * 1)

	pic2 = frm.pic2.value
	total2 = (total2 * 1) + (frm.pic2.value * 1)

	aftprom2 = frm.aftprom2.value
	total2 = (total2 * 1) + (frm.aftprom2.value * 1)

	dine2 = frm.dine2.value
	total2 = (total2 * 1) + (frm.dine2.value * 1)

	port2 = frm.port2.value
	total2 = (total2 * 1) + (frm.port2.value * 1)


	frm.ttl1.value = format2(round(total1,2));
	frm.ttl2.value = format2(round(total2,2));
}
function varitext(text){
    text=document;
    print(text);
}
