var newwindow;
function poptastic(url,theWidth,theHeight,ititle)
{	var theTop=(screen.height/2)-(theHeight/2);
	var theLeft=(screen.width/2)-(theWidth/2);
	var features='height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=no";
	theWin=window.open(url,'',features);
	theWin.document.write("<html><head><title>"+ititle+"</title>");
	theWin.document.write("</head><body>");
	theWin.document.write('<script language=JavaScript>');
	theWin.document.write('var message="Function Disabled! Property of RhodesPrivateTours.com!";');
	theWin.document.write('function clickIE4(){ if (event.button==2){ alert(message); return false; } }');
	theWin.document.write('function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } }');
	theWin.document.write('if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; }');
	theWin.document.write('document.oncontextmenu=new Function("alert(message);return false")');
	theWin.document.write('<\/script>');
	theWin.document.write('<div style="position:absolute;width:'+theWidth+'px;height:'+theHeight+'px;left:0px;top:0px">');
	theWin.document.write("<img src="+url+"><br>");
	theWin.document.write("<center><a href='javascript:self.close()'target='_self'><img src='img/arrows/close_mod.png' align='absmiddle' width='30' height='30' border='0'>Close this window</a></center>");
	theWin.document.write("</div></body></html>");
	theWin.document.close();
	if (window.focus) {newwindow.focus()}
}
