	var newwindow;
	function popdetails(url) {
		newwindow=window.open(url,'popdetails','height=500,width=500,resizable=yes,scrollbars=yes,status=yes');
		if (window.focus) newwindow.focus();
	}

	function poppeer(url) {
		newwindow=window.open(url,'poppeers','height=400,width=650,resizable=yes,scrollbars=yes');
		if (window.focus) newwindow.focus();
	}

	function resize(img) {
		if (img.width>500) {
			img.height=parseInt(img.height*500/img.width);
			img.width=500;
			var foo=document.getElementById(img.name);
			foo.innerHTML='<strong>Click on image for full size view.</strong><a href="'+img.src+'" target="_blank">'+foo.innerHTML+'</a>';
		}
	}

	function resize_avatar(img) {
		if(img.width>100) {
			img.height=parseInt(img.height*100/img.width);
			img.width=100;
		}
	}

function blinkIt()
{
	if (!document.all) return;
	else
	{
		for(i=0;i<document.all.tags('blink').length;i++)
			{
				s=document.all.tags('blink')[i];
				s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
			}
	}
}

 function openwin(url,txt) {

try {
	var w=Windows.getWindow('MESS').getId();
}
 catch(err) {
		win = new Window({id:'MESS',
			className: 'alphacube', title: 'Message', width:250,height: 100,
			minimizable:false, maximizable: false, destroyOnClose: true
		});
		win.getContent().innerHTML =txt;
		win.showCenter();
	}
  }

 function openAlertwin(url,txt) {
	try {
		var w=Windows.getWindow('MESS').getId();
	}
	 catch(err) {
	    Dialog.alert(txt, 
       	            {id:'MESS', width:250, className: "greylighting", okLabel: "CLOSE"})
	}
}
