// JavaScript Document
function popup(sw) {

if (sw == 1) {
// Show popup

document.getElementById('blackout').style.visibility = 'visible';
document.getElementById('divpopup').style.visibility = 'visible';
document.getElementById('blackout').style.display = 'block';
//document.getElementById('divpopup').style.display = 'block';
	if(ssOverflow == 'StockScreener'){
		document.getElementById('divpopup').style.display = 'block';
		document.getElementById('divpopup').style.overflow = 'hidden';
	}else{
		//document.getElementById('divpopup').style.overflow = 'auto';
		document.getElementById('divpopup').style.display = 'block';
	}
} else {
// Hide popup

	
document.getElementById('blackout').style.visibility = 'hidden';
document.getElementById('divpopup').style.visibility = 'hidden';
document.getElementById('blackout').style.display = 'none';
document.getElementById('divpopup').style.display = 'none';
document.getElementById('pop_content').innerHTML = '';
updateLivePrice = false ;paginateFlag = false;
defShowList = true; openChart = false;
pageName = "equity";
if(pageName == "stockScreener"){
	//document.getElementById("subindustDiv").style.visibility = "visible"
	}
try{
	//document.getElementById("industDiv").style.visibility = "visible"
	//document.getElementById("subindustDiv").style.visibility = "visible"
	document.body.style.overflow="";
   if (window.ActiveXObject){
  	 var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	standardbody.style.overflow=""
	}else{
		document.body.style.overflow="auto";
	}
}catch(e){}
	
}
}




function popup1(sw) {
if (sw == 1) {
// Show popup

document.getElementById('blackout_home').style.visibility = 'visible';
document.getElementById('divpopup_home').style.visibility = 'visible';
document.getElementById('blackout_home').style.display = 'block';
document.getElementById('divpopup_home').style.display = 'block';

document.getElementById('divpopup_home').style.width = "39%";
document.getElementById('divpopup_home').style.height = "25%";
document.getElementById('divpopup_home').style.marginLeft = "30%";
document.getElementById('divpopup_home').style.marginTop = "180px";		


} else {
// Hide popup	
document.getElementById('blackout_home').style.visibility = 'hidden';
document.getElementById('divpopup_home').style.visibility = 'hidden';
document.getElementById('blackout_home').style.display = 'none';
document.getElementById('divpopup_home').style.display = 'none';
document.getElementById('pop_content_home').innerHTML = '';	

if (window.ActiveXObject){
  	 var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	standardbody.style.overflow=""
	}
}
}