
function isJSP() {
	if (window.location.href.indexOf(".jsp") != -1) {
		return true;
	}else {
		return false;
	}
}

function getObject(id){
	return document.getElementById(id);	
}
        
 function iFrameHeight() { 
 	window.setTimeout(iFrameHeight,200);
    try{ 
	 var iframe= document.getElementById("iframepage");
    var bHeight = iframe.contentWindow.document.body.scrollHeight; 
    var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; 
    var height = Math.min(bHeight, dHeight); 
    iframe.height =  height;
    }catch (ex){} 
	
} 


 function downloadIR(alink,id){
	if(isJSP()){
		location.href="/Investor-Relations/deal/download.jsp?id="+id;
	}else{
		window.open(alink);
	}
}

function iframeout(url){
	window.parent.location = url;	
}

