// form check
function testAlert() {
    alert('calling a function from base.js worked');
}

function doSubmit() {
	var termscheck = document.getElementById('agree');
	if (termscheck.checked) {
		document.forms[0].submit();		
	} else {
		alert('Please tick the checkbox to confirm that you agree with the terms of use')
		termscheck.focus();
	}

}


// picasa gallery access
function output(data)
{
for (var i = 0; i < data.feed.entry.length; i++)
{
var item = data.feed.entry[i];
var title = item.title.$t;
var imgsrc = item.content.src;//useful for downloading image

var height = parseInt(item.gphoto$height.$t);
var width = parseInt(item.gphoto$width.$t);

var orientation =(height>width ? "vt" : "hr");
var description = item.media$group.media$description.$t;


document.writeln("<a href='#nogo'><img class='"+orientation+"' src='" + imgsrc + " title='"+title+"'/><p>"+description+"</p></a>");

}
}

