function wopen(url, w, h) 
{
        // Fudge factors for window decoration space.
	// In my tests these work well on all platforms & browsers.
	
        w += 32;
        h += 140;
	var win = window.open(url,
		'popup', 
		'width=' + w + ', height=' + h + ', ' +
		'location=no, menubar=no, ' +
		'status=no, toolbar=no, scrollbars=no, resizable=no');
	
	win.resizeTo(w, h);
	win.focus();
	
}
function Clickheretoprint()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,left=100, top=25"; 
	 var content_vlue = document.getElementById("print_page").href;
	 
  
   var docprint=window.open("window.href.location","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>Portfolio Management Service</title>'); 
   docprint.document.write('</head><body onLoad="self.print()"><center>');          
   docprint.document.write(content_vlue);          
   docprint.document.write('</center></body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}
function changestyle()
{
	//document.getElementById("print_page").href ="print.css";
	
	document.getElementById("sp").media ="print";
	document.getElementById("pp").media ="screen";
	alert(document.getElementById("pp").media);	
	
	//history.go(0);
	
}

		function pageprint()
		{
		        var winURL = "Printer.aspx";
		        var winName = "PrinterFriendly";
		        var winOptions = "width=630,height=562,toolbar=no,location=no,menu=no,status=no,scrollbars=yes";
				
		        window.open(winURL, winName, winOptions);
		}

function checksearch()
{
	
	if (document.yider_form.yider.value == "")
	{
		alert("Enter the string to Search");
		document.yider_form.yider.focus()
		
			return false;
	}
	
	
	}
