<!--

var win

function gowin(str,l,a) {

if (win) 
{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}

win = window.open(str,"gowin","scrollbars=0,resizable=1,width="+l+",height="+a+",status=0,location=0,toolbar=0,top=20,left=20");
win.focus();

}

function gowin_oecd(str,l,a) {

if (win) 
{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}

win = window.open(str,"gowin_oecd","scrollbars=yes,resizable=no,width="+l+",height="+a+",status=0,location=0,toolbar=0,top=20,left=20");
win.focus();

}

function gowinNamed(str,name,l,a) {

if (win) 
{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}

win = window.open(str,name,"scrollbars=1,resizable=1,width="+l+",height="+a+",status=0,location=0,toolbar=0,top=20,left=20");
win.focus();

}

function gowin2(str,l,a) {

if (win) 
{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}

win = window.open(str,"gowin","scrollbars=1,resizable=1,width="+l+",height="+a+",status=0,location=0,toolbar=0,top=20,left=20");
win.focus();

}

function gowinmap(str,l,a) {

if (win) 
{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}

win = window.open(str,"gowinmap","scrollbars=0,resizable=1,width="+l+",height="+a+",status=0,location=0,toolbar=0,top=0,left=20");
win.focus();


}

function gowin3(str,l,a) {

if (win) 
{
	tmp = win;
	win = null;
	if (navigator.appName != "Netscape")
		tmp.close();
}

win = window.open(str,"gowin","scrollbars=0,resizable=0,width="+l+",height="+a+",status=0,location=0,toolbar=0,top=20,left=20");
win.focus();

}

/*************** INSERISCO QUI TEMPORANEI ****************************/
function formverify()
	{
		if (document.forms[0].SearchMode.value=="")
		{
			document.forms[0].SearchMode.value='search';
		}
		return true;
	}
function alert_frm_replyer(input_name)
	{	
		window.alert("Please complete " + input_name +" !"); 
		return false;
	}	
function replyer_check() 
	{
		var mail_Name = this.window.document.frm_replyer.mail_Name.value;
		var mail_Address = this.window.document.frm_replyer.mail_Address.value;
		var mail_Subject = this.window.document.frm_replyer.mail_Subject.value;
		var mail_Text = this.window.document.frm_replyer.mail_Text.value;
		if (mail_Name== null||mail_Name==''){alert_frm_replyer('Your Name');	return false;}
		var pos = mail_Address.indexOf( "@");
		var pos2 = mail_Address.indexOf( ".", pos);
		if (mail_Address== null||mail_Address==''||pos == -1 || pos2 == -1 || pos2 == mail_Address.length - 1){alert_frm_replyer('Your e-mail address'); return false;}
		if (mail_Subject== null||mail_Subject==''){alert_frm_replyer('Subject Quoted'); return false;}
		if (mail_Text== null||mail_Text==''){alert_frm_replyer('Write Your Reply'); return false;}
		return true;
	}
function replyer_preview(form)
	{	
		var Mail_Name = form.mail_Name.value;
		var Mail_Address = form.mail_Address.value;
		var Mail_subject = form.mail_Subject.value;
		var Mail_Text = form.mail_Text.value;
		var Mail_Argument = form.mail_Argument.value;
		var Mail_Organisation = form.mail_Organisation.value;
		var str_preview;

		if (Mail_Name== null||Mail_Name==''){alert_frm_replyer('Your Name');	return false;}
		var pos = Mail_Address.indexOf( "@");
		var pos2 = Mail_Address.indexOf( ".", pos);
		if (Mail_Address== null||Mail_Address==''||pos == -1 || pos2 == -1 || pos2 == Mail_Address.length - 1){alert_frm_replyer('Your e-mail address'); return false;}
		if (Mail_subject== null||Mail_subject==''){alert_frm_replyer('Subject Quoted'); return false;}
		if (Mail_Text== null||Mail_Text==''){alert_frm_replyer('Write Your Reply'); return false;}
		str_preview = '<html><head><title>'+ Mail_Argument +'</title></head><table width="400" border="0" cellpadding="1" cellspacing="1"><tr> <td width="140" height="40" align="left" valign="left"><font color="#003399" size="2" face="Tahoma"><strong>Your Name:</strong></font></td><td align="left" valign="left"><font size="2" face="Tahoma">' + Mail_Name + '</font></TD></TR>'
		str_preview += '<tr> <td height="40" align="left" valign="left"><font color="#003399" size="2" face="Tahoma"><strong>Your e-mail:</strong></font></td><td align="left" valign="left"><font size="2" face="Tahoma">' + Mail_Address + '</font></TD></TR>'
		str_preview += '<tr> <td height="40" align="left" valign="left"><font color="#003399" size="2" face="Tahoma"><strong>Your Organisation:</strong></font></td><td align="left" valign="left"><font size="2" face="Tahoma">' + Mail_Organisation + '</font></TD></TR>'
		str_preview +='<tr> <td height="40" align="left" valign="left"><font color="#003399" size="2" face="Tahoma"><strong>Subject:</strong></font></td><td align="left" valign="left"><font size="2" face="Tahoma">' + Mail_subject + '</font></TD></TR>'
		str_preview +='<tr> <td height="40" align="left" valign="left"><font color="#003399" size="2" face="Tahoma"><strong>Your Reply:</TD><TD align="left" valign="left"><font size="2" face="Tahoma"><br>' + Mail_Text + '</font></TD></TR><TR>'
		str_preview +='</TABLE></html>'
		win = window.open(", ", 'popup', 'toolbar = no,scrollbars, status = no,width=440,height=440');
		win.document.write(str_preview);
	}
var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate
/*********************************************************************/
//-->
