function onfocussettextvalue(txtname,txtvalue)
{if(document.getElementById(txtname).value.toLowerCase()==txtvalue.toLowerCase())
{document.getElementById(txtname).value='';}}
function onblursettextvalue(txtname,txtvalue)
{if(document.getElementById(txtname).value=='')
{document.getElementById(txtname).value=txtvalue;}}
function searchKeywords(){var keyword1;keyword1=document.getElementById('searchword').value;if(keyword1!=""&&keyword1!="search")
{window.location.href=strCommonWebsitePath_header+'/searchtray.php?tabid=1&skey='+keyword1;}}
function redirectologin()
{var strtext=window.location.href;strtext=encodeURIComponent(strtext);window.location.href=strCommonWebsitePath_header+"/login.php?desturl="+strtext;}
function setSearchCriteria()
{var strSearchObjectFormat="";var strSearchObjectType="";var strSearchString="";strSearchObjectFormat=document.getElementById("cmbSearchObjectFormat").value;strSearchObjectType=document.getElementById("cmbSearchObjectType").value;strSearchString=document.getElementById("searchword").value;var url=strCommonWebsitePath_header+"/setsearchcriteria.php?";var pars="";pars="objtype="+strSearchObjectType;pars+="&objformat="+strSearchObjectFormat;if(strSearchString!=""&&strSearchString.toLowerCase()!="search")
{pars+="&SearchString="+strSearchString;}
new Ajax.Updater('divtemp',url+pars,{evalScripts:true,onComplete:function(){aftersearchcriteriasetting();}});}
function displayselectiondivinheader(strdisplay)
{document.getElementById('divheaderselectiondisplay').style.display=strdisplay;document.getElementById('social_logo').style.right='85px';document.getElementById('divlinelength').style.width="950px";}
function gopagelink()
{window.location.href=strCommonWebsitePath_header+"/selectiontray.php";}
