﻿

function OpenWindow(url, height, width, target, features)
{    
    var objWin = window.open(url,target,'width='+width+', height='+ height+',scrollbars =1, resizable = 1');
}

function OpenPopWindow(url, height, width, target, features)
{    
    //var objWin = window.open(url,'_blank','location=1,status=1,scrollbars=1, resizable=1,height='+(height==null)?750:height+',width='+(width==null)?550:width);
    var objWin = window.open(url,'_blank','location=1,status=1,scrollbars=1, resizable=1,height=550,width=750');
}

function RefreshPage()
{
    __doPostBack('','');
}

//function DoSearchGoogle(url)
//{       
//        var oSearch = document.getElementById(g_oSearch);
//         var searchURL = url + encodeURIComponent(escape(oSearch.value));
//         if ( oSearch.value !='' || oSearch.value==null)
//            window.location.href = searchURL;
//         return false;
//} 



//function DoKeyPressOnGoogleSearchBox(url)
//{
//    //If enter key is pressed
//    if(window.event.keyCode == 13) 
//       return DoSearchGoogle(url); 
//}

 function GoBack(oButton, oEvent)
    {
        history.back();
        oEvent.cancel = true;
    }
