dayName=new Array ("domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato") 
monName=new Array ("gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre") 
now= new Date
ora=now.getHours()

var bookmarkurl="http://www.worky.it"
var bookmarktitle="Worky IT"
function preferiti(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//  End -->


function ricercare() {
	if ((document.filtro2.Sede.value=="0") && (document.filtro2.Categorie.value=="0")) {
		location.href="lavoro.asp"
	}
	else {
		if ((document.filtro2.Sede.value=="0") && (document.filtro2.Categorie.value!="0")) {
			location.href="lavoro.asp?q=" + document.filtro2.Categorie.value + "-0"
		}
		else {
			if ((document.filtro2.Sede.value!="0") && (document.filtro2.Categorie.value=="0")) {
				location.href="lavoro.asp?q=" + document.filtro2.Sede.value + "-0"
			}
			else {
				if ((document.filtro2.Sede.value!="0") && (document.filtro2.Categorie.value!="0")) {
					location.href="lavoro.asp?q=" + document.filtro2.Categorie.value + "-" + document.filtro2.Sede.value + "-0"
				}
			}
		}
	}
}

function ricercare2() {
	if ((document.filtro1.Sede.value=="0") && (document.filtro1.Categorie.value=="0")) {
		location.href="lavoro.asp"
	}
	else {
		if ((document.filtro1.Sede.value=="0") && (document.filtro1.Categorie.value!="0")) {
			location.href="lavoro.asp?q=" + document.filtro1.Categorie.value + "-0"
		}
		else {
			if ((document.filtro1.Sede.value!="0") && (document.filtro1.Categorie.value=="0")) {
				location.href="lavoro.asp?q=" + document.filtro1.Sede.value + "-0"
			}
			else {
				if ((document.filtro1.Sede.value!="0") && (document.filtro1.Categorie.value!="0")) {
					location.href="lavoro.asp?q=" + document.filtro1.Categorie.value + "-" + document.filtro1.Sede.value + "-0"
				}
			}
		}
	}
}


function ricercare_cand() {
	if ((document.filtro2.Sede.value=="0") && (document.filtro2.Categorie.value=="0")) {
		location.href="candidature.asp"
	}
	else {
		if ((document.filtro2.Sede.value=="0") && (document.filtro2.Categorie.value!="0")) {
			location.href="candidature.asp?q=" + document.filtro2.Categorie.value + "-0"
		}
		else {
			if ((document.filtro2.Sede.value!="0") && (document.filtro2.Categorie.value=="0")) {
				location.href="candidature.asp?q=" + document.filtro2.Sede.value + "-0"
			}
			else {
				if ((document.filtro2.Sede.value!="0") && (document.filtro2.Categorie.value!="0")) {
					location.href="candidature.asp?q=" + document.filtro2.Categorie.value + "-" + document.filtro2.Sede.value + "-0"
				}
			}
		}
	}
}

function ricercare2_cand() {
	if ((document.filtro1.Sede.value=="0") && (document.filtro1.Categorie.value=="0")) {
		location.href="candidature.asp"
	}
	else {
		if ((document.filtro1.Sede.value=="0") && (document.filtro1.Categorie.value!="0")) {
			location.href="candidature.asp?q=" + document.filtro1.Categorie.value + "-0"
		}
		else {
			if ((document.filtro1.Sede.value!="0") && (document.filtro1.Categorie.value=="0")) {
				location.href="candidature.asp?q=" + document.filtro1.Sede.value + "-0"
			}
			else {
				if ((document.filtro1.Sede.value!="0") && (document.filtro1.Categorie.value!="0")) {
					location.href="candidature.asp?q=" + document.filtro1.Categorie.value + "-" + document.filtro1.Sede.value + "-0"
				}
			}
		}
	}
}




function homepage() { 
if(document.all)
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.worky.it');
}

function password() { 
window.open('http://www.worky.it/ricorda-dati.asp','rememberdati','height=70,width=465,toolbar=no,menubar=no,scrollbars=no,status=no')
}

function cancellazione() { 
window.open('http://www.worky.it/cancella-account.asp','cancella','height=200,width=445,toolbar=no,menubar=no,scrollbars=no,status=no')
}

function trasferisci() {
		if (document.attivazione.condizioni.checked!=true) {
			alert ("Per proseguire deve accettare le condizioni d'uso");
			return false;
		}
		else {
			document.attivazione.submit()
		}
}

function cambio() { 
window.open('http://www.worky.it/cambio-email.asp','modificamail','height=200,width=500,toolbar=no,menubar=no,scrollbars=no,status=no')
}

function verifica() {
	if (document.filtro.Sede.value=="0") {
		alert("Selezionare una Città")
		document.filtro.Sede.focus()
	}
	else {
		document.filtro.submit()
	}
	
}

function verificare() {
	if (document.filtro2.Sede.value=="0") {
		alert("Selezionare una Città")
		document.filtro2.Sede.focus()
	}
	else {
		document.filtro2.submit()
	}
	
}