function openwin(URL,W,H){
	window.open(URL,'HELP','toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=' + W + ',height=' + H);
}

function doPreview(windowURL) { 
		return window.open(windowURL, 'imagePreview', 'width=500,height=400,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1'); 
	}
	
function resetstime(){
	document.form.stime.value = '12:00 AM';
}	
function resetetime(){
	document.form.etime.value = '11:59 PM';
}	

function ShowHideElement(location) {
  var DisplayChoice = "none";
  if (document.getElementById(location).style.display == "none")
  { DisplayChoice = "block";	}
  document.getElementById(location).style.display = DisplayChoice;
  if (document.getElementById(location).style.display == "block")
  { document.getElementById(location).focus();	}
}

function SwitchSpecs() {
	ShowHideElement('SpecRow');
	ShowHideElement('plussign');
	ShowHideElement('minussign');
}

function ConfirmDelete() {
	return confirm('Delete this information?\nBy deleting all information it will be removed.  Once removed\nthe information may not be restored.\n\nIf you do not wish to delete this information, select Cancel now.')
}
function ConfirmPublish() {
	return confirm('Publish this information?\nBy publishing this information it will be posted to all PlaceHolders it is currently allocated.  \n\nIf you do not wish to publish this information, select Cancel now.')
}

function DeleteSite() {
	return confirm('Delete this Information?\nBy deleting all information about the site\nwithin the server it manages will be removed.  Once removed\nthe information may not be restored.\n\nIf you do not wish to delete this information, select Cancel now.')
}

function DeleteUser() {
	return confirm('Delete this Information?\nBy deleting all information about the user\nwithin the server it manages will be removed.  Once removed\nthe information may not be restored.\n\nIf you do not wish to delete this information, select Cancel now.')
}
function DeleteBySection() {
	return confirm('Delete this Information?\nBy deleting information in this PlaceHolder\nwithin the server it will be removed.  \nIt will only be removed from this section.\n\nIf you do not wish to delete this information, select Cancel now.')
}
function DeletePage() {
	return confirm('Delete this Information?\nBy deleting information about the PlaceHolder\nwithin the server it will be removed.  Once removed\nthe information may not be restored.\n\nIf you do not wish to delete this information, select Cancel now.')
}
function getSelect(thisitem) {
   location=thisitem;
}
