function checkSrcSelector()
{	
	var SelectorFormulaire = document.forms["sourceSelectorForm"];
	var SearchFormulaire = document.forms["searchForm"];
	var i;
	var listItems = SelectorFormulaire.elements['SS-Sources'].value;
	var listThemes = SelectorFormulaire.elements['SS-Themes'].value;
	var bExist;
	var index = "Theme_".length;
	var idTheme = "";	
	var memorizedValue = "";	
	
	// Checks all in the source selector form
	i = 0;
	while (SelectorFormulaire.elements[i])
	{
		if (SelectorFormulaire.elements[i].type == "checkbox")
			if (SelectorFormulaire.elements[i].disabled != true)
			{
   	  			SelectorFormulaire.elements[i].checked = true;    	  				  			
   	  			if (SelectorFormulaire.elements[i].name == "Theme")
   	  			{
	   	  			// Adds each theme to the list of selected ones   	  			
					index = "Theme_".length;
					idTheme = SelectorFormulaire.elements[i].id;	
					memorizedValue = idTheme.slice(index);
					bExist = listThemes.search(memorizedValue + ",");
		 			if (bExist == -1)
		            	listThemes = listThemes + memorizedValue + ",";														
	            }
   	  			else
   	  			{
		        	// Adds current item to the list of checked ones
					memorizedValue = SelectorFormulaire.elements[i].name;
		        	bExist = listItems.search(memorizedValue + ",");
		 			if (bExist == -1)
		            	listItems = listItems + memorizedValue + ",";													
   	  			}	   	  			            
   	  		}
		i++;
	}
	SelectorFormulaire.elements['SS-Themes'].value = listThemes;
	SelectorFormulaire.elements['SS-Sources'].value = listItems;	
	
	// Checks all in the searcher form
	i = 0;
	while (SearchFormulaire.elements[i])
	{
		if (SearchFormulaire.elements[i].type == "checkbox")
			if (SearchFormulaire.elements[i].disabled != true)
   	  			SearchFormulaire.elements[i].checked = true;
		i++;
	}
}

function uncheckSrcSelector()
{	
	var SelectorFormulaire = document.forms["sourceSelectorForm"];
	var SearchFormulaire = document.forms["searchForm"];
	var i;
	
	// Unchecks all in the source selector form
	i = 0;
	while (SelectorFormulaire.elements[i])
	{
		if (SelectorFormulaire.elements[i].type == "checkbox")
			if (SelectorFormulaire.elements[i].disabled != true)
   	  			SelectorFormulaire.elements[i].checked = false;
		i++;
	}
	// Clears the list of selected Sources and the list of selected items
	SelectorFormulaire.elements['SS-Themes'].value = "";
	SelectorFormulaire.elements['SS-Sources'].value = "";	
	
	// Unchecks all in the searcher form
	i = 0;
	while (SearchFormulaire.elements[i])
	{
		if (SearchFormulaire.elements[i].type == "checkbox")
			if (SearchFormulaire.elements[i].disabled != true)
   	  			SearchFormulaire.elements[i].checked = false;
		i++;
	}
}

function foldSrcSelector(nbBlock)
{
	var SelectorFormulaire = document.forms["sourceSelectorForm"];
	
	i=1;
	var block;
	var picto;
	while (i<=nbBlock)
	{
		if(document.getElementById("src_stacktrace_"+i))
		{
			block = document.getElementById("src_stacktrace_"+i);
			picto = document.getElementById("src_pm_"+i);
			with (block.style) 
	    	{
	    		display = "none"
	    		picto.src="searcher/images/picto_plus_of.gif";
	    	}
	    }
		i++;
	}
	SelectorFormulaire.elements['SS-Fold'].value = "";
}

function unfoldSrcSelector(nbBlock)
{
	var SelectorFormulaire = document.forms["sourceSelectorForm"];
	var listFold = SelectorFormulaire.elements['SS-Fold'].value;
	var bExist;	

	i=1;
	var block;
	var picto;
	while (i<=nbBlock)
	{
		if(document.getElementById("src_stacktrace_"+i))
		{
			block = document.getElementById("src_stacktrace_"+i);
			picto = document.getElementById("src_pm_"+i);
			with (block.style) 
	    	{
	    		display = ""
	    		picto.src="searcher/images/picto_moins_of.gif";
	    	}
			// Adds all themes into the list of folded ones
			bExist = listFold.search(i + ",");
			if (bExist == -1)
				listFold = listFold + i + ",";
	    }
		i++;
	}
	// Removes all themes from the list of folded ones
	SelectorFormulaire.elements['SS-Fold'].value = listFold;
}

