Event.observe(window, "load", init);
function init(e)
{
	$$(".toolTip").each(function(img){
		Event.observe(img, "mouseover", displayToolTip);
		Event.observe(img, "mouseout", hideToolTip);
	});
}
var textes=Array();
//index 0
textes.push('<b>30 words maximum.</b>');
//index 1
textes.push('Capitalize the last name followed by initials of the first name separated by dots (e.g. SMITH A.R.).<br>One author by box of the on-line form.');
//index 2
textes.push('<b>100 words maximum</b> with the name(s) of author(s).<br>At least: institute or Laboratory, City, Country.');
//index 3
textes.push('<b>Abstract body</b><i> (4 parts: Aims, Methods, Results, Discussion/Conclusion):</i> <b>400 words maximum</b><br>Do not duplicate the headings <i>(Aims, Methods, Results, Discussion/Conclusion)</i>.<br>Standard abbreviations may be used without definition. Nonstandard abbreviations (kept to a minimum) must be placed in parentheses after the first use of the word or phrase abbreviated.');
//index 4
textes.push('<b>1 figure or table</b> maximum in Results part, <b>in JPEG format</b>.<br>A table or a figure <b>is equivalent to 100 words of text</b>.');
//index 5
textes.push('<b>3 references maximum</b>.<br><br>Examples of typical reference entries:<br><br>Schneider T. Improving exposure assessment requires measurements and modeling [editorial]. Scand J Work Environ Health. 2002;28:367-70.<br><br>Ketola R, Toivonen R, H&auml;kk&auml;nen M, Luukkonen R, Takala E-P, Viikari-Juntura E, et al. Effects of ergonomic intervention in work with video display units. Scand J Work Environ Health. 2002;28:18-24.<br><br>International Agency for Research on Cancer (IARC). Reevaluation of some organic chemicals, hydrazine and hydrogen peroxide. Lyon: IARC; 1997. IARC monographs on the evaluation of the carcinogenic risks of chemicals to humans, vol 71.<br><br>Miettinen OS. Theoretical epidemiology in evolution, 1972-2002. In: Nurminen M, editor. 30 years of epidemiology for the benefit of occupational health: proceedings of the symposium, Sven Hernberg symposium. Helsinki: Finnish Institute of Occupational Health; 2002. p 25-9. People and work research reports, no 50.');
//index 6
textes.push('Choose <b>3 keywords</b> in the list below:<br> .Biomechanics<br> .Mechanism of pain and tissue injury<br> .Muscle activity<br> .Biomarkers<br> .Postures, physical exposure<br> .Vibration, driving<br> .Computer work<br> .Health care workers<br> .Construction<br> .Agriculture<br> .Specific sectors<br> .Psychosocial factors<br> .Work organization<br> .Exposure measurement methods<br> .Personal risk factors for MSD<br> .Surveillance<br> .Epidemiology<br> .Methods in epidemiology<br> .Early prevention<br> .Intervention studies<br> .Intervention methods<br> .Disability prevention<br> .Return to work<br> .Social aspects of MSD<br> .Economics<br> .Public policy<br> .Older workers<br> .Vulnerable workers<br> .Gender differences<br> .Back, low back<br> .Neck<br> .Upper limb<br> .Carpal tunnel syndrome<br> .Lower limb<br> .Pain, chronic pain<br> .Prognosis of MSD<br> .Specific health outcomes<br> .Other<br> .WDPI NOT musculoskeletal');
//index 7
textes.push('You must indicate your preference for poster or oral presentation.');
//index 8
textes.push('You must indicate whether you want to participate in the competition of best paper organized by the Scandinavian Journal of Work, Environment and Health.');
//index 9
textes.push('Abstract body <i> (4 parts: Aims, Methods, Results, Discussion/Conclusion)</i>: <b>1000 words maximum</b><br>Do not duplicate the headings <i>(Aims, Methods, Results, Discussion/Conclusion)</i>.Standard abbreviations may be used without definition. Nonstandard abbreviations (kept to a minimum) must be placed in parentheses after the first use of the word or phrase abbreviated.');
//index 10
textes.push('<b>400 words maximum.</b><br>Standard abbreviations may be used without definition. Nonstandard abbreviations (kept to a minimum) must be placed in parentheses after the first use of the word or phrase abbreviated.');
//index 11
textes.push('<b>Author\'s name:</b><br><br>Capitalize the last name followed by initials of the first name separated by dots (e.g. SMITH A.R.).<br>One author by box of the on-line form.<br><br><b>Title of the abstract:</b><br><br>30 words maximum.<br>One title by box of the on-line form.');
//index 12 Keywords for WDPI 
textes.push('Choose <b>3 keywords</b> in the list below:<br> .Return-to-work interventions <br />.Disability prevention interventions<br />.Interdisciplinary approaches<br />.Work disability predictors<br />.Measures of work disability <br />.Measures of successful work re-integration outcomes<br />.Impact of policies and practices on outcomes<br />.Cancer<br />.Musculoskeletal problems<br />.Mental health problems<br />.Cardiovascular disease<br />.Chronic pain<br />.Return to work facilitation / coordination<br />.Professional competency in work disability prevention<br />.Epidemiology of work disability<br />.Social aspects of work disability<br />.Economic aspects of work disability<br />.Special worker populations<br />.Workplace response <br />.Health care provider involvement in work disability<br />.Labor role in work disability<br />.Insurance roles in work disability<br />.Workplace intervention<br />.Clinical intervention<br />.Social intervention<br />.Socio-political issues<br />.Ethical issues<br />.Methodological issues<br />.Randomized trials<br />.Non-randomized comparative trials<br />.Cohort study<br />.Implementation study<br />.Disability determinants<br />.Presenteeism<br />.Measurement tools<br />.Intervention tool<br />');


