function writeHits(page,modified,since) {
 document.write('<table border="0" width="100%"><tr><td width="50%"><font face="Arial" size="1">' +

 'Page last modified in '

 );
 document.write(modified);
 document.write('</font></td><td width="50%"><p align="right"><font size="1"><img src="http://alfa.ist.utl.pt/cgi-bin/Count.cgi?trgb=ffffff&amp;ft=0&amp;df=');
 document.write(page);
 document.write('&amp;dd=E"><font face="Arial" size="1">' + 

 ' hits since '

 );
 document.write(since);
 document.write('</font></font></td></tr></table>');
}



function writeHitsPt(page,modified,since) {
 document.write('<table border="0" width="100%"><tr><td width="50%"><font face="Arial" size="1">' +

 'Página modificada pela última vez em '

 );
 document.write(modified);
 document.write('</font></td><td width="50%"><p align="right"><font size="1"><img src="http://alfa.ist.utl.pt/cgi-bin/Count.cgi?trgb=ffffff&amp;ft=0&amp;df=');
 document.write(page);
 document.write('&amp;dd=E"><font face="Arial" size="1">' +

 ' visitas desde '

 );
 document.write(since);
 document.write('</font></font></td></tr></table>');
}



function popup(page,title,awidth,aheight) {
 var windowprops = 'toolbar=no,statusbar=no,location=no,scrollbars=yes,resizable=yes,width=' + awidth + ',height=' + aheight;
 window.open(page,title,windowprops);
}



function imagePt(name,w1,h1,w2,h2,w3,h3) {
  var f1 = name + '.' + w1 + 'x' + h1 + '.jpg';
  var f2 = name + '.' + w2 + 'x' + h2 + '.jpg';
  var f3 = name + '.' + w3 + 'x' + h3 + '.jpg';
  document.write(
      '<p align="left"><font face="Arial" size="1"><img border="0" src="' +
      f1 + '" width="' + w1 + '" height="' + h1 + '"><br>' +
      'Ver foto em');

//  document.write(":<br>- <a href=\"#\" onClick=\"popup(\"" + f2 + "\",\"Cabana do Pico\",\"640\",\"480\");\">");

//  document.write(':<br>- <a href=\"#\" onClick=\'popup(\"' + f2 + '\",\"Cabana do Pico\",\"640\",\"480\")\'>'); // Mozilla/Netscape/Opera OK!!
   
//  document.write(':<br>- <a href="#" onClick=\'popup("' + f2 + '","Cabana do Pico","640","480")\'>');

//  document.write(':<br>- <a href="' + f2 + '" onclick="popup(this.href,Cabana",640,480);return false;" target="newWin">');

//<a href="my-pop-up-window.htm" onclick="popUp(this.href,'console',400,200);return false;" target="newWin">This is my link</a>

document.write(':<br>- <a href="' + f2 + '") target=_blank>'); 
  document.write(
      'Tam. médio' +
      ' (' + w2 + 'x' + h2 +
      ' pixéis' +
      // ')</a><br>- <a href="#" onClick=popup("' + f3 + '","Cabana do Pico","640","480")>' +
      ')</a><br>- <a href="' + f3 + '") target=_blank>' +
      'Tam. máx.' +
      ' (' + w3 + 'x' + h3 +
      ' pixéis' +
      ')</a></font></p>'
 );
}

function imageEn(name,w1,h1,w2,h2,w3,h3) {
  var f1 = name + '.' + w1 + 'x' + h1 + '.jpg';
  var f2 = name + '.' + w2 + 'x' + h2 + '.jpg';
  var f3 = name + '.' + w3 + 'x' + h3 + '.jpg';
  document.write(
      '<p align="left"><font face="Arial" size="1"><img border="0" src="' +
      f1 + '" width="' + w1 + '" height="' + h1 + '"><br>' +
      'See photo in');

//  document.write(":<br>- <a href=\"#\" onClick=\"popup(\"" + f2 + "\",\"Cabana do Pico\",\"640\",\"480\");\">");

//  document.write(':<br>- <a href=\"#\" onClick=\'popup(\"' + f2 + '\",\"Cabana do Pico\",\"640\",\"480\")\'>'); // Mozilla/Netscape/Opera OK!!
   
//  document.write(':<br>- <a href="#" onClick=\'popup("' + f2 + '","Cabana do Pico","640","480")\'>');

//  document.write(':<br>- <a href="' + f2 + '" onclick="popup(this.href,Cabana",640,480);return false;" target="newWin">');

//<a href="my-pop-up-window.htm" onclick="popUp(this.href,'console',400,200);return false;" target="newWin">This is my link</a>

document.write(':<br>- <a href="' + f2 + '") target=_blank>'); 
  document.write(
      'Med. Size' +
      ' (' + w2 + 'x' + h2 +
      ' pixels' +
      // ')</a><br>- <a href="#" onClick=popup("' + f3 + '","Cabana do Pico","640","480")>' +
      ')</a><br>- <a href="' + f3 + '") target=_blank>' +
      'Max. Size' +
      ' (' + w3 + 'x' + h3 +
      ' pixels' +
      ')</a></font></p>'
 );
}