function toggleSrcSelector(idBlock,idImg) 
{
	var SelectorFormulaire = document.forms["sourceSelectorForm"];
	var listFold = SelectorFormulaire.elements['SS-Fold'].value;
	var bExist;
	var index = "src_stacktrace_".length;	
	var memorizedValue = idBlock.slice(index);
	
    var block = document.getElementById(idBlock);
    var picto = document.getElementById(idImg);
    with (block.style) 
    {
        if ( display == "none" )
        {
            display = "block"            ;
            picto.src="searcher/images/picto_moins_of.gif";
            // Adds current theme to the list of folded ones
            bExist = listFold.search(memorizedValue + ",");
 			if (bExist == -1)
            	listFold = listFold + memorizedValue + ",";
        } 
        else
        {
            display = "none";
            picto.src="searcher/images/picto_plus_of.gif";
            // Removes current theme to the list of folded ones
            bExist = listFold.search(memorizedValue + ",");
 			if (bExist != -1)
            	listFold = listFold.replace(memorizedValue + "," , ""); 	
        }
    }
    SelectorFormulaire.elements['SS-Fold'].value = listFold;   
    pngReload();  
}

function foldSearcherResult(nbBlock)
{
	var SearchResultFormulaire = document.forms["listeForm"];
	
	i=1;
	var block;
	var picto;
	while (i<=nbBlock)
	{
		if(document.getElementById("stacktrace_"+i))
		{
			block = document.getElementById("stacktrace_"+i);
			picto = document.getElementById("pm_"+i);
			with (block.style) 
	    	{
	    		display = "none"
	    		picto.src="searcher/images/picto_plus_of.gif";
	    	}
	    }
		i++;
	}
	SearchResultFormulaire.elements['SR-Fold'].value = "";
}

function unfoldSearcherResult(nbBlock)
{
	var SearchResultFormulaire = document.forms["listeForm"];
	var listFold = SearchResultFormulaire.elements['SR-Fold'].value;
	var bExist;

	i=1;
	var block;
	var picto;
	while (i<=nbBlock)
	{
		if(document.getElementById("stacktrace_"+i))
		{
			block = document.getElementById("stacktrace_"+i);
			picto = document.getElementById("pm_"+i);
			with (block.style) 
	    	{
	    		display = ""
	    		picto.src="searcher/images/picto_moins_of.gif";
	    	}
			// Adds all sources into the list of folded ones
			bExist = listFold.search(i + ",");
			if (bExist == -1)
				listFold = listFold + i + ",";
	    }
		i++;
	}
	// Removes all source from the list of folded ones
	SearchResultFormulaire.elements['SR-Fold'].value = listFold;
}

function toggleSearcherResult(idBlock,idImg) 
{
	var SearchResultFormulaire = document.forms["listeForm"];
	var listFold = SearchResultFormulaire.elements['SR-Fold'].value;
	var bExist;
	var index = "stacktrace_".length;	
	var memorizedValue = idBlock.slice(index);
	
    var block = document.getElementById(idBlock);
    var picto = document.getElementById(idImg);
    with (block.style) 
    {
        if ( display == "none" )
        {
            display = ""            
            picto.src="searcher/images/picto_moins_of.gif";
            // Adds current theme to the list of folded ones
            bExist = listFold.search(memorizedValue + ",");
 			if (bExist == -1)
            	listFold = listFold + memorizedValue + ",";
        } 
        else
        {
            display = "none"
            picto.src="searcher/images/picto_plus_of.gif";
            // Removes current theme to the list of folded ones
            bExist = listFold.search(memorizedValue + ",");
 			if (bExist != -1)
            	listFold = listFold.replace(memorizedValue + "," , ""); 	
        }
    }
    SearchResultFormulaire.elements['SR-Fold'].value = listFold;     
}

