function popupWindow(url, width, height) {
//alert("popupWindow");
args = 'width='+width + ', height=' + height + ' resizable=0, status=0, scrollbars=1';
ok = window.open(url,'', args);
if(ok) return false;
else return true;
}
/**
* This function is only used by the IF.
* Therefore this function does nothing. The integrator must
* implement the functionality.
*/
function popupIFWindow(url) {
return true;
}
function popupDepotWindow(url, width, height) {
//alert("popupDepotWindow " + width + ":" + height);
//replace Tags
var pattern=//g;
url=url.replace(pattern,"");
//ignore width, height Höhe 10 pixel mehr als original, da sonst firefox eine scrollbar anzeigt (wie jetzt in deka.de)
args = 'width='+795 + ', height=' + 645 + ' resizable=0, status=1, scrollbars=1';
//alert("popupDepotWindow: " + args );
ok = window.open(url,'depotpopup', args);
if(ok) return false;
else return true;
}
function goBack() {
ok = history.back();
if(ok) return true;
else return false;
}
/**
* generic function to reset the given field if the current value equals the given string
* usage: onfocus="resetField(this, 'Fonds, WKN oder Begriffe')"
* obsolete: use forwarder for support reasons
*/
function resetField(field, defaultString){
handleInputFieldDefaultValue(field, defaultString);
}
// Generelle Funktion um die Groesse des Popup einfach pflegen zu koennen
function showPageContextHelp(url) {
return popupWindow(url, 345, 445);
}
// Browser Check for CSS
var browserName = navigator.userAgent.toLowerCase();
if(browserName.indexOf("msie 7.0") != -1 && browserName.indexOf("opera") == -1) // Internet Explorer 7.0
{ document.write("") }
if(browserName.indexOf("msie 6.0") != -1 && browserName.indexOf("opera") == -1) // Internet Explorer 6.0
{ document.write("") }
if(browserName.indexOf("msie 5.5") != -1 && browserName.indexOf("opera") == -1) // Internet Explorer 5.5
{ document.write("") }
if(browserName.indexOf("firefox") != -1) // Firefox
{ document.write("") }
if(browserName.indexOf("opera") != -1) // Opera
{ document.write("") }
if(browserName.indexOf("netscape") != -1) // Netscape
{ document.write("") }
if(browserName.indexOf("netscape") != -1) // Mozilla
{ document.write("") }