function BookmarkPage() {
	
	var Browser = navigator.userAgent;
	if (Browser.indexOf("MSIE") > -1) {
		if (parseInt(navigator.appVersion) >= 4)
			window.external.AddFavorite(window.location.href, document.title);
	}
	else if (Browser.indexOf("Firefox") > -1)
		window.sidebar.addPanel(document.title, window.location.href,"");
	else {
		var tools = "resizable,toolbar=no,location=no,scrollbars=no,width=400,height=400,left=0,top=0";
		newWindow = window.open('bookmark/', 'newWin', tools);
		newWindow.focus();
	}
}
// Popups
var newWindow = null;
function closeWin() {
    if (newWindow != null) {
        if (!newWindow.closed)
            newWindow.close();
    }
}
function popUpWin(url, strWidth, strHeight) {
    closeWin();
    var tools = "";
    tools = "resizable,toolbar=no,location=no,scrollbars=1,width=" + strWidth + ",height=" + strHeight + ",left=0,top=0";
    newWindow = window.open(url, 'newWin', tools);
    if (newWindow != null)
        newWindow.focus();
}
function HideSurveyLink() {
    document.getElementById('SurveyLink').innerHTML = "";
}

function QueryString(ji) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == ji) {
            return ft[1];
        }
    }
}

function openSS() {
    window.open("bio-farma/index.php?StructureSearch","search","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600,left=400,top=20");
    
  }
  
function openSSLoaded(molString) {
    window.open("index.php?StructureSearch&smiles="+ molString,"search","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600,left=400,top=20");
    
  }
  