function checkSearcherResult()
{	
	var Formulaire = document.forms["listeForm"];
	var i;
	var listItems = Formulaire.elements['SR-SelectedSrcItems'].value;
	var listSources = Formulaire.elements['SR-SelectedSources'].value;
	var bExist = false;
	var indexName = "Item_".length;
	var indexId = "Source_".length;
	var idSource = "";
	var nameItem = "";
	var idItem = "";	
	var memorizedValueName = "";
	var memorizedValueId = "";	
	
	// Checks all
	i = 0;
	while (Formulaire.elements[i])
	{
		if (Formulaire.elements[i].type == "checkbox")
			if (Formulaire.elements[i].disabled != true)
			{
   	  			Formulaire.elements[i].checked = true;
   	  			if (Formulaire.elements[i].name == "Source")
   	  			{
					// Adds current source to the list of checked ones   	  			
					idSource = Formulaire.elements[i].id;	
					memorizedValueId = idSource.slice(indexId);
		        	bExist = listSources.search(memorizedValueId + ",");
		 			if (bExist == -1)
		            	listSources = listSources + memorizedValueId + ",";						   	  			
   	  			}
   	  			else
   	  			{
		        	// Adds current item to the list of checked ones
					nameItem = Formulaire.elements[i].name;
					idItem = Formulaire.elements[i].id;	
					memorizedValueName = nameItem.slice(indexName);
					memorizedValueId = idItem.slice(indexId);
		        	bExist = listItems.search(memorizedValueId + "-" + memorizedValueName + ",");
		 			if (bExist == -1)
		            	listItems = listItems + memorizedValueId + "-" + memorizedValueName + ",";													
   	  			}
   	  		}
		i++;
	}
	Formulaire.elements['SR-SelectedSources'].value = listSources; 
	Formulaire.elements['SR-SelectedSrcItems'].value = listItems; 													
}

function uncheckSearcherResult()
{	
	var Formulaire = document.forms["listeForm"];
	var i;
	
	// Unchecks all
	i = 0;
	while (Formulaire.elements[i])
	{
		if (Formulaire.elements[i].type == "checkbox")
			if (Formulaire.elements[i].disabled != true)
   	  			Formulaire.elements[i].checked = false;
		i++;
	}
	
	// Clears the list of selected Sources and the list of selected items
	Formulaire.elements['SR-SelectedSources'].value = "";
	Formulaire.elements['SR-SelectedSrcItems'].value = "";
}

function check(formName,widgetName)
{	
	if(!formName)
		formName="listeForm";
	i=0;
	while (document.forms[formName].elements[i]){
		var hasToBeChecked = document.forms[formName].elements[i].type=="checkbox";
		if(widgetName){
			if(document.forms[formName].elements[i].name.split(".")[2]!=widgetName){
				hasToBeChecked=false;
			}
		}
		if (hasToBeChecked){
			if(document.forms[formName].elements[i].checked==false){
				document.forms[formName].elements[i].checked=true;
			}
		}
		i++;
	}
}

function uncheck(formName,widgetName)
{	
	if(!formName)
		formName="listeForm"
	i=0;
	while (document.forms[formName].elements[i]){
		var hasToBeChecked = document.forms[formName].elements[i].type=="checkbox";
		if(widgetName){
			if(document.forms[formName].elements[i].name.split(".")[2]!=widgetName){
				hasToBeChecked=false;
			}
		}
		if (hasToBeChecked){
			if(document.forms[formName].elements[i].checked==true){
				document.forms[formName].elements[i].checked=false;
			}
		}
		i++;
	}
}

function checkForm(formName)
{	
        var form = document.forms[formName];
        i=0;

        while (form.elements[i])
        {
                if (form.elements[i].type == "checkbox")
                {
                        if (form.elements[i].checked == false)
                        {
                                form.elements[i].checked = true;
                        }
                }
                i++;
        }
}

function uncheckForm(formName)
{	
        var form = document.forms[formName];
        i=0;

        while (form.elements[i])
        {
                if (form.elements[i].type == "checkbox")
                {
                        if (form.elements[i].checked == true)
                        {
                                form.elements[i].checked = false;
                        }
                }
                i++;
        }
}

