var board = JXG.JSXGraph.initBoard('box1', {
axis: true, boundingbox: [-15, 15, 15, -15], showcopyright: false,keepaspectratio: true, axis: false, zoom: false,showNavigation: false
});
var p1 = board.create('point', [-11, -4],{name:'A', size: 1,face:"",fixed: true, color:'blue', label: {offset:[-5,-10], color:'blue'}} );
var p2 = board.create('point', [-1, -4],{name:'B', size: 1,face:"", color:'blue', fixed: true,label: {offset:[-5,-10], color:'blue'}} );
var p3 = board.create('point', [14, 2],{name:'C', size: 1,face:"", color:'blue',fixed: true, label: {offset:[-5,-10], color:'blue'}} );
var p4 = board.create('point', [-6, 1],{name:'D', size: 1,face:"", color:'blue', fixed: true,label: {offset:[-20,0], color:'blue'}} );
var l1 = board.create('segment', [p1, p2],{strokeWidth:2});
var l2 = board.create('segment', [p2,p3],{strokeWidth:2});
var l3 = board.create('segment', [p3,p4],{strokeWidth:2,dash: 2});
var l4 = board.create('segment', [p4,p1],{strokeWidth:2,dash: 2});
var p5 = board.create('point', [-11, 9],{name:'P', size: 1,face:"", color:'blue', fixed: true,label: {offset:[10,10], color:'blue'}} );
var l5 = board.create('segment', [p5,p1],{strokeWidth:2});
var l6 = board.create('segment', [p5,p4],{strokeWidth:2,dash: 2});
var l7 = board.create('segment', [p5,p2],{strokeWidth:2});
var l8 = board.create('segment', [p5,p3],{strokeWidth:2});
var mp1 = board.create('midpoint', [p3, p5],{name:'E', size: 1,face:"", color:'blue', label: {offset:[5,10], color:'blue'}} );
var l9 = board.create('segment', [p2,mp1],{strokeWidth:2});