function displayToolTip(e)
{
	M4ToolTips.display(textes[this.alt]); 
}
function hideToolTip(e)
{
	M4ToolTips.hide();
}
function formCheck()
{
	var ok = false;
	var phrase_en = "You must enter";
	var icoh = /^[0-9\w]{5}$/;
	

	if(document.getElementById("email").value.indexOf('@') == -1)
	{
		alert(phrase_en + " a correct email address");
		document.getElementById("email").focus();
		return false;
	}
	else if(document.getElementById("email") && document.getElementById("email2") && (document.getElementById("email").value != document.getElementById("email2").value))
	{
		alert(phrase_en + " the same email address."); 
		document.getElementById("email2").focus();
		return false;
	}
	else if(document.getElementById("first_name") && document.getElementById("first_name").value == "")
	{
		alert(phrase_en + " a valid first name."); 
		document.getElementById("first_name").focus();
		return false;
	}
	else if(document.getElementById("last_name") && document.getElementById("last_name").value == "")
	{
		alert(phrase_en + " a valid last name."); 
		document.getElementById("last_name").focus();
		return false;
	}
	else if(document.getElementById("organization") && document.getElementById("organization").value == "")
	{
		alert(phrase_en + " a valid organization."); 
		document.getElementById("organization").focus();
		return false;
	}
	else if(document.getElementById("city") && document.getElementById("city").value == "")
	{
		alert(phrase_en + " a valid city."); 
		document.getElementById("city").focus();
		return false;
	} 
	else if(document.getElementById("country") && document.getElementById("country").value == "")
	{
		alert(phrase_en + " a valid country."); 
		document.getElementById("country").focus();
		return false;
	}
	else if(document.getElementById("country") && document.getElementById("statut") && document.getElementById("country").value == "United States" && document.getElementById("state").value == "")
	{
		alert(phrase_en + " a valid State."); 
		document.getElementById("state").focus();
		return false;
	}
	else if(document.getElementById("password") && document.getElementById("password").value == "")
	{
		alert(phrase_en + " a valid password."); 
		document.getElementById("password").focus();
		return false;
	}
	else if(document.getElementById("password") && document.getElementById("password2") && (document.getElementById("password").value != document.getElementById("password2").value))
	{
		alert(phrase_en + " the same password."); 
		document.getElementById("password2").focus();
		return false;
	}
	else if(document.getElementById("type_visitor") && document.getElementById("type_visitor").value == "")
	{
		alert(phrase_en + " a valid visitor type."); 
		document.getElementById("type_visitor").focus();
		return false;
	}
	else if (document.getElementById("type_visitor") && document.getElementById("type_visitor").value == "ICOH")
	 {
		if (document.getElementById("nb_icoh") && icoh.exec(document.getElementById("nb_icoh").value) == null)
		{
			alert('You must insert your ICOH number.');
			document.getElementById("nb_icoh").focus();
			return false;
		}
	 }
	else
		{
			ok = true;	
		}
	return true;

}

function formCheckSubmission(formulaire)
{
	var ok = false;
	var phrase_en = "You must enter";
	var icoh = /^[0-9\w]{5}$/;
	

	if(document.forms[formulaire].elements["email"].value.indexOf('@') == -1)
	{
		alert(phrase_en + " a correct email address");
		document.forms[formulaire].elements["email"].focus();
		return false;
	}
	else if(document.forms[formulaire].elements["password"].value == "")
	{
		alert(phrase_en + " a valid password."); 
		document.forms[formulaire].elements["password"].focus();
		return false;
	}
	else
		{
			ok = true;	
		}
	return true;

}

function mailFormCheck()
{
	var phrase_en = "You must enter";
	var icoh = /^[0-9\w]{5}$/;
	
	if(document.getElementById("email").value.indexOf('@') == -1)
	{
		alert(phrase_en + " a correct email address");
		document.getElementById("email").focus();
		return false;
	}
	else if(document.getElementById("first_name") && document.getElementById("first_name").value == "")
	{
		alert(phrase_en + " a valid first name."); 
		document.getElementById("first_name").focus();
		return false;
	}
	else if(document.getElementById("last_name") && document.getElementById("last_name").value == "")
	{
		alert(phrase_en + " a valid last name."); 
		document.getElementById("last_name").focus();
		return false;
	}
	else if(document.getElementById("country") && document.getElementById("country").value == "")
	{
		alert(phrase_en + " a valid country."); 
		document.getElementById("country").focus();
		return false;
	}
	else
	{
		return true;
	}
}