function toggle(idBlock,idImg) 
{
    var block = document.getElementById(idBlock);
    var picto = document.getElementById(idImg);
    with (block.style) 
    {
        if ( display == "none" )
        {
            display = ""            
            picto.src="searcher/images/picto_moins_of.gif";
        } 
        else
        {
            display = "none"
            picto.src="searcher/images/picto_plus_of.gif";
        }
    }    
}

function toggleDisplay(idBlock,idImg, imagePlus, imageMoins) 
{
    var block = document.getElementById(idBlock);
    var picto = document.getElementById(idImg);
    
    with (block.style) 
    {
        if ( display == "none" )
        {
            display = ""            
            picto.src = imageMoins;
        } 
        else
        {
            display = "none"
            picto.src = imagePlus;
        }
    }    
}

function fold(nbBlock)
{
	i=1;
	var block;
	var picto;
	while (i<=nbBlock)
	{
		if(document.getElementById("stacktrace_"+i))
		{
			block = document.getElementById("stacktrace_"+i);
			picto = document.getElementById("pm_"+i);
			with (block.style) 
	    		{
	    			display = "none"
	    			picto.src="searcher/images/picto_plus_of.gif";
	    		}
	    	}
			i++;
	}
}

function unfold(nbBlock)
{
	i=1;
	var block;
	var picto;
	while (i<=nbBlock)
	{
		if(document.getElementById("stacktrace_"+i))
		{
			block = document.getElementById("stacktrace_"+i);
			picto = document.getElementById("pm_"+i);
			with (block.style) 
	    		{
	    			display = ""
	    			picto.src="searcher/images/picto_moins_of.gif";
	    		}
	    	}
			i++;
	}
}

function ShowTab(tabgroup, idx, length, state) 
{
    for (var i = 0; i < length; i++) 
    {
        // Change tab status (selected/unselected)
        var tab = document.getElementById(tabgroup + "_tab_" + i);
        if (tab != null) 
        {
            tab.className = (i == idx) ? 'Ongl3OnTr': 'Ongl3OfTr';
        }
        // Change tab content visibilty
        var tabitems = document.getElementById(tabgroup + "_items_" + i);
        if (tabitems != null) 
        {
            tabitems.style.display = (i == idx) ? '' : 'none';
        }
    }
    // Change state value
    if (state.length > 0) {
        document.forms['listeForm'][state].value = idx;
    }
}

///START Scripts for Module WkfMap
var bool = true;
var valeurcourante = null;
var cellulecourante = null;
var monChamp = null;

function modifyCell(Cellule)
{	
	if(bool == true)
	{	
		// Get current cell data
		var element = document.getElementById(Cellule);
		valeurcourante = element.firstChild.data;		
		cellulecourante = Cellule;
		bool = false;	
			
		// Insert text input for enter condition value
		monChamp = document.createElement("input");
		var attribut1 = document.createAttribute("type");
		attribut1.nodeValue = "text";				
		
		var attribut2 = document.createAttribute("value");
		attribut2.nodeValue = valeurcourante;		
		
		var attribut3 = document.createAttribute("size");
		attribut3.nodeValue="10";
		
		var attribut4 = document.createAttribute("name");
		attribut4.nodeValue = "conditions";
		
		monChamp.setAttributeNode(attribut1);
		monChamp.setAttributeNode(attribut2);		
		monChamp.setAttributeNode(attribut3);
		monChamp.setAttributeNode(attribut4);
		
		element.firstChild.nodeValue = "";
		element.appendChild(monChamp);
		monChamp.focus();

		// Set 'etat' and 'actions' input value
		// 		with current select cell data
		
		var monTableau = Cellule.split('_');
		document.getElementById("etat").value = monTableau[0];
		document.getElementById("actions").value = monTableau[1];
	}	
	else if( (bool == false) && (cellulecourante == Cellule) )
	{
		bool = true;
		var element = document.getElementById(Cellule);
		element.removeChild(monChamp);
		element.firstChild.data = valeurcourante;
	}
}

function acreditables()
{
	window.open('../credentialList','public','status=no,location=no,directorie=no,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=640,height=480,top=200,left=600');	
}
///END Module WkfMap

