function showPic(houseid, pic)
{
	var w = 600;
	var h = 450;
	var format = 'scrollbars=yes,status=yes,width='+w+',height='+h+',left='+String((screen.width-w)/2)+',top='+String((screen.height-h)/3);
	window.open ('showpic.php?houseid='+houseid+'&pic='+pic, "SIMPIC"+String(Math.random()).replace('.', ''), format);
}

function showVV(houseid)
{
	var w = 500;
	var h = 410;
	var format = 'scrollbars=yes,status=yes,width='+w+',height='+h+',left='+String((screen.width-w)/2)+',top='+String((screen.height-h)/3);
	window.open ('vv/viewer.php?houseid='+houseid, "SIMVV"+String(Math.random()).replace('.', ''), format);
}

function showPrint(houseid)
{
	var w = 550;
	var h = 410;
	var format = 'scrollbars=yes,status=yes,width='+w+',height='+h+',left='+String((screen.width-w)/2)+',top='+String((screen.height-h)/3);
	window.open('printhouse.php?houseid='+houseid, "SIMPR"+String(Math.random()).replace('.', ''), format);
}

function showMail(houseid)
{
	var w = 550;
	var h = 410;
	var format = 'scrollbars=yes,status=yes,width='+w+',height='+h+',left='+String((screen.width-w)/2)+',top='+String((screen.height-h)/3);
	window.open('mailhouse.php?houseid='+houseid, "SIMMAIL"+String(Math.random()).replace('.', ''), format);
}
