    function copy(text2copy) {
        if (window.clipboardData) {
            window.clipboardData.setData("Text",text2copy);
        } else {
            var flashcopier = 'flashcopier';
            if(!document.getElementById(flashcopier)) {
                var divholder = document.createElement('div');
                divholder.id = flashcopier;
                document.body.appendChild(divholder);
            }
            document.getElementById(flashcopier).innerHTML = '';
            var divinfo = '<embed src="/_clipboard.swf" FlashVars="clipboard='+escape(text2copy)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
            document.getElementById(flashcopier).innerHTML = divinfo;
        }
    }

      function CopyToClipboard()
      {
        
        //document.Form1.cText.focus();
        //document.Form1.cText.select();
        
        document.getElementById('photo_link').focus();
        document.getElementById('photo_link').select();
        var str = document.getElementById('photo_link');
        alert("COPIED TO CLIPBOARD "+str.value);
        copy(str.value);
 
      }

function simpleDialog(msg,width,height) { 

var w = parseInt(width)+100;

features = 
   'toolbar=no, location=no, directories=no, status=no, menubar=no, ' +
   'scrollbars=yes, resizable=yes, width='+w+', height='+height;
//alert(w+" "+height);
//alert(features);   
dlg = window.open (msg,"Dialog",features) 
dlg.document.write ("<HTML><BODY bgColor='black' text='white'>") 
dlg.document.write ("<div align=\"center\">")
dlg.document.write ("<FORM>")
dlg.document.write ("<div style=\"padding:0px 0px 0px 0px\">") 
dlg.document.write ("<table border=\"0\" width=\"",width,"\">") 
dlg.document.write ("<tr><td align=\"center\">")
dlg.document.write ("<div style=\"border: 3px solid #d2cbbb;\"><img src=\"",msg,"\"  /></div>") 
dlg.document.write ("</td></tr>")
dlg.document.write ("<tr><td align=\"center\"><INPUT type='button' value='Close Window' onClick = 'self.close()'></td></tr>") 
dlg.document.write ("</table>") 
dlg.document.write ("</div>") 
dlg.document.write ("</FORM></div></BODY></HTML>") 
dlg.document.close()
} 




<!-- <blink>   </blink> -->

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';
   }
 }
}
setInterval('blinkIt()',500);
