 var urlAddress = "http://www.navadoo.com";
 var pageName = "Navadoo Search!";

 function addToFavorites()
 {
  if (window.external)
  {
   window.external.AddFavorite(urlAddress,pageName)
  }
  else
  { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }

   browserName = navigator.appName;
   browserVer = parseInt(navigator.appVersion);
   if ( (browserName == "Netscape" && browserVer >= 3) ||
   (browserName == "Microsoft Internet Explorer" && browserVer >= 4)) compat = "true";
   else compat = "false";


   function back() {
   	if (compat == "true") {
   	history.go(-1)
   	}
   }

function display_todays_date()
{
	if (compat == "true") {
	var today = new Date();
	var numerical_day=today.getDay();
	var numerical_month=today.getMonth();
	var date=today.getDate();
	var year=today.getFullYear();

	var weekday_array = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	var day_of_the_week = weekday_array[numerical_day];

	var month_array = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
	var month_name = month_array[numerical_month];

	var date_string=day_of_the_week+' , '+date+' '+month_name+' '+year;
	document.write(date_string);
	}
}
	function check_contact_us_form()
		{
		if (!document.form_contact.company.value)
			{
			alert('Please enter a company name .');
			document.form_contact.company.focus();
			return false;
			}
	if (!document.form_contact.country.value)
			{
			alert('Please enter Country Location.');
			document.form_contact.country.focus();
			return false;
			}
	if (!document.form_contact.email.value)
			{
			alert('Please enter your email address.');
			document.form_contact.email.focus();
			return false;
			}
		}
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}



