document.onclick = clickHandler;
function clickHandler(evt){
	if(window.event && window.event.srcElement.tagName=='IMG'&&event.altKey){
		picloc=window.event.srcElement.src;
	}else if(evt && evt.target && evt.target.tagName=='IMG' && evt.altKey){
		picloc=evt.target.src;
	}else{
	picloc='';
}
if (picloc.indexOf('%3f')!=-1){picloc=picloc.slice(0,picloc.lastIndexOf('%3f'));}
ext=picloc.toLowerCase();
ext = ext.slice(ext.lastIndexOf('.')+1);
types = '|jpe|jpg|jpeg|gif|png|bmp|';
if (types.indexOf('|'+ext+'|') > 0 ){
	pix2fone(picloc);return false;
	}
}
function pix2fone(picloc){var z=(Math.round((Math.random()*900)+1));var Output;ShowALL=open("about:blank","pix2fone"+z,"resizable=yes,width=728,height=160,top=" + (screen.height - 250) / 2 + ",left=" + (screen.width - 728)/2+",scrollbars=no");Output='<html><head><title>Connecting to service...</title><scr'+'ipt language="JavaScript">function sendit(){if(document.f1){document.f1.submit()\;self.focus()\;}}</scr'+'ipt></head><body style="margin:0;cursor:wait;background:#E0DFCD url(http://pix2fone.com/s/p2f.gif) no-repeat" onContextMenu="return false" onload="javascript:sendit();"><div align=center style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;padding:15px"><p><strong><font color="red">Connecting to Pix2Fone service, please stand by...</font></strong><br>It may take a few seconds depending on your connection speed and the Pix2Fone service load.<br>Please wait until the process is complete.</p><form action="http://pix2fone.com/s/go.php" method="post" name="f1" id="f1"><input type="hidden" name="picloc" value="'+picloc+'"><input type="hidden" name="pid" value="<? echo $pid ?>"></form></div></body></html>';ShowALL.document.open();ShowALL.document.write(Output);ShowALL.document.close();return false;window.focus();}

