// JScript File

/* Shamir Login */
Layout.registerElement("#LoginTable", function(element, parent) {
return Layout.windowHeight - 200; 
});

/* Cellcom Login */
Layout.registerElement("#CellcomTable", function(element, parent) {
return Layout.windowHeight - 200; 
});

/* Shamir Reminder */
Layout.registerElement("#trSpace", function(element, parent) 
{
    return Layout.windowHeight - 500; 
});

/* Cellcom Reminder */
Layout.registerElement("#trCellcomSpace", function(element, parent) 
{
    return Layout.windowHeight - 540; 
});

/* PasswordChange.aspx*/
Layout.registerElement("#trPasswordChangeSpace", function(element, parent) 
{
    var minimumElementHeight = 5; 
    var newElementUntilBottom = 500;

    if(Layout.windowHeight - newElementUntilBottom >= minimumElementHeight)
        return Layout.windowHeight - newElementUntilBottom; 
    else
        return minimumElementHeight;
});

/* ContactUs.aspx*/
Layout.registerElement("#trContactUsSpace", function(element, parent) 
{
    var minimumElementHeight = 5; 
    var newElementUntilBottom = 545;

    if(Layout.windowHeight - newElementUntilBottom >= minimumElementHeight)
        return Layout.windowHeight - newElementUntilBottom; 
    else
        return minimumElementHeight;
});

/* FAQ.aspx */
Layout.registerElement("#divFaq", function(element, parent) 
{
    var minimumElementHeight = 5; 
    var newElementUntilBottom = 245;

    if(Layout.windowHeight - newElementUntilBottom >= minimumElementHeight)
        return Layout.windowHeight - newElementUntilBottom; 
    else
        return minimumElementHeight;
});
