var GoPage = "";
var GetId = "";
var GoQuer = "";

var GoQuerCat = "";
var GoQuerSub = "";
var CatId = 0;
var SubId = 0;


function GetTypePage(GoPage, GoQuerCat, CatId, GoTypePage, TypePageId) {
    var objSelectCat = document.getElementById(CatId);
    var objSelectTypePage = document.getElementById(TypePageId);

    SqlStrCat = "";
    SqlStrCat = objSelectCat.value;

    SqlStrTypePage = "";
    SqlStrTypePage = objSelectTypePage.value;

    window.location = GoPage + '?' + GoQuerCat + '=' + SqlStrCat + '&' + GoTypePage + '=' + SqlStrTypePage;

}
//GetSqlSub('CategorySubAdd2.php' , 'Cat', 'Category_Id', 'type', 'LinkPage' )







function GetSqlSub(GoPage, GoQuerCat, CatId,  GoQuerSub , SubId) {
    var objSelectCat = document.getElementById(CatId);
    var objSelectSub = document.getElementById(SubId);

    SqlStrCat = "";
    SqlStrCat = objSelectCat.value;

    SqlStrSub = "";
    SqlStrSub = objSelectSub.value;

    window.location = GoPage + '?' + GoQuerCat + '=' + SqlStrCat + '&' + GoQuerSub + '=' + SqlStrSub;

}
//GetSqlSub('CategorySubView3.php' ,  'Cat', 'Category_Id', 'sub',  'CategorySubId' )


function GetSql(GoPage, GetId, GoQuer) {
    var objSelect = document.getElementById(GetId);

    SqlStr = "";

    SqlStr =  objSelect.value;
    window.location = GoPage + '?' + GoQuer +'=' + SqlStr;

}



//'CategorySubView.php', 'Category_Id', 'Cat' 
