function capitalizeMe(obj) {
        val = obj.value;
        newVal = '';
        val = val.split(' ');
        for(var c=0; c < val.length; c++) {
                newVal += val[c].substring(0,1).toUpperCase() +
val[c].substring(1,val[c].length) + ' ';
        }
        obj.value = newVal;
}

function tog(id)
{
var s = document.getElementById(id).style;
s.display = (s.display == "block" ? "none" : "block");
}
function tog1(id)
{
var s = document.getElementById(id).style;
s.display = (s.display == "none" ? "block" : "none");
}
function popWindow(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 600;
     var newHeight = 400;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popCVV(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 500;
     var newHeight = 300;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popSTF(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 550;
     var newHeight = 550;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
	// redirects browser to specified page
	function redirect_window(new_location)
	{
		if (new_location != "")
		{
	    	window.location.href = new_location;
		}
		
		return true;
	}
function popSendtoFriend(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 400;
     var newHeight = 400;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popMAP(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 300;
     var newHeight = 150;
     var newTop = 20, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popWindow2(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 750;
     var newHeight = 650;
     var newTop = 0, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popWindowRequest(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 550;
     var newHeight = 550;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popWindowBIG(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 500;
     var newHeight = 500;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popWindowCHART(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 620;
     var newHeight = 600;
     var newTop = 50, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +

          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function codename() {

if(document.returnitems.verifycheck.checked)
{
document.returnitems.but_return.disabled=false;
}

else
{
document.returnitems.but_return.disabled=true;
}
}

function popSendtoFriend(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 400;
     var newHeight = 400;
     var newTop = 250, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popWindow1(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 780;
     var newHeight = 550;
     var newTop = 20, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popMAP(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 300;
     var newHeight = 150;
     var newTop = 20, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 


function popWindowCHART(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 620;
     var newHeight = 600;
     var newTop = 50, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,top=0, left=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=585');");
}
// End -->

<!--
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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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];}
}  
//--> 

var activeEle = null;

function highlight( ) 
{ 
if (activeEle) {
activeEle.style.color = '#000';
activeEle.style.background = 'transparent';
}
var oObj = event.srcElement; 
oObj.style.color = "#000000"; 
oObj.style.background = "yellow"; 
activeEle = oObj;
} 


function validate() {		
	if (document.search_site.search_keyword.value.length < 1) {
			alert('You must enter a search term.');
			return false;
	}	
	return true;
}	
