function checkSearch(l) {

  if(l.searchterm.value=="")

  {

    noSearchTerm();

    return false;

  }

  else if((l.cat.value=="") || (l.cat.value==0))

  {

    noCat();

    return false;

  }

  else

  {

    return true;

  }

}



function noSearchTerm()

{      

  window.alert("Please enter your search terms in the box provided before clicking the GO button");

}



function noCat()

{      

  window.alert("Please select a category before clicking the GO button");

} 


					function ShowHide(id1, id2) {

					  if (id1 != '') expMenu(id1);

					  if (id2 != '') expMenu(id2);

					}

					

					function expMenu(id) {

					  var itm = null;

					  if (document.getElementById) {

						itm = document.getElementById(id);

					  } else if (document.all){

						itm = document.all[id];

					  } else if (document.layers){

						itm = document.layers[id];

					  }

					

					  if (!itm) {

					   // do nothing

					  }

					  else if (itm.style) {

						if (itm.style.display == "none") {

						  itm.style.display = "";

						}

						else {

						  itm.style.display = "none";

						}

					  }

					  else {

						itm.visibility = "show";

					  }

					}

					function multi_page_jump( url_bit, total_posts, per_page )

					{

					  pages = 1; cur_st = parseInt(""); cur_page  = 1;

					  if ( total_posts % per_page == 0 ) { pages = total_posts / per_page; }

					   else { pages = Math.ceil( total_posts / per_page ); }

					  msg = "Choose a page between 1 and" + " " + pages;

					  if ( cur_st > 0 ) { cur_page = cur_st / per_page; cur_page = cur_page -1; }

					  show_page = 1;

					  if ( cur_page < pages )  { show_page = cur_page + 1; }

					  if ( cur_page >= pages ) { show_page = cur_page - 1; }

					   else { show_page = cur_page + 1; }

					  userPage = prompt( msg, show_page );

					  if ( userPage > 0  ) {

						  if ( userPage < 1 )     {    userPage = 1;  }

						  if ( userPage > pages ) { userPage = pages; }

						  if ( userPage == 1 )    {     start = 0;    }

						  else { start = (userPage - 1) * per_page; }

						  self.location.href = url_bit + "&st=" + start;

					  }

					}


var wait = 90

var message = new Array()

message[0] = "Autographs" 

message[1] = "-RockAndPop.com"

message[2] = "Please look at the Autograph Gallery to see photos of what we have to offer"

var msgs = 2

var temp = ""

var curmsg = 0

var a = 0

var counter = 0

function typew()  {

a = a + 1

window.status = message[curmsg].substring(0, a)

if(a == message[curmsg].length + 5) {

	curmsg = curmsg + 1

	a = 0

	}

if(curmsg > msgs){

	curmsg = 0 }

counter = setTimeout("typew()", wait)

}

typew();


function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}
