function showimage()
{
if (!document.images)
return
document.images.avatar.src= 'images/avatar/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value
}
function DisplayImage(picURL,picWidth,picHeight,picTitle)
{
newWindow=window.open(picURL,'newWin','toolbar=no,width=400,'+
'height=400,resizable,scrollbars=no,status=0');
newWindow.document.open();
newWindow.document.write(
'
Titolo '+picTitle+''+
' '+
''+
' '+
''+
'');
newWindow.document.close();
// var NS = (navigator.appName=="Netscape")?true:false;
//
// iWidth = (NS)?newWindow.innerWidth: newWindow.document.body.clientWidth;
//
// iHeight = (NS)?newWindow.innerHeight: newWindow.document.body.clientHeight;
//
// iWidth = newWindow.document.images[0].width - iWidth;
//
// iHeight = newWindow.document.images[0].height - iHeight;
//
// newWindow.resizeBy(iWidth, iHeight);
//
// wleft = (screen.width - newWindow.document.images[0].width) / 2;
// wtop = (screen.height - newWindow.document.images[0].height) / 2;
//
// newWindow.moveTo(wleft, wtop);
//
newWindow.focus();
}
function ShowPopupWithText(title, text)
{
newWindow=window.open('','newWin','toolbar=no,resizable=yes,scrollbars=yes');
newWindow.document.open();
newWindow.document.write(
''+title+''+text+'');
newWindow.document.close();
newWindow.focus();
}