function popup(url)
{
	window.open(url,'newWin','location=no,scrollbars=yes,resizable=yes');
}


function openpoupup(newurl)
{
var width=screen.availWidth;
var height=screen.availHeight;
window.focus();
var win=window.open(newurl,'newWindow','alwaysRaised=yes,location=yes,width='+width+',height='+height+',scrollbars=1,resizable=yes');
win.blur();
}


function openProfileImage()
{
	var url=document.getElementById('hiddenimage').value.replace('66x66','1024x768');
	window.open(url,'newWin','location=no,scrollbars=yes,resizable=yes');
}

function changeModelImage(path)
{
	var totalpath=path.replace('66x66','250x150');	
	document.getElementById('hiddenimage').value=path;			
	document.getElementById('imgProfile').src=totalpath;
}

function windowCloseFunc(url)
{
	/*
	if (window.opener && !window.opener.closed) 
	{
		window.close();		
		window.opener.location.href=url;
	}
	else
	{
		window.location.href=url;		
	}
	*/
	window.open(url);
}
