function searchCheck()
{
	var str = '';
	
	if (document.frm.ss.value=='' || document.frm.ss.value=='Enter Keyword..')	{
		alert("Please enter some keyword to search.");
		document.frm.ss.focus();
		document.frm.ss.value='';
		return false;
	}
	if (document.frm.ss.value.length < 3) {
	alert("Please Enter atleast 3 character");
	document.frm.ss.focus();
	return false;
	}
	if (document.frm.ss.value){
		str += 'ss='+document.frm.ss.value;
window.location = "http://www.google.com/cse?cx=partner-pub-5878876210738461%3Aqnrhwkunv71&ie=ISO-8859-1&q=&sa=Search";
return false;
	}
}

function searchClear()
{
	if (document.frm.ss.value=='Enter Keyword..')	{
		document.frm.ss.value='';
	}
}

function settext()
{
	if (document.frm.ss.value=='')  {
	        document.frm.ss.value='Enter Keyword..';
	}    
}

function settextvalue()
{
	document.frm.ss.value='Enter Keyword..';    
}

function getDwsCookie(Name)
{
	var search = Name + "="
	if (document.cookie.length > 0)
	{ // if there are any cookies
		offset = document.cookie.indexOf(search)
		if (offset != -1)
		{ // if cookie exists
			offset += search.length
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset)
			// set index of end of cookie value
			if (end == -1) end = document.cookie.length
			return unescape(document.cookie.substring(offset, end))
		}
	}
	return "";
}

function setDwsCookie(name, value)
{
	expires = new Date();
	expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);

	if (value.length > 0)
	document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString() + ";";
}


function flash()
{
	objects = document.getElementsByTagName("object");
	for (var i = 0; i < objects.length; i++)
	{
		objects[i].outerHTML = objects[i].outerHTML;
	}
}
function showflash()
{
	document.getElementById("flash").innerHTML='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="474" HEIGHT="290"><PARAM NAME="movie" VALUE="topbanner.swf"><PARAM NAME="quality" VALUE="high"><PARAM NAME="wmode" VALUE="transparent"><embed src="topbanner.swf"  WIDTH="474" HEIGHT="290" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" WMODE="transparent"></OBJECT>';
}
function openchild(sPicURL,h,w)
{
	window.open(sPicURL, 'Lookup', 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h+'');
}

function flash()
{
	objects = document.getElementsByTagName("object");
	for (var i = 0; i < objects.length; i++)
	{
		objects[i].outerHTML = objects[i].outerHTML;
	}
}