<!--

function openWindow(file, width, height) {
	var left;
	var top;
	left = (screen.availWidth - width) / 2;
	top = (screen.availHeight - height) / 2;
	window.open(file, '', 'top=' + top + ' ,left=' + left + ' ,width=' + width + ' ,height=' + height + ' ,scrollbars=no');
}

function openScrollingWindow(file, width, height) {
	var left;
	var top;
	left = (screen.availWidth - width) / 2;
	top = (screen.availHeight - height) / 2;
	window.open(file, '', 'top=' + top + ' ,left=' + left + ' ,width=' + width + ' ,height=' + height + ' ,scrollbars=yes');
}

function search() {
	var keywords;
	keywords = document.forms['Form'].Keywords.value;
	window.location = '/pages/search.aspx?keywords=' + keywords;
}

function checkEnter(event) { 	
	var code;		
	if (isNetscape()) {
		code = event.which;
	}
	else {
		code = event.keyCode;
	}
	if (code == 13) {
		search();
		return false;
	}
}

function isNetscape() {
	var isNetscape;
	var appName;
	appName = navigator.appName.toLowerCase();
	if (appName.indexOf('netscape') != -1) {
		isNetscape = true; 
	}
	else {
		isNetscape = false; 
	}
	return isNetscape;
}

function clearDefaultValue(object) {
	if ( object.defaultValue == object.value ) { 			
		object.value = '';    
	}
}

function getObject(name) {
	var object;	
	if (document.getElementById) {
		object = document.getElementById(name);
	}
	else if (document.all) {
		object = document.all[name];
	}
	else if (document.layers) {
		object = document.layers[name];
	}
	return object;
}	

function addToFavorites() {   
	var urlAddress;
   	var pageTitle;
   	urlAddress = window.location;
   	pageTitle = document.title;
  	if (window.external) {
   		window.external.AddFavorite(urlAddress,pageTitle);
  	}
  	else { 
   		alert("Sorry! Your browser doesn't support this function.");
  	}  
} 

//-->