function openDirectoryRenewWindows(){window.open('/renew.aspx?choice=0',"RenewWindows","width=550,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");}
function openRenewWindows(choice){window.open('/renew.aspx?choice=' + choice,"RenewWindows","width=550,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");}
function openNewsLetterWindows(){window.open('/newslist.aspx',"NewsLetter","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=no,status=no,resizable=no");}
function openPackWindows(){window.open('/module/subscription/infopack.aspx',"Pack","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");}
function ViewContact(id,idstamp){window.open('/module/diary/viewcontact.aspx?sid='+ id +'&idstamp='+idstamp,"ContactView","width=520,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");}
function WindowOpen(page,width,height)
{ 
window.open(page,"CommonPage","width=" + width + ",height=" + height + ",top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ViewUserCv(id)
{
window.open('/module/job/usercv.aspx?iduser='+ id ,"ViewUserCV","width=520,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function Chat(chatid,priv)
{
window.open('/module/chat/index.asp?chatid='+ chatid +'&priv=' + priv,"ChatWindows","width=700,height=400,top=10,left=10,toolbars=0,scrollbars=1,status=0,titlebar=0,menubar=0,resizable=0,directories=0,location=0");
}
function Ecard(pict)
{
window.open('/module/ecard/viewlogo.aspx?sname='+ pict ,"EcardWindows","width=300,height=500,top=10,left=10,toolbars=0,scrollbars=1,status=0,titlebar=0,menubar=0,resizable=0,directories=0,location=0");
}
function viewcard(str)
{
window.open('/module/ecard/display.aspx?file='+ str ,"ViewEcard","width=680,height=500,top=10,left=10,toolbars=0,scrollbars=1,status=0,titlebar=0,menubar=0,resizable=0,directories=0,location=0");
}

function ChatPrivate(chatid,priv,name)
{
window.open('/module/chat/index.asp?chatid='+ chatid +'&priv=' + priv,' + name + ',"width=700,height=400,top=10,left=10,toolbars=0,scrollbars=1,status=0,titlebar=0,menubar=0,resizable=0,directories=0,location=0","false");
}

function openCompanyPackWindows()
{
window.open('/module/subscription/packcompany.aspx',"PackCompany","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function openUserPackWindows()
{
window.open('/module/subscription/pack.aspx',"PackUser","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function openCompanyExtension()
{
window.open('/module/banqueinfo.aspx',"CompanyExtension","width=600,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function ShowLegende1()
{
window.open('/module/Legende.aspx?send=1',"Legende","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function ShowLegende0()
{
window.open('/module/Legende.aspx?send=0',"Legende","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function ShowMsg(idmsg)
{
window.open('/module/job/msg.aspx?idmsg='+ idmsg,"JobMsg","width=540,height=450,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function SendJob(idjob,idcompany)
{
window.open('/module/job/jobmsg.aspx?id='+ idjob +'&idcompany=' + idcompany,"JobSendMsg","width=540,height=450,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function AddLicencePack(userid)
{
window.open('/module/subscription/AddLicencePack.aspx?userid='+ userid,"Pack","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function ActivePack(userid)
{
window.open('/module/subscription/ActivePack.aspx?userid='+ userid,"Pack","width=650,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function ShowDemo(page,width,height)
{
window.open('/demo/' + page,"DemoPage","width=" + width +",height=" + height +",top=10,left=50,toolbars=no,scrollbars=no,status=no,resizable=yes");
}
function DeleteWhiteSpace(snumber)
{
var ln = snumber;
var internalln ="";
for(t=0; t < ln.length; t++)
{
	if(ln.substring(t,t +1) != " ")
	internalln += ln.substring(t,t +1);	
}
return internalln;
}
function OpenEurosmallbizLiveSupport(linkpage)
{
window.open(linkpage,"EurosmallbizLiveSupport","width=468,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openHelpServiceWindows()
{
window.open('infohelp.aspx',"HelpWindows","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openDemoEurosmallbiz(iddemo)
{
window.open('/demopage.aspx?iddemo='+ iddemo,"DemoWindows","width=640,height=515,top=10,left=10,toolbars=no,scrollbars=no,status=no,resizable=no");
}
function openOfflineHelpWindows()
{
window.open('Offlinehelp.aspx',"HelpWindows","width=500,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ShowWorkFlow()
{
window.open('easyworkflow.aspx',"WorkFlow","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function AddCalendar(types,sdates,idrdv)
{
window.open('tcalendar.aspx?stype=' + types +'&dates=' + sdates +'&idrdv=' + idrdv,"Calendar","width=580,height=450,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function AddCalendar(types,sdates,idrdv,idstamp)
{
window.open('tcalendar.aspx?stype=' + types +'&dates=' + sdates +'&idrdv=' + idrdv +'&idstamp=' + idstamp,"Calendar","width=580,height=450,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openMinMaxWindows(namewindows,choice)
{
window.open('/CloseMenu.aspx?winname=' + namewindows +'&choice=' + choice,"Smallwin","width=1,height=1,top=5000,left=5000,toolbars=no,scrollbars=no,status=no,resizable=no");
}
function confirm_delete(msg)
{
	var smsg = msg.replace("*","\n");
  if (confirm(smsg)==true)
    return true;
  else
    return false;
}
function openVerif(helpid)
{
window.open('checking.aspx?redir=&helpid=' + helpid,"CheckingPromo","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openHelpWindows(helpid)
{
window.open('/eurohelp.aspx?redir=&helpid=' + helpid,"HelpWindows","width=430,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function LoadCdPage(idlangue)
{
window.open('eurocv'+ idlangue +'.htm', "Conditions", "width=450,height=300,top=200,left=200,toolbars=no,scrollbars=yes,status=no,resizable=yes");    
}
function openHelpCompanyWindows()
{
window.open('eurohelpcompany.aspx',"HelpWindows","width=440,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ReturnPage()
{
window.opener.location.reload();
window.close();
}

function SendCompanyMsg(id)
{
window.open('/module/job/logo.aspx?step=' + id,"JobSendMsgWindows","width=550,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openCvSearch()
{
window.open('/module/job/viewjob.aspx',"JobSimpleUserWindows","width=650,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openUserCvSearch(iduser)
{
window.open('/module/job/viewjob.aspx?iduser=' + iduser,"JobUserWindows","width=650,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ImportJobLogo(step)
{
window.open('/module/job/logo.aspx?step=' + step,"JobLogoWindows","width=550,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ImportImmoLogo(step)
{
window.open('/module/immo/logo.aspx?step=' + step,"ImmoLogoWindows","width=550,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openWindowsChangePicture(onoff)
{
window.open('uploadpicture.aspx?onoff='+ onoff,"SupportWindows","width=400,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function Close()
{
  window.close();
}
function GetDate(CtrlName)    
{   
ChildWindow = window.open('Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar2", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}
function GetDate3(CtrlName,isplanning)    
{   

ChildWindow = window.open('Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName +'&isplanning=1', "PopUpCalendar3", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}   
   
function GetHolidayCalendar(CtrlName)    
{   
ChildWindow = window.open('HolidayCalendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar2", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}  
function GetDate2(CtrlName)    
{   
/****************************************************     
Use Javascript method (window.open) to PopUp a new window   
which contain a Calendar Control. In the meantime, we'll    
pass the Parent Form Name and Request Control Name in the QueryString!     
*****************************************************/        
ChildWindow = window.open('calendrier.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}
function ContactNumber(CtrlName,elementvalue)    
{   
ChildWindow = window.open('fm.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName+'&elementvalue=' + elementvalue, "PopUpCalendar", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}
function ContactCategories(CtrlName,elementvalue)    
{   
ChildWindow = window.open('categoriefm.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName+'&elementvalue=' + elementvalue, "PopUpCalendar", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=yes,status=no,resizable=no");    
}
function ContactAddress(CtrlName,elementvalue)    
{   
ChildWindow = window.open('addressfm.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName+'&elementvalue=' + elementvalue, "PopUpCalendar", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}
function GetCalendar(CtrlName)    
{   
ChildWindow = window.open('calendrier.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "PopUpCalendar", "width=430,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}   

function CheckWindow()   
{     
	if(!(ChildWindow ==null))
	{
	ChildWindow.close();   
	}
}
function openWindows()
{
window.open('colortable.aspx',"ColorTable","width=600,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function openWindows(userid)
{
window.open('/module/planning/convertuser.aspx?iduser=' + userid,"PlanningWindows","width=700,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function ActiveDiary()
{
window.open('/module/job/Jobactivediary.aspx',"JobActiveWindows","width=400,height=300,top=10,left=10,toolbars=no,scrollbars=no,status=no,resizable=no");
}
function openWindows(userid,syear)
{
window.open('/module/planning/convertuser.aspx?redir=&iduser=' + userid + '&year=' + syear,"PlanningWindows","width=750,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function editWindows(userid,syear)
{
window.open('/module/planning/convertuser.aspx?redir=2&iduser=' + userid + '&year=' + syear,"PlanningWindows","width=610,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function addWindows(userid,syear)
{
window.open('/module/planning/convertuser.aspx?redir=3&iduser=' + userid + '&year=' + syear,"PlanningWindows","width=610,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function ExportWindows(redir,userid,syear)
{
window.open('/module/planning/convertuser.aspx?redir=' + redir +'&iduser=' + userid + '&year=' + syear,"PlanningWindows","width=610,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function openUserplanWindows()
{
window.open('/module/planning/planning.aspx',"PlanningWindows","width=700,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}

function openCvQuizz()
{
window.open('/module/job/cvquizz.aspx',"QuizzWindows","width=565,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}

function openCvReponse(idquestion)
{
window.open('/module/job/cvreponse.aspx?idquestion=' + idquestion,"ReponseWindows","width=500,height=300,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}

function openPlanningWindows(groupid,syear)
{
window.open('/module/planning/groupplanning.aspx?redir=&groupid=' + groupid + '&year=' + syear,"PlanningWindows","width=610,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function exportPlanningWindows(groupid,syear)
{
window.open('/module/planning/excelgroupplanning.aspx?xp=&redir=&groupid=' + groupid + '&year=' + syear,"PlanningWindows","width=610,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function exportxpPlanningWindows(groupid,syear)
{
window.open('/module/planning/excelgroupplanning.aspx?xp=xp&redir=&groupid=' + groupid + '&year=' + syear,"PlanningWindows","width=610,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}
function openAdvWindows(idadv)
{
window.open('/module/ads/advdetail.aspx?id=' + idadv ,"AdvertisementWindows","width=550,height=450,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
function ShowImmoAds(id,idcompany)
{
window.open('/module/immo/view.aspx?napply=0&id=' + id + '&idcompany=' + idcompany,"ViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ShowJobAds(id,idcompany)
{
window.open('/module/job/view.aspx?napply=0&id=' + id + '&idcompany=' + idcompany,"JobViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ShowJobAdsNotApply(id,idcompany)
{
window.open('/module/job/view.aspx?napply=1&id=' + id + '&idcompany=' + idcompany,"JobViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function ShowJobAdsNotApply(id,idcompany,sadd)
{
window.open('/module/job/view.aspx?napply=1&id=' + id + '&idcompany=' + idcompany +'&sadd=' + sadd,"JobViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function SendJobAds(id,idcompany)
{
window.open('/module/job/jobmail.aspx?id=' + id + '&idcompany=' + idcompany,"JobMailViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}

function ApplyJobAds(id,idcompany)
{
window.open('/module/job/jobmail.aspx?id=' + id + '&idcompany=' + idcompany,"JobApplyViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}

function PdfJobAds(id,idcompany)
{
window.open('/module/job/jobpdf.aspx?cp=0&id=' + id + '&idcompany=' + idcompany,"JobPdfViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function PdfJobCompanyAds(id,idcompany)
{
window.open('/module/job/jobpdf.aspx?cp=1&id=' + id + '&idcompany=' + idcompany,"JobPdfViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function PdfImmoCompanyAds(id,idcompany)
{
window.open('/module/immo/immopdf.aspx?cp=1&id=' + id + '&idcompany=' + idcompany,"JobPdfViewWindows","width=550,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
function CloseJobAds(id,idcompany)
{
window.open('/module/job/closejobads.aspx?send=0&id=' + id + '&idcompany=' + idcompany,"JobCloseAdsWindows","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=no,status=no,resizable=no");
}

function openClotureWindows(userid,syear)
{
window.open('/module/planning/convertuser.aspx?redir=1&iduser=' + userid + '&year=' + syear,"PlanningWindows","width=470,height=500,top=10,left=10,toolbars=no,scrollbars=yes,status=yes,resizable=yes");
}


function ViewWindows(id,iname)
{
window.open('viewpicture.aspx?id=' +  id + '&iname=' + iname,"HelpWindows","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}


function CheckName(objectname,classname,classnameOr,labelmessage,selectobject,message)
{

  if(!(document.forms[0].elements[selectobject].options[document.forms[0].elements[selectobject].selectedIndex].value.length > 0))
  {
    if(document.forms[0].elements[objectname].value.length > 1)
    {
      ChangeBackgroundToOrigin(objectname,classnameOr)
      return true;
    }
    else
    {
      ChangeBackgroundToErr(objectname,classname)
      if(document.getElementById(labelmessage)== null)
      {
      alert(message);
      }
      else
      {    
      document.getElementById(labelmessage).innerHTML = message;
      }
      return false;
    }
  }
  else
  {
    return true;  
  }
}

function ChangeBackgroundToErr(objectname,classname)
{
  document.forms[0].elements[objectname].className = classname;
}

function ChangeBackgroundToOrigin(objectname,classname)
{
  document.forms[0].elements[objectname].className = classname;
}

function Viewlogo(id,iname)
{
window.open('viewlogo.aspx?id=' +  id + '&iname=' + iname,"HelpWindows","width=400,height=400,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}

 var bookmarkurl="http://www.eurosmallbiz.com" 
 var bookmarktitle="Eurosmallbiz Solutions and Services dryven by Experts" 
 function addbookmark()
 { 
 if (document.all) 
 window.external.AddFavorite(bookmarkurl,bookmarktitle) 
 } 
function ShowCGA()
{
window.open('/cga/cga.htm', "Conditions", "width=450,height=300,top=200,left=200,toolbars=no,scrollbars=yes,status=no,resizable=yes");    
}
function openlogoWindows() { 
window.open('/logo.aspx',"HelpWindows","width=300,height=160,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes"); 
}
/*
function __doPostBack(eventTarget, eventArgument) {
var theform = document.Form1;

theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
*/
function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}
function SetTextBox50Color(txtname)
{
  document.all(txtname).className = "T50Orange";
}

function TextBox50Color(txtname)
{
  document.all(txtname).className = "T50";
}

function SetSmallTextBox50Color(txtname)
{
  document.all(txtname).className = "T50SOrange";
}

function SmallTextBox50Color(txtname)
{
  document.all(txtname).className = "T50S";
}

function ExpandCollapse(e)
{
	if (e.style.display == "")
		e.style.display = "none";
	else
		e.style.display = "";
}
function ExpandCollapseKeyboard(e)
{
	if (event.keyCode == 33) //Page Up collapses
	{
		if (e.style.display == "")
			ExpandCollapse(e);
	}
	else if (event.keyCode == 34) //Page Down Expands
	{
		if (e.style.display == "none")
			ExpandCollapse(e);		
	}
}


function affPopUp(s,lid)
{
	window.open('http://www.zylomgames.com/servlet/AFTrack?aid=1281&l='+lid+'&s='+s+'&t=0',"AdvertisementWindows","width=780,height=460,top=10,left=10,toolbars=no,scrollbars=yes,status=no,resizable=yes");
}
    
function setCookie(name, value, expires, path, domain, secure)
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}
function getCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

function deleteCookie(name)
		{
		var hier = new Date();
				if (getCookie(name))
				{
						document.cookie = name + "=" + 	"; expires=" 
						+ hier.setTime(hier.getTime() - 1000*60*60*24*1000);
				}
		}

var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;

function zoomBox(evt,zlink,maxw,maxh,center,tox,toy) {
if (arguments.length > 2) zNew=1;
scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX=tox?tox:0;
toY=(toy?toy:0)+scrollH;
fromX=evt.pageX?evt.pageX:evt.clientX;
fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX=toX+evt.screenX-fromX;
adjY=toY+evt.screenY-fromY;
  if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
    adjX = (screen.width  - maxW) / 2;
    adjY = (screen.height - maxH) / 2;
  }
if (document.createElement && document.body.appendChild && !zBox) {
	zBox=document.createElement("div");
	zBox.style.position="absolute";
	document.body.appendChild(zBox);
} else if (document.all && !zBox) {
	document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
	zBox=document.all.zBoxDiv;
} else if (document.layers && !zBox) {
	zBox=new Layer(maxW);
	zBox.style=zBox;
	}
zLink=zlink;
//alert("toX=" + toX + "; toY=" + toY + "; adjX=" + adjX + "; adjY=" + adjX + "; ")
doZoom();
}

function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
if (document.layers) {
	zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
	zBox.document.open();
	zBox.document.write("<table width='"+maxW*(1-zPct)+"' height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
	zBox.document.close();
	} else {
	zBox.style.border="2px solid #999999";
	zBox.style.left=toX+zPct*(fromX-toX);
	zBox.style.top=toY+zPct*(fromY-toY);
	zBox.style.width=maxW*(1-zPct);
	zBox.style.height=maxH*(1-zPct);
	}
zBox.style.visibility="visible";
if (zStep < 10) setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
else {
	zBox.style.visibility='hidden';
	zStep=0;
	if (zLink && !zNew) location.href=zLink.href;
	else if (zLink && zNew) {
		var w=window.open(zLink.href,'','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars,resizable,location=no,directories=no,status=no,menubar=no,toolbar=no');
		zNew=null;
		}
	}
}



		function nselect(id,name)
		{
		var o = new Option(name,id,false,true)
		var add = true;
			for(i = 0; i < document.Form1.nonselectddl.options.length; i++)
			{
				if(id == document.Form1.nonselectddl.options[i].value)
				{
				add = false;
				}
			}
			if(add)
			{
			document.Form1.nonselectddl.options[document.Form1.nonselectddl.options.length] = o;
			}
		}
	
	function ClearThis(obj)
	{
	obj.value = "";
	}
		
		function yselect(id,name)
		{
		var o = new Option(name,id,false,true)
		var add = true;
		for(i = 0; i < document.Form1.selectddl.options.length; i++)
		{
		if(id == document.Form1.selectddl.options[i].value)
		{
		add = false;
		}
		}
		if(add)
		{
		document.Form1.selectddl.options[document.Form1.selectddl.options.length] = o;
		}
	
		}


function ChangeMe(stype)
{
myImage = new Image() 
myImage = stype;
var img = myImage.src;
var tt = img.substring(img.length - 8,img.length);

	if(tt == "plus.gif")
	{
	 myImage.src = "/pictureminus.gif";
	}
	else
	{
	myImage.src = "/pictureplus.gif";
	}
	
}
function Toggles(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("g" + item);
   if (visible) {
     obj.style.display="none";
     key.innerHTML="<img src='/picture/folderclose.gif' hspace='0' vspace='0' align='middle' border='0'>";
   } else {
      obj.style.display="block";
      key.innerHTML="<img src='/picture/folderopen.gif'  hspace='0' vspace='0' align='middle' border='0'>";
   }
}


function Toggle(node)
{
	if (node.nextSibling.style.display == 'none')
	{
	
		// Change the image (if there is an image)
		if (node.childNodes.length > 0)
		{
			if(node.childNodes.item(0).nodeName == "IMG") 
			{
				if(!(node.childNodes.item(0).alt =='0'))
				{
				node.childNodes.item(0).src = "/pictureminus.gif";
				}
			}
		}
		node.nextSibling.style.display = 'block';
	}
	// Collapse the branch if it IS visible
	else
	{
		// Change the image (if there is an image)
		if (node.childNodes.length > 0)
		{
			if (node.childNodes.item(0).nodeName == "IMG") 
			{
				if(!(node.childNodes.item(0).alt =="0"))
				{
				node.childNodes.item(0).src = "/pictureplus.gif";
				}
			}
		}

		node.nextSibling.style.display = 'none';
	}

}

// Ticker startup
function startTicker()
{
	// Define run time values
	theCurrentStory     = -1;
	theCurrentLength    = 0;
	// Locate base objects
	if (document.getElementById) {	
		    theAnchorObject     = document.getElementById("tickerAnchor");
			runTheTicker();   	
		 }
	else {
            document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
            return true;
	}
}
// Ticker main run loop
function runTheTicker()
{
	var myTimeout;  
	// Go for the next story data block
	if(theCurrentLength == 0)
	{
		theCurrentStory++;
		theCurrentStory      = theCurrentStory % theItemCount;
		theStorySummary      = theSummaries[theCurrentStory].replace(/&quot;/g,'"');		
		theTargetLink        = theSiteLinks[theCurrentStory];
		theAnchorObject.href = theTargetLink;
		thePrefix 	     = "<span class=\"tickls\">" + theLeadString + "</span>";
	}
	// Stuff the current ticker text into the anchor
	theAnchorObject.innerHTML = thePrefix + 
	theStorySummary.substring(0,theCurrentLength) + whatWidget();
	// Modify the length for the substring and define the timer
	if(theCurrentLength != theStorySummary.length)
	{
		theCurrentLength++;
		myTimeout = theCharacterTimeout;
	}
	else
	{
		theCurrentLength = 0;
		myTimeout = theStoryTimeout;
	}
	// Call up the next cycle of the ticker
	setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
	if(theCurrentLength == theStorySummary.length)
	{
		return theWidgetNone;
	}

	if((theCurrentLength % 2) == 1)
	{
		return theWidgetOne;
	}
	else
	{
		return theWidgetTwo;
	}
}
  NavName = navigator.appName.substring(0,3);
  NavVersion = navigator.appVersion.substring(0,1);
		//onload="TpsChargement()"
  if (NavName != "Mic" || NavVersion>=4){
     entree = new Date;
     entree = entree.getTime();
     }

  function TpsChargement()
     {
     if (NavName != "Mic" || NavVersion >= 4){
       fin = new Date;
       fin = fin.getTime();
       secondes = (fin-entree)/1000;
       window.status='Page chargée en ' + secondes + ' seconde(s).';
       }
     }
function AddSubBasket(cmde,addnumber,textbox)
{
  var output = new Number();
  if(cmde == 'add')
  {
  var qte = eval(document.all(textbox).value);
    if(isNaN(qte))
    {
      output = addnumber;
    }
    else
    {
      output = qte + addnumber;
    }
  }
  else if(cmde == 'sub')
  {
    var qte = eval(document.all(textbox).value);
    if(isNaN(qte))
    {
      output = 0;
    }
    else
    {
      output = qte - addnumber;
    }
    
    if(output < 0)
    {
      output = 0;
    }

  }
  else
  {
    output = 0;
  }
  document.all(textbox).value =  output;
}

function AddListBox(object,value,text,chkObject1,chkObject2)
{
  var len = document.all(object).options.length;
  var add = 1;

  for(i = 0; i < document.all(object).options.length ; i++)
  {
    if(document.all(object).options[i].value == value)
    {
      add = 0;
    }
    document.all(object).options[i].selected = true;

  }

  
  if(add == 1)
  {
    document.all(chkObject1).disabled = true;
    document.all(chkObject2).disabled = true;
    document.all(object).options[len] = new Option(text,value); 
    document.all(object).options[len].selected = true;

  }
  else
  {
     RemoveListBox(object,value);
     document.all(chkObject1).disabled = false;
     document.all(chkObject2).disabled = false;
  }
}

function RemoveListBox(object,value)
{

  var len = document.all(object).options.length;
  for(var i = 0 ; i < len; i++) 
  {
    
    if(document.all(object).options[i].value == value)
    {
       document.all(object).options[i] = null;
    }

  }

}
//<img id="thepic" onclick="scale('thepic')" onload="scale_load('thepic')"src="KG01133.jpg"> 
var ow = 0;
var oh = 0;
var s = 128;
var onload_blows = 0;

function scale(img)
{
if (!onload_blows)
{
 scale_load(img);
}

  i = document.getElementById(img);
  if (i.width > s) 
  {
    i.style.cursor = "pointer";
    i.width = s;
    i.height = s / (ow / oh);      
  }
  else if (i.width == s)
 {
   i.width = ow;
   i.height = oh;
 }
}

function scale_load(img)
{
 onload_blows = 1;
 t = 0;
if (navigator.appName == "Netscape")
{
  t = window.innerWidth;
}
else if (navigator.appName.indexOf("Microsoft") != -1 ||
     navigator.appName.indexOf("Opera") != -1)
 {
  t = document.body.offsetWidth;
 }

  if (t > 64 && t < s)
  {
   s = t - 60;
   i = document.getElementById(img);
   ow = i.width;
   oh = i.height;
   scale(img);
  }
}
function adjustIFrameSize (iframeWindow) {
  if (iframeWindow.document.height) {
    var iframeElement = document.getElementById
(iframeWindow.name);
    iframeElement.style.height = iframeWindow.document.height + 'px';
    iframeElement.style.width = iframeWindow.document.width + 'px';
  }
  else if (document.all) {
    var iframeElement = document.all[iframeWindow.name];
    if (iframeWindow.document.compatMode &&
        iframeWindow.document.compatMode != 'BackCompat') 
    {
      iframeElement.style.height = 
iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
      iframeElement.style.width = 
iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
    }
    else {
      iframeElement.style.height = 
iframeWindow.document.body.scrollHeight + 5 + 'px';
      iframeElement.style.width = 
iframeWindow.document.body.scrollWidth + 5 + 'px';
    }
  }
}

function checkMaxQty(qty,msg,txtObj)
{

  if(document.all(txtObj).value > qty)
  {
    alert(msg);
    document.all(txtObj).focus();
  }

}

 var milisec=0 
 var seconds=30 

function display(strName,timemili){ 
 if (milisec<=0){ 
    milisec=9 
    seconds-=1 
 } 
 if (seconds<=-1){ 
    milisec=0 
    seconds+=1
 } 
 else 
 
    milisec-=1
    if(document.getElementById(strName).style.visibility == 'hidden')
    {
    document.getElementById(strName).style.visibility = 'visible';
    }
    else
    {
    document.getElementById(strName).style.visibility = 'hidden';
    }
   setTimeout("display('" + strName + "')",3000) 
} 
