// **<a onfocus="this.blur()" onclick="popWin(this.href,'popupwin','600','440','center','no','no','no','no','no','no','no');return false" href="/test/popup/projets/chute_caron1.htm">
var win=null;
function popWin(url,popname,w,h,pos,scrl,loc,dir,sts,mb,tbr,rsz){
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=10;TopPosition=10}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrl+',location='+loc+',directories='+dir+',status='+sts+',menubar='+mb+',toolbar='+tbr+',resizable='+rsz+'';
	win=window.open(url,popname,settings);
}


// ** name the opener window
// ** place in link 'onclick'  or <script language="JavaScript">thisWindowName('contact');</script>

function thisWindowName(name) {  
	if (document.images)
  	self.name = name;
}


/* hide Email */
/* <script language="JavaScript">writeEmail('info', 'habitationslaurendeau.com')</script> */
function writeEmail(eName, eServer)
{
emailname = eName
emailserver = eServer

document.write("<a href='mailto:" + emailname + "@" + emailserver + "'>");
document.write(emailname + "@" + emailserver);
document.write("</a>");
}
