/**

 * The fuction used to hide and show a HTML DIV tag.

 * Called by the MagicLinker Applet at the end, to enable the 

 * "next" button, so the researcher can proceed.

 **/

function hideshow(obj) {

    //Check version of browser

    if (parseInt(navigator.appVersion) >= 5 || navigator.appVersion.indexOf["MSIE 5"] != -1) {

    	//Show the object

        if (obj.style.display=="none"){

             obj.style.display="";

        }

        //Hide the object

        else{

             obj.style.display="none";

        }

    }

    else{

    	alert("MagicLinker Error!\n Browser not compatible for\n button enable instruction!");

    }

}



function bookmark_normal() {



  title = "Kronos Games - Online Gaming";

  url = "http://www.kronosgames.com";

   

  if (window.sidebar){

    //Firefox

    window.sidebar.addPanel(title, url, '');

  }

  else if (window.external){

    //IE

    window.external.AddFavorite(url, title);

  }

  else if (window.opera && window.print){

    //Opera

    alert('Please use Ctrl+D to bookmark this game.');

  }

}



function validate_form_message(){

    valid = true;



    //Check all fields

    if(

       document.message_form.name.value == "" || 

       document.message_form.message.value == ""

    ){

        alert("Please fill out all required fields!");

        valid = false;

    }

    

    return valid;

}

function fbs_click(var_href, var_title) {
  u=var_href;
  t=var_title;
  window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
  return false;
}


