function validateForm() {
	
	var name = document.contact.name.value;
	var email = document.contact.email.value;

	if (name == null || name.length <= 0  || name == '') {
		alert('Name is required');
		return false;
	} else if (email == null || email.length <= 0 || email == '') {
		alert('Email is required');
		return false;
	} else {
		return true;
	}	
}

function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}




var active = false;
function showLanguage() {
	
	if (active) {
		active=false;
		hideNow();
		
	} else {
		active = true;
		languageDiv.style.visibility='visible';
	}
	
}

function hideLanguage() {
	setTimeout("hideNow()",300);
	active=false;
}

function hideNow() {
	if (!active) {
		languageDiv.style.visibility='hidden';
	}	
}

function goToURL() {
	var selectedIndex = document.search.language.selectedIndex;
	var theURL = document.search.language[selectedIndex].value;
	location.href=theURL;
}

function openWindow(theWidth, theHeight, theURL) {
	  winSettings ='toolbar=no,location=no,directories=no,resizable=yes,width='+theWidth+',height='+theHeight+',left=10,top=25';
	  floater = window.open(theURL,"",winSettings);
	  
}
