
function openWindow(url)
{
	var hWnd = window.open(url,'custWindow',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no ,width=600,height=500,top=200,left=400");
}

function validate_contact(theForm)
{
	if (theForm.uname.value == "")
	{
		alert("Please enter a value for the \"Name\" field.");
		theForm.uname.focus();
	
		return false;
	
	}	
	if (theForm.data.value == "")
	{
		alert("Please enter a value for the \"Data\" field.");
		theForm.data.focus();
	
		return false;
	
	}	
}

function validate_articles_comments(theForm)
{
	if (theForm.data.value == "")
	{
		alert("Please enter your comment in the \"Comment\" field.");
		theForm.data.focus();
		return false;
	
	}	
	if (theForm.name.value == "")
	{
		alert("Please enter your name in the \"Name\" field.");
		theForm.name.focus();
		return false;
	
	}	
}

function checkForm11() {

if (document.forms.Form11.elements['name'].value.length == 0) {

    alert('Please enter a value for the "Your name" field');
	document.forms.Form11.elements['name'].focus();

    return false;

}

if (document.forms.Form11.elements['email'].value.length == 0) {

    alert('Please enter a value for the "Email" field');
	document.forms.Form11.elements['email'].focus();

    return false;

}

if (document.forms.Form11.elements['comments'].value.length == 0) {

    alert('Please enter a value for the "Questions, comments, or feedback" field');
	document.forms.Form11.elements['comments'].focus();

    return false;

}

  return true;

}

function toggleDiv(obj) {
	var rg = document.getElementById(obj);
	if ( rg.style.display != 'none' ) {
		rg.style.display = 'none';
	}else {
		rg.style.display = '';
	}
}

function sortPhotos(obj) {
	window.location = '?xp='+obj;
	
}

function getbc(obj) {
	if(obj != "none"){
		window.location = 'getmp3.php?af='+obj;
	}
	
}

function setHeight(nH){
	if(navigator.appName.indexOf("Microsoft Internet")==-1){
		// not IE
		window.document["cogmenu"].style.height = nH+"px";
		//alert(nH);
	}
}

function setStyle(objId, style, value){
   document.getElementById(objId).style[style]= value;
  // alert(value);
   // in div
   // onmouseover="setStyle('banner', 'zIndex', 1)" onmouseout="setStyle('banner', 'zIndex', 0)"
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


