
function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (
			anchor.getAttribute("href") && ( 
			anchor.getAttribute("rel") == "external" || 
			anchor.getAttribute("rel") == "external nofollow" || 
			anchor.getAttribute("rel") == "nofollow external" )
			)
		anchor.target = "_blank";
  }
}

function clear_form_field(field) {

document.getElementById(field).value = 0;

}

function checkcookie() {
  testc = document.cookie;
 if (testc.length == 0) {
    $('cookiewarning').show();
  }
}
 

window.onload = function() {
	externalLinks();
  checkcookie();
//Event.addBehavior.reassignAfterAjax = true;
Event.addBehavior({ 'div.pagination a' : Remote.Link });



}

