<!--
function sw(fn){ p = window.open(fn,'smallinfo','top=0,left=0,width=420,height=350,scrollbars=yes'); p.focus(); return;} 

function mlpopup(fn){
if (getCookie('mlpopup') == null){
	document.cookie='mlpopup=1';
	p = window.open(fn,'smallinfo','top=0,left=0,width=420,height=410,scrollbars=yes'); p.focus();
}
return; 
}

function mlpopup2(filen,wtop,wleft,bwidth,bheight){


if (getCookie('mlpopup') == null){
var features='top=' + wtop + ',left=' + wleft + ',width=' + bwidth + ',height=' + bheight + ',scrollbars=yes';
var windowName='popupwin';
var p;

	document.cookie='mlpopup=1';
	p = window.open(filen,'smallinfo',features); p.focus();
	p.focus();

}
return; 
}

function getCookie(NameOfCookie)
{
  if (document.cookie.length > 0){
    begin = document.cookie.indexOf(NameOfCookie+"="); 
    if (begin != -1)   // Note: != means "is not equal to"
   { 

     begin += NameOfCookie.length+1; 
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
      return unescape(document.cookie.substring(begin, end));       } 
  }
return null;  
// Our cookie was not set. 
// The value "null" is returned from the function.
}


//-- COUNTER
function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	} else {
		countfield.value = maxlimit - field.value.length;
	}
}

// Disable right click

//if (window.Event)
//  document.captureEvents(Event.MOUSEUP);
 
//function nocontextmenu()
//{
// event.cancelBubble = true
// event.returnValue = false;
 
// return false;
//}
 
//function norightclick(e)
//{
// if (window.Event)
// {
//  if (e.which == 2 || e.which == 3)
//   return false;
// }
// else
//  if (event.button == 2 || event.button == 3)
//  {
//   event.cancelBubble = true
//   event.returnValue = false;
//   return false;
//  }
// }
//document.oncontextmenu = nocontextmenu;
//document.onmousedown = norightclick;

//-->
