var gintSetSearchText=1

function GiftBookmark(title,url) 
{

	if (window.sidebar) 
	{
		window.sidebar.addPanel(title, url,""); 

	} else if( document.all ) 
	{
		window.external.AddFavorite( url, title);

	} else if( window.opera && window.print )

	{ 
		return true;

	}
}

function ismaxlength(obj,objC)
{
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength);
}

function ShowLength(obj,objC)
{
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
objC.innerText=mlength-obj.value.length;
}

function ChangeText(str,strC,strN)
{
var strTemp
strTemp = str.replace(strC, strN);
strTemp = strTemp.replace(/"/g, 'xQuOtEx');
strTemp = strTemp.replace(/&/g, 'xAmPx');
strTemp = strTemp.replace(/@/g, 'xAtx');
strTemp = strTemp.replace(/=/g, 'xEqUaLsx');
return strTemp;
}


function SetSearchText()
{
var objLinkEvent2 = document.getElementById("search");
if (gintSetSearchText==0)
{
   objLinkEvent2.value='';
}else{
   gintSetSearchText=0;
}
}

gintSetSearchText=0;

function ChangeLinkEvent()
{
   var objLinkEvent = document.getElementById("LinkEvent");
   objLinkEvent.firstChild.nodeValue='** Christmas Gifts **';
   objLinkEvent.title='Christmas Gifts';
   objLinkEvent.href='http://www.gift-rush.co.uk/gifts/Christmas-Present/index.html';
}


