function chg_button(titlename, onoff) 
{
	document[titlename].src = "images/button_" + titlename + "_" + onoff + ".gif"
}

function chg_promo(promoname, onoff) 
{
	document[promoname].src = "images/" + promoname + "_" + onoff + ".jpg"
}

function open_map (loc) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);

	new_window = window.open (loc,"a" + counter + "a","width=530,height=490,toolbar=no,location=no,scrollbars=no,directories=no,menubar=yes,resizable=no");
}

function open_image (imagefile, width, height) {

date = new Date();
counter = Math.floor((date.getSeconds()/60)*100);


	new_window = window.open (imagefile,"a" + counter + "a","width="+width+",height="+height+",toolbar=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no");
}


function cent(amount) {
    amount -= 0;
    amount = (Math.round(amount*100))/100;
    return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}

	pic1= new Image(97,96); 
	pic1.src="images/promo_jobseeker.jpg";
	pic2= new Image(97,96); 
	pic2.src="images/promo_employer.jpg";
	pic3= new Image(97,96); 
	pic3.src="images/promo_community.jpg";
	pic4= new Image(97,96); 
	pic4.src="images/promo_youth.jpg";
	pic5= new Image(169,43); 
	pic5.src="images/button_jobseekers_on.gif";
	pic6= new Image(195,43); 
	pic6.src="images/button_employers_on.gif";
	pic7= new Image(209,43); 
	pic7.src="images/button_community_on.gif";
	pic8= new Image(117,43); 
	pic8.src="images/button_youth_on";
