// $Id: comware.js,v 1.4 2009/06/15 12:31:01 cwstefane Exp $

function cwtest() {
    alert('comware.js');
}

function popBcScanner(url) {
    var w = 600;
    var h = 700;
    var top = 20;
    var name = 'bcscan';
    var left;
    var options;
    
    left = (screen.width - w) / 2;
   	options =
	"width="    + w    +
	",height="  + h    +
	",left="    + left +
	",top="     + top  +
	",resizable=yes,scrollbars=yes,status=no";

    hnd = window.open(url, name, options);
    hnd.focus();
    
    return true;
}

function popBadgePreview(url) {
    var w = 600;
    var h = 600;
    var top = 20;
    var name = 'badgepreview';
    var left;
    var options;
    
    left = (screen.width - w) / 2;
   	options =
	"width="    + w    +
	",height="  + h    +
	",left="    + left +
	",top="     + top  +
	",resizable=yes,scrollbars=yes,status=no,toolbar=yes";

    hnd = window.open(url, name, options);
    hnd.focus();
    
    return true;
}

function popProgKosten(url) {
    var w = 800;
    var h = 600;
    var top = 40;
    var name = 'progkosten';
    var left;
    var options;
    
    left = (screen.width - w) / 2;
   	options =
	"width="    + w    +
	",height="  + h    +
	",left="    + left +
	",top="     + top  +
	",resizable=yes,scrollbars=yes,status=no";

    hnd = window.open(url, name, options);
    hnd.focus();
    
    return true;
}

function popAnmUeber(url) {
    var w = 800;
    var h = 600;
    var top = 40;
    var name = 'anmueber';
    var left;
    var options;
    
    left = (screen.width - w) / 2;
   	options =
	"width="    + w    +
	",height="  + h    +
	",left="    + left +
	",top="     + top  +
	",resizable=yes,scrollbars=yes,status=no";

    hnd = window.open(url, name, options);
    hnd.focus();
    
    return true;
}

