


function gotostory(story) {
	var whatstory = story.value;	
	document.location = "portfolioadmin.php?show=all&how=simple" + whatstory
}
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=950,height=570,left = 25,top = 25');");
}

function Qpop(what) { 
document.getElementById("q").style.pixelTop += 500;
descrip = '<table bgColor="#000000" cellpadding="10" cellspacing="1" width="150"><tr><td bgColor="#FFFFFF">If you want to find a specific image, and you know it\'s corresponding ID, click here.</td></tr></table>';

	q.innerHTML = descrip;
	q.style.left += 800;
 }

 function CheckCheck(whatob){
 			if (whatob.checked == true) { checkAll('Category[]'); }
			if (whatob.checked == false) { UncheckAll('Category[]'); }
 }
 

function checkAll(){ 
  var x = document.getElementsByTagName("INPUT");
                        //replace INPUT with input if your using XHTML
  for(var i = 0; i < x.length; i++){
    if(x[i].name == arguments[0]){
      x[i].checked = true;
    };
  };
			};
			
			function UncheckAll(){ 
  var x = document.getElementsByTagName("INPUT");
                        //replace INPUT with input if your using XHTML
  for(var i = 0; i < x.length; i++){
    if(x[i].name == arguments[0]){
      x[i].checked = false;
    };
  };
			};
		