﻿// JScript File

    function RefreshContent()
    {
      window.location.reload(true)
    }
    
    function OpenWindow(Link,Name,Width,Height)
    {  
        window.open(Link, randomString(), "Width=" + Width + ",Height=" + Height + ",help=no,status=yes,resizable=no,scrollbars=no,top=200,left=200");

    }
    function OpenScrollWindow(Link,Name,Width,Height)
    {  
        window.open(Link, randomString(), "Width=" + Width + ",Height=" + Height + ",help=no,status=yes,resizable=yes,scrollbars=yes,top=200,left=200");

    }
   
    function ReloadContent()
    {
      document.UpdateForm.submit();
    }
    function ReloadContent2()
    {
      document.UpdateForm.submit();
    }
    function ReloadContent3()
    {
      document.UpdateForm.submit();
    }


    function SetURL(Url)
    {
      location.replace(Url);
    }
    
    function Error(Text)
    {
        alert(Text);
    }
    
    function confirm_delete()
    {
      if (confirm("Etes-vous sur ??")==true)
        return true;
      else
        return false;
    }
    function randomString() {
	var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
	var string_length = 8;
	var randomstring = '';
	for (var i=0; i<string_length; i++) {
		var rnum = Math.floor(Math.random() * chars.length);
		randomstring += chars.substring(rnum,rnum+1);
	}
	return randomstring;
    }