function woody_onsubmit_users() 
{
    document.forms['listeForm'].newLeftFieldGroups.value=groupsTransfert.newLeftField;
    document.forms['listeForm'].newRightFieldGroups.value=groupsTransfert.newRightField;
    document.forms['listeForm'].newLeftFieldChannels.value=channelsTransfert.newLeftField;
    document.forms['listeForm'].newRightFieldChannels.value=channelsTransfert.newRightField;
    woody_onsubmit();
}

function woody_onsubmit_doctype() 
{
    document.forms['listeForm'].newLeftField.value=groupsTransfert.newLeftField;
    document.forms['listeForm'].newRightField.value=groupsTransfert.newRightField;
    document.forms['listeForm'].newLeftChannelsField.value=channelsTransfert.newLeftField;
    document.forms['listeForm'].newRightChannelsField.value=channelsTransfert.newRightField;
    woody_onsubmit();
}

// Change Div content visibilty
function ShowDiv(tabgroup,idx,length) 
{
    for (var i = 0; i < length; i++) 
    {        
        var tabitems = document.getElementById(tabgroup + "_items_" + i);
        if (tabitems != null) 
        {            	
            	if(i==idx)
            	{                        	
		        with (tabitems.style)
		        {
		              if(tabitems.style.display=="none")
		              {
		                  display = ""
		              }
		              else
		              {
		                  display="none"
		                  document.getElementById(tabgroup+"_items_0").style.display="";
		              }
		        }
		}
		else
		{
			tabitems.style.display="none";			
		}		         
        }
    }
}

function indexSelected(index, champ)
{
	//alert(index.name+"|"+index.value+"|"+index.selectedIndex);	
	document.forms['listeForm'].elements[champ].value = index.options[index.selectedIndex].text;
}

// ------------------------------------
// Editable combobox widget
// ------------------------------------

// Input label auto complete
function autoComplete (field, select, property, forcematch)
{
	var found = false;
	for (var i = 0; i<select.options.length; i++)
	{
    	if (select.options[i][property].toUpperCase().indexOf(field.value.toUpperCase()) == 0)
 	   {
    	  found = true; break;
	   }
	}
	
  	if (found) { select.selectedIndex = i; }
  	else { select.selectedIndex = -1; }

  	if (field.createTextRange)
  	{
    	if (forcematch && !found)
    	{
      		field.value = field.value.substring(0,field.value.length-1);
      		return;
    	}
    	var cursorKeys ="8;46;37;38;39;40;33;34;35;36;45;";
    	if (cursorKeys.indexOf(event.keyCode+";") == -1)
    	{
      		var r1 = field.createTextRange();
      		var oldValue = r1.text;
      		var newValue = found ? select.options[i][property] : oldValue;
      		if (newValue != field.value)
      		{
        		field.value = newValue;
        		var rNew = field.createTextRange();
        		rNew.moveStart('character', oldValue.length) ;
        		rNew.select();
      		}
    	}
  	}
}

// open or close selection list
function switchList(field, select)
{
  if (window.getComputedStyle) // Mozilla
  {
      if ( window.getComputedStyle(select,null).getPropertyValue('visibility') == "hidden" )
      {
        select.style.visibility = "visible";
        select.focus();
      }
      else
      {
        select.style.visibility = "hidden";
        field.focus();
      }
  }
  else if (select.currentStyle) // IE
  {
    if ( select.currentStyle.visibility == "hidden" )
    {
      select.style.visibility = "visible";
      select.focus();
    }
    else
    {
      select.style.visibility = "hidden";
      field.focus();
    }
  }
}

// Close selection list
function selectList(field, select)
{
	select.style.visibility = "hidden";
	field.focus();
}

function initLabelSize(selectId, labelId)
{
    if ( document.all ) //IE
	{
  		var width = document.all[selectId].offsetWidth;
  		if (width <= 40)
  		{	
  			width = 109;
	  		document.all[selectId].style.width = width;
	  	}
  		document.all[labelId].width = width - 24;
	}
	else //Mozilla
	{
  		var width = document.getElementById(selectId).offsetWidth;
  		if (width <= 40)
  		{
  			width = 107;
	  		document.getElementById(selectId).style.width = width + "px";
	  	}
  		document.getElementById(labelId).style.width = (width - 22) + "px";
    }
}

