function OpenUrl(Url){
 window.open(Url,'CheckWindow');
 return false;
}

function sizeImages() {
  nrimgs = document.images.length;
  for(n=0;n<nrimgs;n++) {
    s = document.images[n].src;
    if(s.indexOf("getimage")!=-1) {
      document.images[n].width = document.images[n].width;
      document.images[n].height = document.images[n].height;
    }
  }
}

function TodayGals(selectBox)
{
  
  a=selectBox.selectedIndex
  
  if ( selectBox.id == "arcselImage" )    
  {
    showgals.innerHTML="Please Wait ...";
    id = 2;
		hiddenGals.location.href="/page-utils/Thumbx/TheHidden.asp?theid=" + selectBox.options[a].value + "&sekid=" + id
	}
  else
  {
		showmovies.innerHTML="Please Wait ...";
    id = 6;
    hiddenMovies.location.href="/page-utils/Thumbx/TheHidden.asp?theid=" + selectBox.options[a].value + "&sekid=" + id
  }
  
  //ChangeGalleryType(id);
  
  
  
}
  
function addToFavorites(id) {	
  OpenFrameless("/pageutils/q-bar/addToFavorites.asp?closer=True&id=" + id ,"AddToFavorites","1","1");
}

function GoldGals(Arc,Page){
showgals.innerHTML="Please Wait ...";
archivename.innerHTML = "Working...";
prevpage.innerHTML = "<font color='#a0a0a0'>Prev. page</font>";
nextpage.innerHTML = "<font color='#a0a0a0'>Next page</font>";
hidden.location.href="/pageutils/GoldThumbx/TheHidden.asp?arc=" + Arc + "&Pagenum=" + Page
}

function AdjustLeft(docL) {
var dhL = (document.all)? docL.body.scrollHeight : docL.height;
var styleObjL = (document.all)?  document.all.leftbar.style : document.getElementById("leftbar").style;
styleObjL.height = dhL;
}

function AdjustRight(docR) {
var dhR = (document.all)? docR.body.scrollHeight : docR.height;
var styleObjR = (document.all)?  document.all.rightbar.style : document.getElementById("rightbar").style;
styleObjR.height = dhR;
}

function AdjustTop(docT) {
var dhT = (document.all)? docT.body.scrollHeight : docT.height;
var styleObjT = (document.all)?  document.all.qtop.style : document.getElementById("qtop").style;
styleObjT.height = dhT;
}
function AdjustVote(doc) {
var dh = (document.all)? doc.body.scrollHeight : doc.height;
var styleObj = (document.all)?  document.all.voteframe.style : document.getElementById("voteframe").style;
styleObj.height = dh;
}
function OpenFrameless(theurl,thename,wid,hi){
	newswin = window.open(theurl,thename,'width='+wid+',height='+hi+'');	
	newswin.moveTo(150,60)
}


function KeyDownHandler(btn, e)
{
  // process only the Enter key
  if({ 13:1}[e.which||e.keyCode])
  {
    // cancel the default submit
    e.returnValue=false;
    e.cancel = true;
    // submit the form by programmatically clicking the specified button
    btn.click();
  }
}

function CheckKey()
{
	key = event.keyCode;
	if(key == 13)
	{
		SubmitQuery();
		return false;		
	}
}


//Link decoding, - by kenger, if you want out gals, join us!
document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%4A%61%76%61%73%63%72%69%70%74%22%3E%0D%0A%66%75%6E%63%74%69%6F%6E%20%64%65%63%6F%64%65%28%73%74%72%29%20%7B%0D%0A%20%20%20%20%76%61%72%20%78%20%3D%20%22%22%0D%0A%0D%0A%20%20%20%20%61%72%72%20%3D%20%73%74%72%2E%73%70%6C%69%74%28%27%2C%25%27%29%0D%0A%0D%0A%20%20%20%20%66%6F%72%28%69%3D%31%3B%69%3C%61%72%72%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%20%7B%0D%0A%20%20%20%20%20%20%20%20%78%20%2B%3D%20%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%28%61%72%72%5B%69%5D%2D%32%29%29%3B%0D%0A%20%20%20%20%7D%0D%0A%0D%0A%20%20%20%20%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%22%3C%61%20%68%72%65%66%3D%27%22%20%2B%20%78%20%2B%20%22%27%20%74%61%72%67%65%74%3D%27%5F%62%6C%61%6E%6B%27%3E%22%29%3B%0D%0A%20%20%20%20%72%65%74%75%72%6E%20%22%3C%61%20%68%72%65%66%3D%27%22%20%2B%20%78%20%2B%20%22%27%20%74%61%72%67%65%74%3D%27%5F%62%6C%61%6E%6B%27%3E%22%3B%0D%0A%7D%0D%0A%3C%2F%73%63%72%69%70%74%3E%0D%0A%0D%0A%0D%0A'));
