function doNetworkLink(pagetoopen,windowname)
{
	url=location.href
	mytitle=document.title
	pagetoopen=pagetoopen.replace(/\*URL\*/g,url).replace(/\*TITLE\*/,mytitle)
	window.open (pagetoopen,Math.round(Math.random()*1000),"location=0,status=1,scrollbars=1,width=800,height=800,resizable=1,toolbar=1,menubar=1,location=1,directories=1"); 
}

function doPopEmail(linkloc)
{
  var winobj=window.open("/includes/socialise_ForwardThistoFriend.asp","EmailThis","location=0,status=1,scrollbars=1,width=760,height=660,resizable=0"); 
  winobj.focus();
}

function doPrint()
{

var ImgURL = ''
if ($("#slideshowslider").length > 0)
{  
		var ImgPathHolder = new Array()
		var ImgCount = 0
		//ImgPathHolder[ImgCount] = $(".images").attr("src")
		$(".images div:not(#topdiv)").each(function() {
		   if($(this).css('display') == 'block')
			 {
					if($(this).find('img').attr('src') != undefined)
						{
							  ImgPathHolder[ImgCount] = $(this).find('img').attr('src');
							  ImgCount++ 
						}	  
			 }
		});
		
   ImgURL = ImgPathHolder[ImgPathHolder.length-1]
}
 window.open("/includes/Oberoi_print.asp?PicURL="+ImgURL+"","PrintContent","location=0,status=1,scrollbars=1,width=400,height=400,resizable=no"); 
 //window.open ("/includes/Oberoi_print.asp","PrintContent","location=0,status=1,scrollbars=1,width=400,height=400,resizable=no"); 
}
