mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
651 B
23 lines
651 B
function UpgradeNow() {
|
|
// reformat ?website=mywebsite&bla=... to 'http://mywebsite?bla=...'
|
|
|
|
var querypart = window.location.search;
|
|
var websiteKeyword = "website=";
|
|
var websiteIndex = querypart.indexOf(websiteKeyword)+websiteKeyword.length;
|
|
var website = querypart.substring( websiteIndex );
|
|
var newURL = "http://"+website;
|
|
|
|
alert("debug info->Calling website "+newURL);
|
|
window.navigate( newURL );
|
|
}
|
|
|
|
function UpgradeLater() {
|
|
var oWShell = new ActiveXObject( "WScript.Shell" )
|
|
oWShell.Run( "dvdupgrd /remove" );
|
|
|
|
pchealth.Close();
|
|
}
|
|
|
|
function OnLoad() {
|
|
trg.style.setExpression( "left", document.body.clientWidth - trg.offsetWidth );
|
|
}
|