////////////////////////////////////////////////////////////////////////////
// util.js - Utility functions for Readiness Kit and VS 6 Plus Pack
///////////////////////////////////////////////////////////////////////////

///////////////// Navigation and Linking
function exec(cmd, arg)
{
//    shapp.ShellExecute(cmd, arg);
}
function goprint()
{
	external.signalprint();
}
function help(arg)
{
    exec('hh.exe', arg);
}
function chgframe(url)
{
	var target = prompt("Enter new frame contents:", "");
	this.location.href="http://"+target+"/" ;
}
function navto(url)
{
    top.content.location.href = url;
}

function launchto(url)
{
    window.open(url);
}


function LinkCD1(URL)
{
   external.LinkToURLOnCD(URL, "shell.exe", "Demo Home Page", "navto");
}

function LaunchCD1(Path)
{
   external.LaunchFromCD("shell.exe", "Demo Home Page", Path, '');
}

function LinkCD1NewWindow(URL)
{
   external.LinkToURLOnCD(URL, "shell.exe", "Demo Home Page", "launchto");
}

function LinkCD4NewWindow(URL)
{
   external.LinkToURLOnCD(URL, "seminar.css", "Microsoft MSDE for Visual Studio Developer Training", "launchto");
}


function vsi_using()
{
	top.content.location.href = "vsi_using.htm";	
}



function goback()
{
    parent.history.back();
}

function goforth()
{
    parent.history.forward();
}


function goprint()
{
	external.signalprint();
}



document.oncontextmenu = fnContextMenu;

function fnContextMenu()
{
   event.returnValue = false;
}

function RunReadyKit()
{
//   external.execute("readykit.exe");
     LaunchCD1("readykit.exe");
}

/////////////////////////////////////////////////////////////////////////////////


function LaunchSQL7Setup()
{
//   external.LaunchFromCD('smssql70.pdf', 'Microsoft MSDE for Visual Studio', 'x86\\setup\\setupsql.exe', '');
   external.LaunchFromCD('smssql70.pdf', 'Microsoft MSDE for Visual Studio', 'autorun.exe', '');
}

function LaunchMSDESetup()
{
   external.LaunchFromCD('smssql70.pdf', 'Microsoft MSDE for Visual Studio', 'msde\\MsDEx86.exe', '');
}


function msde_folder()
{
// open MSDE folder on CD 2
   external.ShellLaunchFromCD('smssql70.pdf', 'Microsoft MSDE for Visual Studio', 'msde');
}

function msde_readme()
{
// open MSDE readme on CD2\MSDE
   external.ShellLaunchFromCD('smssql70.pdf', 'Microsoft MSDE for Visual Studio', 'msde\\readme.txt');
}

function LaunchIntroducingMSDE()
{
  LinkCD4NewWindow("seminar/1033/072299VEMSDE1.htm");
}

function exec(cmd, arg)
{
//    shapp.ShellExecute(cmd, arg);
}

function help(arg)
{
    exec('hh.exe', arg);
}

function SHGetSpecialFolderPath(cidl)
{
//    var shfdr = shapp.NameSpace(cidl);
//    var shfdritm = shfdr.Self;

//    return shfdritm.Path;
}


