// JavaScript Document
//*******************JAVASCRIPT INITIALIZING FUNCTIONS********************************************************
//functions initialize functions
window.onload = callfunctions;
window.onunload = removefunctions;
function callfunctions() {
	formValidationOverRules();
	if(document.location.href == "http://www.ragnodoro.com/dove.html") {
		load();
	}
}

function removefunctions() {
	formValidationOverRules();
	if(document.location.href == "http://www.ragnodoro.com/dove.html") {
		GUnload();
	}
}


//*******************FORM VALIDATION FUNCTIONS****************************************************************************
//form onFocus and onBlur functions:
/*CODICE MOLTO TOZZO RIPRESO DA QUELLO SOTTO (funziona solo da solo): (vedi anche assoeurope_form.css) McLaud2k4*/
function formValidationOverRules() {
	if (!document.getElementsByTagName) return;
	//rel external --- overrides the target="_blank" tag:
	//Before:<a href="document.html" target="_blank">external link</a>
	//After:<a href="document.html" rel="external">external link</a>
	 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.target = "_blank";
	 }
}