// JavaScript Document
function opu(s){

    loc = window.location.href;
    iloc=loc.indexOf('?');
    jloc=loc.indexOf('#');

	if (iloc != -1){
  		loc=loc.substring(0,iloc);
	} else if (jloc != -1){
		loc=loc.substring(0,jloc);
	}

	window.location.href=loc+s;
}


function gturl(s){
	window.location.href= basepathurl+s;
}	



function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function SetFlashVar(varName ,varValue ,objectId)
{
	var flashMovie=getFlashMovieObject(objectId);
	flashMovie.SetVariable(varName, basepathurl+varValue);
}

function submitSearchForm(e){
	var ENTER_KEY='13';
	var x='';
	if (document.all){
	    var evnt = window.event;
	    x=evnt.keyCode;
	}else{
	    x=e.keyCode;
	}
	if(x==ENTER_KEY){
  	  submit_quickSearchForm('search');
	}
}

