﻿var winOpts = 'resizeable=yes,scrollbars=yes,width=420,height=190,left=100,top=100'; 

function popUp(pPage) 
{ 
    popUpWin = window.open(pPage,'popWin',winOpts); 
}

function popUpCustom(pPage, width, height) 
{ 
    var opts = 'resizeable=yes,scrollbars=yes,width=' + width + ',height=' + height + ',left=100,top=100'; 
    popUpWin = window.open(pPage, 'popWin', opts); 
}

function goTo(url)
{
    ShowMainProgress();
    window.location = url;
}   

function goToSimple(url)
{
    /*var pagename = url.split('?')[0];
    var currentUrl = window.location.href.split('?')[0];
    if (pagename.length <= window.location.href.length)
    {
        if (pagename == currentUrl.substring(currentUrl.length - pagename.length, currentUrl.length))
        {
            var randomnumber=Math.floor(Math.random()*101);
            url += "#" + randomnumber;
        }
    }*/
    window.location.href = url;
}   

function postBackLinkButton(buttonID) 
{
    __doPostBack(buttonID.split('_').join('$'), '');
}

function postBackLinkButtonWithArg(buttonID, argument) 
{
    __doPostBack(buttonID.split('_').join('$'), argument);
}

