    function hidePages() {
	var pageLink =  document.getElementById('plink1').value;
	//var pageLink =  'dp-contact.php';
	var unAvailableText =  document.getElementById('unAvailableText');
	alert ('pageLink');
	if (pageLink == 'index-disc.php') 
		{
		var hide = document.getElementById("hideForms");
		hide.style.display ='none';
		unAvailableText.innerHTML = '<p>This page cannot be edited. You can however approve it for display and change the page/menu names.';
		}
////		else if (pageLink == 'as-gallery-two.php') 
////		{ 
////		var hide = document.getElementById("hideForms");
////		hide.style.display ='none';
////		unAvailableText.innerHTML = '<p>This page cannot be edited. You can however approve it for display and modify the page/menu names.  <br /><a href="as-image-select.php" target="_self" class="contentLink" />Click here to edit galleries.</p>';
////		}
////		else if (pageLink == 'as-gallery-three.php') 
////		{
////		var hide = document.getElementById("hideForms");
////		hide.style.display ='none';
////		unAvailableText.innerHTML = '<p>This page cannot be edited. You can however approve it for display and modify the page/menu names. <br /><a href="as-image-select.php" target="_self" class="contentLink" />Click here to edit galleries.</p>';
////		}
//		else if (pageLink == 'main-desk.php') 
//		{
//		var hide = document.getElementById("hideForms");
//		hide.style.display ='none';
//		unAvailableText.innerHTML = '<p>This page cannot be edited. You can however approve it for display and modify the page/menu names.';
//		}
////		else if (pageLink == 'as-portfolio.php') 
////		{
////		var hide = document.getElementById("hideForms");
////		hide.style.display ='none';
////		unAvailableText.innerHTML = '<p>This page cannot be edited. You can however approve it for display and modify the page/menu names. <br /><a href="as-portfolio-select.php" target="_self" class="contentLink" />Click here to edit portfolio items.</p>';
////		}alert ('pageLink');
		else if (pageLink == 'dp-contact.php') 
		{
		
		alert(pageLink+'1');
		
		var hide = document.getElementById("hideForms");
		hide.style.display ='none';
		unAvailableText.innerHTML = '<p>This page cannot be edited. You can however approve it for display and change the page/menu names.</p>';
		}
//		else if (pageLink == 'index.php' || pageLink == 'index-disc.php' || pageLink == 'main-desk.php' || pageLink == 'about.php' || pageLink == 'dp-contact.php' ) 
//		{
//		var indexPage = document.getElementById('plink1');
//        indexPage.disabled = true;
//		}		
			}
//			function disablePageLink() {
//			var pageLink = document.getElementById('plink1');
//			pageLink.disabled = true;
//			}
//		
//			function startOnload() {
//				disablePageLink();
//				pageApprovalP();
//				hidePages();		
//		}
		
		//window.onload = startOnload();
