// JavaScript Document

// functions for price and pack to be separated on postcards page
function getPack(thestring) {
	var str=thestring;
	thefirst=str.split("***");
	return thefirst[0];
}

function getBits(thestring) {
	var str=thestring;
	thebits=str.split("***");
	return thebits;
}

function colourRows(tableName, colour1, colour2){
	var x=document.getElementById(tableName);
	var rowarr = new Array;
	rowarr = x.rows;
	for (i=0; i<x.rows.length; i++){
		x.rows[i].bgColor=colour1;	
	}
}
function myHideShow(to_hide,to_show) {
	if (document.getElementById(to_hide)!= null){
			document.getElementById(to_hide).style.display="none";
	}
	if (document.getElementById(to_show)!= null){
			document.getElementById(to_show).style.display="block";
	}	
}
