function submitForm()
{
	StartMessage();
}

function StartMessage() 
{
	 var msgDiv = document.getElementById("Msg");
	 if (msgDiv.style.display = 'none') 
     {
        msgDiv.style.display = '';
     }
     var buttonStopMsg = document.getElementById("StopMsg");
     buttonStopMsg.focus();
     Defilement();
}

var actifDfl;
var dfl="..... ";
function Defilement()
{
	 var dflSpan = document.getElementById("Dfl");
	 dfl = dfl.substring(1,dfl.length) + dfl.substring(0,1);	 
	 dflSpan.firstChild.nodeValue = dfl;
	 actifDfl = window.setTimeout("Defilement()", 200);
}

function StopMessage()
{
	window.clearTimeout(actifDfl);
	var msgDiv = document.getElementById("Msg");
	msgDiv.style.display = 'none';
	
	var NS = (navigator.appName == "Netscape");
	if(NS)
	{
		window.stop();
	}
	else
	{
		document.execCommand('Stop');
	}
}
function cleanfields()
{
	var searchForm = document.forms["f_search"];
	if(searchForm.elements["subject1-input"] != null)
	    searchForm.elements["subject1-input"].selectedIndex = 0;
	if(searchForm.elements["subject2-input"] != null)    
	    searchForm.elements["subject2-input"].selectedIndex = 0;
	if(searchForm.elements["type1-input"] != null)
	    searchForm.elements["type1-input"].selectedIndex = 0;
	if(searchForm.elements["type2-input"] != null)
	    searchForm.elements["type2-input"].selectedIndex = 0;
    if(searchForm.elements["level-input"] != null)
        searchForm.elements["level-input"].selectedIndex = 0;
    
}