function change(con,eg)
{
	if(con.value=='e.g '+eg)
		con.value='';
}
function FSsearch()
{
	
	var f = document.forms["frmFSSearch"];
	var txt = f.txtfsdescription.value
	
	if(txt.length>2)
	{
		f.submit();
	}
	else
	{
		alert('At least 3 characters are required');
	}
}


function searchCC()
{

	var f = document.forms["frmSearch"];
	var txt = f.txtdescription.value
	
	if(txt.length>2)
	{
		popup('/process.jsp?section=quicksearch&action=search&description=' + txt,'Food Swap',564,354,'scrollbars=no');
	}
	else
	{
		alert('At least 3 characters are required');
	}
	return false;
}


function popup(theURL,winName,width,height,features) {
 
var window_width = width;
var window_height = height;
var newfeatures= features;
var window_top = (screen.height-window_height)/2;
var window_left = (screen.width-window_width)/2;
var wname = winName.replace(' ','');
newWindow=window.open(''+ theURL + '',''+wname+'','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',' + newfeatures + '');
newWindow.focus();
}
