	function change(id, newClass) {
		identity=document.getElementById(id);
		if (identity != null)
			identity.className=newClass;
	}
	function changeO(id, newClass) {
		//identity=document.getElementById(id);
		if (id != null)
			id.className=newClass;
	}
	function win_popup(file, name, attribs) {
		window.open (file, name, attribs); 
	}
	
	var WinNum=0;
	function WindowOpen(Url,x,y) {
		var String;
		String =  "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,copyhistory=0,";
		String += ",width=";
		String += x;
		String += ",height=";
		String += y;
		WinPic=window.open(Url,WinNum++,String);
	}
	
	function hide_sub(name, cell, i) {
		var b = document.getElementById(name);
		if (b != null) {
			b.style.display = 'none';	
		}
	}
	
	function show_sub(name, cell, i) {
		var b = document.getElementById(name);
		if (b != null) {
			b.style.display = '';	
		}
	}
	
	function verify_postal_code(pc)
	{
		var err = 'Please enter a valid 6 digit postal code (eg: A1B 2C3)';
		pc = pc.replace(/ /g, '');
		pc = pc.toUpperCase();
		if (pc.length != 6) 
		{
			alert(err);
			return false;
		}
		
		if (!pc.match(/\D\d\D\d\D\d/))
		{
			alert(err);
			return false;
		}
		
		return true;
	}
	
	var RecaptchaOptions = { theme: 'clean' };
	
	$(function(){
		var e = '#header input[name=postal_code], #secondary_header input[name=postal_code]';
		$(e).val('Your Postal Code').one('click', function(){
			$(this).val('');
		});
	});
	
	
	
	
	

