//OPEN POPUP WINDOW
function openWindow(theURL, windowName, width, height) {

	popupWin = window.open(theURL, windowName, 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height);
	
	popupWin.focus();

}

function openPhoto(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=420,height=210,scrollbars=yes');
return false;
}
