﻿width = 400;
	height = 320;
	LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
function bookmark(url,title){

  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(window.location.href,window.document.title );
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(window.document.title, window.location.href,""); 
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function popup_send()
	{  	

	var link = window.location.href ;
	var tit = window.document.getElementById("ctl00_CP_lb_title").innerHTML;
//    'var tit = window.document.aspnetForm.ctl00_CP_lb_title.innerHTML;
	tit = tit.replace(/-/g, "@c@");
	link = link.replace(/-/g, "@c@")+ tit;	
	//var strReturn; strReturn=window.showModalDialog('popup/sendmail.aspx?link='+link,null,'status:no;dialogWidth:440px;dialogHeight:424px;dialogHide:true;help:no;scroll:no');
	window.open('popup/sendtofriend.aspx?link='+link,'Send_To_Friend','status=yes,width='+ width +',height='+ height +'');
	}
