
//////////////////////////////////////////////////////////////////////////////////////////////

var win=null;
function NewWindow(mypage,myname,w,h,scroll) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
	  settings +='toolbar=no,';
	  settings +='location=no,';
	  settings +='status=no,';
	  settings +='menubar=no,';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

//////////////////////////////////////////////////////////////////////////////////////////////

var user; var domain; var suffix;
function Print_Email(user, domain, suffix) {
document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '" class="copyright">' + user + '@' + domain + '.' + suffix + '</a>');
}

///////////////////////////////////////////////////////////////////////////////////////////////////

function openWin(URL,WIDTH,HEIGHT) {
aWindow=window.open(URL,"thewindow","toolbar=no,width=WIDTH,height=HEIGHT,status=no,scrollbars=no,resize=no,menubar=no");
}

///////////////////////////////////////////////////////////////////////////////////////////////////

function open_html(url, wwidth, wheight) {
pX = Math.round((screen.width - wwidth) / 2);
pY = Math.round((screen.height - wheight) / 2);
if (document.all) {
win_coords =',left='+pX+',top='+pY;
var w = window.open('', 'NewWindow', 'width='+wwidth+',height='+wheight+',titlebar=no,resizable=no,scrollbars=yes'+win_coords);
w.location = url;
}
else {
win_coords =',screenX='+pX+',screenY='+pY;
window.open(url,'_blank', 'width='+wwidth+',height='+wheight+',titlebar=no,menubar=no,status=no,location=no,fullscreen=no,directories=no,resizable=no,scrollbars=yes'+win_coords);
}
}

function open_photo(url, wwidth, wheight) {
pX = Math.round((screen.width - wwidth) / 2);
pY = Math.round((screen.height - wheight) / 2);
if(document.all) {
win_coords =',left='+pX+',top='+pY;
var w = window.open('', 'NewWindow', 'width='+wwidth+',height='+wheight+',titlebar=no,resizable=no,scrollbars=no'+win_coords);
w.location = url;
}
else {
win_coords =',screenX='+pX+',screenY='+pY;
window.open(url,'_blank', 'width='+wwidth+',height='+wheight+',titlebar=no,menubar=no,status=no,location=no,fullscreen=no,directories=no,resizable=no,scrollbars=no'+win_coords);
}
}

///////////////////////////////////////////////////////////////////////////////////////////////////

