function confirmDeleteWebpage(pageID){
	var agree=confirm('Are you sure you want to delete this webpage?');
	if (agree)
		window.location = ("abcWeb_edit.php?function=delete&id="+pageID) ;
	else
		return false ;
}

function confirmVersionWebpage(pageID, versionID){
	var agree=confirm('Are you sure you want to load a previous version of this webpage? (any unsaved changes you have made will be lost)');
	if (agree)
		window.location = ("abcWeb_edit.php?id="+pageID+"&version="+versionID.options[versionID.selectedIndex].value ) ;
	else
		return false ;
}

(function(){ // Import GET Vars
   document.$_GET = [];
   var urlHalves = String(document.location).split('?');
   if(urlHalves[1]){
      var urlVars = urlHalves[1].split('&');
      for(var i=0; i<=(urlVars.length); i++){
         if(urlVars[i]){
            var urlVarPair = urlVars[i].split('=');
            document.$_GET[urlVarPair[0]] = urlVarPair[1];
         }
      }
   }
})();
