function popupPic(sPicURL) { 
	window.open('images/popup.html?'+sPicURL, '', 'resizable=0,height=200,width=200');
}
/*
<a href="javascript:popupPic('IMG_big.jpg')">
<img src="images/IMG.jpg" class="borderimage"></a>
*/

var win = null;
function popupWin(pageURL,pageName,w,h,s,r){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+s+',resizable='+r+',status=no,location=no,toolbar=no';
	win = window.open(pageURL,pageName,settings);;
	if(win.window.focus){
		win.window.focus();
	}
}
/*
<a href="URL.html" onclick="javascript:popupWin(this.href,'',WIDTH,HEIGHT,'no','no');return false;">
*/
