<!-- 
//*********************************
//	 developed by
//   Alessandro Colasanto
//   e-mail:ac@media-bit.com
//   http://www.media-bit.com
//**********************************

function isEmail(a,b){
   var at = 0
   var str = document.forms[a].elements[b].value;
   if (str == "")
      {      
      alert("\nPer spedire la form bisogna inserire una e-mail\n")
      document.forms[a].elements[b].focus();
      return false;
      }
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if (ch == "@")
	  		at = 1
		}
	if (at == 0) {
         alert("\nLa tua e-mail non è scritta correttamente.\n");
         document.forms[a].elements[b].select();
         return false;
         }
   return true;
   }
   
function loadpage() {
browver= parseInt(navigator.appVersion);
browtype = navigator.appName;
browsertype = "old";
if (browtype == "Netscape" && !(browver < 3)) {
browsertype = "new"; 
}
if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
browsertype = "new";
}
if (browsertype == "new") {
thetimer = setTimeout("changeimage()", 5);
bannercode_a = Math.floor(Math.random() * (12));
bannercode_b = Math.floor(Math.random() * (11));
}
}

function changeimage(){
if (browsertype == "new") {
bannercode_a = bannercode_a + 1
bannercode_b = bannercode_b + 1
if (bannercode_a == "13") {
bannercode_a = 0
}
if (bannercode_b == "12") {
bannercode_b = 0
}
imagesource = "../../banner/banner-" + bannercode_a + ".gif"
window.document.banner_a.src = imagesource
imagesource = "../../banner/b-" + bannercode_b + ".gif"
window.document.banner_b.src = imagesource
thetimer = setTimeout("changeimage()", 9000);
}
else if (browsertype == "old") {
}
}

function changepage() {
if (browsertype == "new") {
if (bannercode_a == 0) {
newlocation = "http://www.happychild.it/"
}
else if (bannercode_a == 1) {
newlocation = "http://www.maioli.com"
}
else if (bannercode_a == 2) {
newlocation = "http://www.nonsoloparole.com/"
}
else if (bannercode_a == 3) {
newlocation = "http://www.bingocasa.it/"
}
else if (bannercode_a == 4) {
newlocation = "http://www.ephemerides.it"
}
else if (bannercode_a == 5) {
newlocation = "http://www.saperviaggiare.it"
}
else if (bannercode_a == 6) {
newlocation = "http://www.valleorso.com" 
}
else if (bannercode_a == 7) {
newlocation = "http://www.casinofantasy.com/~1679/italian/" 
}
else if (bannercode_a == 8) {
newlocation = "http://www.noferlainoecorbelli.cjb.net" 
}
else if (bannercode_a == 9) {
newlocation = "http://www.solonapoli.com" 
}
else if (bannercode_a == 10) {
newlocation = "http://www.geocities.com/marina_salvadore" 
}
else if (bannercode_a == 11) {
newlocation = "http://www.pompeisepolta.com" 
}
else if (bannercode_a == 12) {
newlocation = "http://www.progettocampania.it" 
}
window.open(newlocation,'foto','scrollbars=yes,resizable=yes,width=540,height=400,status=yes,location=yes,toolbar=yes');

}
else if (browsertype == "old") {
location = "mailto:redazione@ciaonapoli.com"
}
}

function changepage_b() {
if (browsertype == "new") {
if (bannercode_b == 0) {
newlocation = "http://www.violainrete.it"
}
else if (bannercode_b == 1) {
newlocation = "http://www.cosenzaonline.net"
}
else if (bannercode_b == 2) {
newlocation = "http://www.salernocity.com"
}
else if (bannercode_b == 3) {
newlocation = "http://www.assovortals.com"
}
else if (bannercode_b == 4) {
newlocation = "http://www.parmavirtuale.com"
}
else if (bannercode_b == 5) {
newlocation = "http://www.vacanzeadischia.com"
}
else if (bannercode_b == 6) {
newlocation = "http://www.trieste.com"
}
else if (bannercode_b == 7) {
newlocation = "http://www.piazzedaffari.it"
}
else if (bannercode_b == 8) {
newlocation = "http://www.garganoweb.it"
}
else if (bannercode_b == 9) {
newlocation = "http://www.europarma.com"
}
else if (bannercode_b == 10) {
newlocation = "http://www.firenzeinrete.it"
}
else if (bannercode_b == 11) {
newlocation = "http://www.formatservice.it"
}
window.open(newlocation,'foto','scrollbars=yes,resizable=yes,width=540,height=400,status=yes,location=yes,toolbar=yes');

}
else if (browsertype == "old") {
location = "mailto:redazione@ciaonapoli.com"
}
}

function showpage(form)
{ 
var myindex=form.list.selectedIndex;
var myVal=form.list.options[myindex].value
        if (myVal != "x")    
        document.location = myVal;

}
// -->
