﻿// JScript File

//the following javascript gets the MasterPage value from the query string
//and receives the destination page as an argument
//using the query variable and the argument...
//it sends the user to the appropriate page, using the selected MasterPage
//if it fails see Dana

function sendWithMaster(page) {
    var query = window.location.search.substring(1);
    var position = query.indexOf('=');
    var value = query.substring(position+1);
            
    var qString = "?MasterPage=" + value;
    window.location = page + qString;
}
