function win_Login(x,y)
{
var win = new Window({id: "win_Login", className: "alphacube", title: "Login", width:334, height:220});
win.getContent().innerHTML = document.getElementById('LoginDiv').innerHTML;
//win.getContent().innerHTML = "<h1> hello world</a>";
win.setDestroyOnClose();
win.setLocation(x, y);
win.show();
//win.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
win.toFront();
}


function win_PostAComment(x,y)
{
var win = new Window({id: "win_PostAComment", className: "alphacube", title: "Comments", width:516, height:400});
win.getContent().innerHTML = document.getElementById('AllCommentsDiv').innerHTML;
//win.getContent().innerHTML = "<h1> hello world</a>";
win.setDestroyOnClose();
win.setLocation(x, y);
win.show();
//win.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
win.toFront();
}

function win_invitefriend(x,y)
{
var win = new Window({id: "win_invitefriend", className: "alphacube", title: "Invite Friends", width:600, height:440});
win.getContent().innerHTML = document.getElementById('invite_friend').innerHTML;

win.setDestroyOnClose();
win.setLocation(x,y);
win.show();
//win.setConstraint(true, {left:0, right:0, top: 30, bottom:10})
win.toFront();
}

