function doSubmit(form) 
{
	if ((form.email.value.length < 4) || (form.email.value.indexOf('@', 0) == -1))
		{
		alert("Indirizzo E-mail errato"); return false}
		else {return true;
		}
}
function MM_openBrWindow(theURL,winName,features) {



  window.open(theURL,winName,features); 

}
function setPointer(theRow, thePointerColor)
	{
		if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
			return false;
		}

		var row_cells_cnt           = theRow.cells.length;
		for (var c = 0; c < row_cells_cnt; c++) {
			theRow.cells[c].bgColor = thePointerColor;
		}

		return true;
	} // end of the 'setPointer()' function


var i=0;

function flipIMG(document) 
{	
	if (i==4) {
			document.images['mapk'].src='images/kadmosmap0.jpg';
			i=0;
		}

	if (i==3) {
			document.images['mapk'].src='images/kadmosmap4.jpg';
			i=i+1;
		}
	if (i==2) {
			document.images['mapk'].src='images/kadmosmap3.jpg';
			i=i+1;
		}

	if (i==1) {
			document.images['mapk'].src='images/kadmosmap2.jpg';
			i=i+1;
		}
	if (i==0) {
			document.images['mapk'].src='images/kadmosmap1.jpg';
			i=i+1;
		}	
	
}

function doSubmitS(form) {
  if (form.q.value.length < 1) {
      alert("Inserire la stringa di ricerca!"); 
      return false;
  }
      
  else {
    parent.location='insricerca.php?ty=google&q='+form.q.value;
    return true;
  }  

}




function doSubmitKB(form) {
  if (form.topic.value.length < 1) {
      alert("Inserire la stringa di ricerca!"); 
      return false;
  }
      
  

}
