function openwin(URL,W,H) {

	window.open(URL,'HELP','toolbar=no,location=no,directories=no,status=no,menubar=no,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 imagePreview(windowURL) { 
		return window.open(windowURL, 'imagePreview', 'width=650,height=550,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;
}

function ExpandSignNav() {
	ShowHideElement('rowGraphics');
	ShowHideElement('plussign');
	ShowHideElement('minussign');
}

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 ConfirmApprove() {
	return confirm('Approve this information?\nBy approving this information it will be posted for publishing to the LIVE site.  \n\nIf you do not wish to approve this information, select Cancel now.')
}

function ConfirmRestoration() {
	return confirm('Restore this information?\nBy restoring this information it will replace the information that is currently used.  \n\nIf you do not wish to restore this information, select Cancel now.')
}
