function smile(face)
{
var cache = document.rate.Comments.value;
document.rate.Comments.value = cache + " " + face;
document.rate.Comments.focus();
}

function fnOpenC(strUrl)
{
height = 150;
width = 300;
brow_dimensions = "height=" + height + ",width=" + width + ",top=639,left=799,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no";
window.open(strUrl,'', brow_dimensions)
}

     function fnOpenNote()
	 {
	      open('../profile/report_form.php','','top=20,left=30,width=550,height=300,resizable,scrollbar=no');
     }
	    
		function Commentstext()
{
	var strErrString;
	var strCommentstext="";
	strCommentstext=document.rate.Comments.value;
	var intCommentstextLength=strCommentstext.length;
	if(intCommentstextLength>500)
	{
		strErrString="Ton commentaire est trop long. (200 caractères au max). Écris-lui un message à la place!"
	}
	else
	{
	strErrString="";
	}
	return strErrString;
}
   function fnOpen(strUrl)
{
height = 300;
width = 500;
brow_dimensions = "height=" + height + ",width=" + width + ",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no";
window.open(strUrl,'', brow_dimensions)
}

   function fnOpenMd(strUrl)
{
height = 350;
width = 500;
brow_dimensions = "height=" + height + ",width=" + width + ",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no";
window.open(strUrl,'', brow_dimensions)
}

function fnOpenChat(strUrl)
{
height = 100;
width = 300;
brow_dimensions = "height=" + height + ",width=" + width + ",top=800,left=760,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no";
window.open(strUrl,'', brow_dimensions)
}

   function fnOpen2(strUrl)
{
height = 100;
width = 380;
brow_dimensions = "height=" + height + ",width=" + width + ",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no";
window.open(strUrl,'', brow_dimensions)
}
   function fnOpen3(strUrl)
{
height = 260;
width = 200;
brow_dimensions = "height=" + height + ",width=" + width + ",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no";
window.open(strUrl,'', brow_dimensions)
}

function msg_popup(){
reWin=window.open(theUrl,'im_window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=407,height=186,top=100,left=100')
}

   function fnGo(strUrl)
   {
      window.opener.document.location.href=strUrl;
   }

function checkchars(form) {
var max=15;
if (form.chars.value.length > max) {
alert("Please do not enter more than 15 characters.  Please shorten your entry and submit again.");
return false;
   }
else return true;
}
var properties='left=20,top=20,width=330,height=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no';
function prompt(){
	popup=window.open('prompt.html','FreedomInstaller',properties);
}

function onSubmit(form){
document.getElementById("rate").disabled = true;
form.submit();
}

<!--

function fnGo(strUrl)
{
	parent.window.document.location.href=strUrl;
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0
    window.open(theURL,winName,features);
}

function fnShow(sCriteria)
{
    document.ShowCriteria.show.value = sCriteria;
    document.ShowCriteria.submit();
}

function msg_popup(){
reWin=window.open(theUrl,'im_window','top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=407,height=186,top=100,left=100')
}

function sPageNo(sNo,PerPage)
{
    document.Form.FormForm_Page.value = sNo;
    document.Form.RecordsPerPage.value = PerPage;
    document.Form.submit();
}

//-->