﻿ // JScript File

var l_objCInfoHome = null;
function CallLogin()
{
    if (l_objCInfoHome != null)
    {
        l_objCInfoHome.close();
    }
    var style="toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,left=350,top=250,width=530,height=377,status=yes,navigationbar=no,addressbar=no";		
    l_objCInfoHome=window.open("http://www.marketviewmobile.com/TPILWebLite/Login.htm","",style);	
}


/* Modified to support Opera */
var m_objCallLogin = "";
function bookmarksite(title,url){
    try
    {
        if (window.sidebar) // firefox
	        window.sidebar.addPanel(title, url, "");
        else if(window.opera && window.print){ // opera
	        var elem = document.createElement('a');
	        elem.setAttribute('href',url);
	        elem.setAttribute('title',title);
	        elem.setAttribute('rel','sidebar');
	        elem.click();
        } 
        else if(document.all)// ie
	        window.external.AddFavorite(url, title);
	}
	catch(ex)
	{
	    
	}
}
   
function mailpage()
{
//debugger;
    var str;
    try
    {
        navigationUrl = new String(location.href.toString())
        str = navigationUrl.slice(0,navigationUrl.lastIndexOf("/")) + "/";
        str = window.location.href;//document.getElementById('m_frameContent').src.toLowerCase();

        mail_str = "mailto:?subject= Recommended Link: " + document.title +"";
        mail_str += "&body= I recommend you to visit this page at TickerPlant Limited website (http://www.marketviewmobile.com) tip -- " + document.title;
        mail_str += ". You should check this out at, " + escape(str);

        window.location.href = mail_str;
    }
    catch(ex)
    {
        
    }
}


function CallLoginFromUserLogin()
{ 
//debugger;
    if (m_objCallLogin != "")
    {
        m_objCallLogin.close();
    }

    m_objCallLogin = window.open("CManageClient.aspx?Link='MANAGE'");
    m_objCallLogin.focus();	 
}