function print_or_preview()
{
	var NS = (navigator.appName == "Netscape");
	var VERSION = parseInt(navigator.appVersion);

	if(NS)
	{
		window.print();
	}
	else
	{
		var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';

		// PROMPT values:
		// 1 - prompt user
		// 2 - don't prompt user
		var PROMPT = 2;

		// OLECMDID values:
		// 6 - print
		// 7 - print preview
		// 1 - open window
		// 4 - Save As
		var OLECMDID = 7;

		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		WebBrowser1.ExecWB(OLECMDID, PROMPT);
		WebBrowser1.outerHTML = "";
	}
}

function atLeastOneSelected(elements, prefix)
{
	var i=0;
	while(elements[prefix + "." + i + '.select']){
		if(elements[prefix + "." + i + '.select'].checked)
			return true;
		i++;
	}
	alert("Veuillez sélectionner au moins un élément!");
	return false;
}

function atLeastOneSelected(elements, prefix, inputMessage)
{
	var i=0;
	
	while (elements[prefix + "." + i + '.select'])
	{
		if (elements[prefix + "." + i + '.select'].checked)
		{
			return true;
		}
		
		i++;
	}
	
	alert(inputMessage.value);
	return false;
}

function confirmBeforeSubmit(inputMessage)
{
	
	return confirm(inputMessage.value);
}

/* return true if the email is valid, false otherwise 
 *
 */
function emailCheck(emailStr)
{
	var emailPat = /^(.+)@(.+)$/;
	var specialChars = "\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
	var validChars = "\[^\\s" + specialChars + "\]";
	var quotedUser = "(\"[^\"]*\")";
	var ipDomainPat = "/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/";
	var atom = validChars + '+';
	var word = "(" + atom + "|" + quotedUser + ")";
	var userPat = new RegExp("^" + word + "(\\." + word + ")*$");
	var domainPat = new RegExp("^" + atom + "(\\." + atom +")*$");
	var matchArray = emailStr.match(emailPat);
	
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	if (matchArray == null)
	{
		alert("Votre adresse e-mail est incorrect\n Verifiez @ et .");
		return false;
	}
	
	var user = matchArray[1];
	var domain = matchArray[2];
	
	// See if "user" is valid
	if (user == null)
	{
		alert("Le nom de l'adresse e-mail est incorrect.");
		return false;
	}
	
	// if the e-mail address is at an IP address (as opposed to a symbolic host name) 
	// make sure the IP address is valid.
	var IPArray = domain.match(ipDomainPat);
	
	if (IPArray != null)
	{
		for (var i = 1; i <= 4; i++)
		{
			if (IPArray[i] > 255)
			{
				alert("L'adresse IP est invalide.");
				document.forms["suggestionForm"].elements["suggestEmail"].focus();
				return false;
			}
		}
		return true;
	}
	
	var domainArray=domain.match(domainPat)
	if (domainArray==null)
	{
		alert("Le nom de domaine est invalide.");
		return false;
	}
	
	var atomPat = new RegExp(atom, "g");
	var domArr = domain.match(atomPat);
	var len = domArr.length;
	
	if (domArr[domArr.length-1].length < 2 || domArr[domArr.length - 1].length > 3)
	{
		// the address must end in a two letter or three letter word.
		alert("Le suffix doit contenir 3 caracteres pour un domaine et 2 caracteres pour un pays.");
		return false;
	}
	
	// Make sure there's a host name preceding the domain.
	if (len < 2)
	{
		alert("Il manque un nom de domaine");
		return false;
	}
	
	// If we've gotten this far, everything's valid!
	return true;
}
// Used to create another window with the print view.
// It submits a cocoon forms in a new browser window.
function submitInAnotherWindow(elem,submitId,formName,printUrl){
	var form = document.forms[formName];
	form.target="_blank";
	var oldAction = form.action;
	form.action=printUrl;
	forms_submitForm(elem,submitId);
	form.target="_self";
	form.action=oldAction;
	// clear submit id to prevent an exception when submiting via images or button
	form.elements['forms_submit_id'].value='';
	// do not display the hourglass after the form is submitted
	document.body.style.cursor="";
}

function showUrl(url)
{
	var popup = window.open(url,'','status=yes,location=yes,directorie=no,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=800,height=550,top=20,left=200');
	popup.focus();
}
