function clickIE4(){
if (event.button==2){
alert(message);
return false;
}}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert('\xA9 MMS Publishing Lda.');return false")

function verifySearch(){
if(document.search.q.value==""){
  alert("Please enter a search term");
  return false;
}else{
return true;
}}

function returnRefresh(s) {
switch(s)
{
case 'ok':
  break;
case 'reload':
  //history.go(0);
  window.top.location.href=window.top.location.href;
  break;
default:
//  window.top.location.href=returnVal;
  window.top.location.href=s;
  break;
}}

function login(){
showPopWin('/login.asp', 400, 375, returnRefresh);
}

function refunds(){
showPopWin('/refunds.asp', 450, 450, null);
}

function terms(){
showPopWin('/terms.asp', 750, 500, null);
}
function regRequired(){
  showPopWin('/pop_regrequired.asp', 400, 425, returnRefresh);
}


