function openWindow(url, name, thewidth, theheight, theFeats) 
{
	if (theFeats == 1 || theFeats == 'minimal')
	{
		theFeats =   "top=0,left=0,location=no,menubar=no,resizable,scrollbars=no,status=no,toolbar=no";
		popupWin = window.open(url, name, theFeats+',width='+thewidth+',height='+theheight)
	}
	if (theFeats == 2 || theFeats == 'maximal')
	{
		theFeats =   "top=0,left=0,resizable,menubar,toolbar,location,directories,status,scrollbars,dependent";
		popupWin = window.open(url, name,theFeats+',width='+thewidth+',height='+theheight)
	}
	if (theFeats == 3 || theFeats == 'medium')
	{
		theFeats =   "top=0,left=0,resizable,menubar,toolbar,location,status,scrollbars,dependent";
		popupWin = window.open(url, name,theFeats+',width='+thewidth+',height='+theheight)
	}
	else
	{
		if (theFeats)
		{
			popupWin = window.open(url, name,theFeats+',width='+thewidth+',height='+theheight)
		}
		else
		{
			popupWin = window.open(url, name,+',width='+thewidth+',height='+theheight)
		}
	}
	popupWin.focus();
}
var nav4 = !(document.layers == null)
var iex4 = !(document.all == null)
if (nav4)
{
	var WindowWidth  = screen.availHeight; 
	var WindowHeight = screen.availWidth;
	var WindowavailHeight  = window.innerHeight;
}
else
{
	var WindowWidth = screen.availWidth;
	var WindowHeight = screen.availHeight;
	var WindowavailHeight  = screen.availHeight;
}
function myvoid(){}

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

function Do_Get_URLs()
{
	if (top.name == 'hyperlinkpopup_frameset') 
	{
		if (top.frames.length != 0) // is loaded
		{
			top.Form.Get_URL();
			//if (top.Form.frmHyperlinks.Update_Title.value == 1)
			if (top.Form.document.getElementById("Update_Title").value == 1)
			{
				top.Form.document.getElementById("Title").value = Page_Title;
			}
		}
	}
	if (top.name == 'Localisation_frameset')
	{
		if (top.frames.length != 0) // is loaded
		{
			top.Form.Get_URL();
			if (typeof top.Form.Localisation.Title.value != 'undefined') 
			{
				top.Form.Localisation.Title.value = Page_Title;
			}
		}
	}
}

var errfound = false;
function TailleMin(item, len) 
{
	return (item.length >= len);
}
function error(elem, text) 
{
	if (errfound) return;
	window.alert(text);
	elem.select();
	elem.focus();
	errfound = true;
}
function ValidEmail(item)
{
	if (!TailleMin(item, 6)) return false;
	if (item.indexOf ('@', 0) == -1) return false;
	if (item.indexOf ('.', 0) == -1) return false;
	if (!CharValidMail(item)) return false;
	return true;
}
function CharValidMail(item) {
  var checkOK = "0123456789abcdefghijklmnopqrstuvwxyz.'@_-ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  var checkStr = item;
  var allValid = true;
  for (i = 0;  i < item.length;  i++) {
    ch = item.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length){
      allValid = false;
      break;
    }
  }
  if (!allValid) return false;
  return true;
}
function stripSpaces(StringToTrim) 
{
    	while (StringToTrim.substring(0,1) == ' ') StringToTrim = StringToTrim.substring(1);
    	while (StringToTrim.substring(StringToTrim.length-1,StringToTrim.length) == ' ') StringToTrim = StringToTrim.substring(0,StringToTrim.length-1);
    	return StringToTrim
}
Do_Get_URLs();