
// GOTO is used to recreate a HREF link using javascrpit (allowing linkable elements such as DIV, etc)
// GOTOCONFIRM is used to double check with a user that they plan to foolow the link...
// ...GOTOCONFIRM can be used for warning about externaly linking and changing imortant options.

// GOTO by Rob Sheldrake
// example : goto('http://google.co.uk')
function goto(gotourl){
	document.location=gotourl; // send the user to the url specified by gotourl
}

// GOTOCONFIRM by Rob Sheldrake
// example : goto('Are you sure you wish to visit Google?','http://google.co.uk')
function goconfirm(goconmsg, goconurl){
	if (confirm(goconmsg)){ // If the user clicks ok then...
		goto(goconurl) ; // run the goto function to link
	} else { // If the user clicks cancel then...
		return false ; // do nothing
	}
}