//////////////////////////////////////////////////////////////////////////////////////////
// to disable context menu


var isNS = (navigator.appName == "Netscape") ? 1 : 0; 
var EnableRightClick = 0; 
if(isNS)
  { 
    document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP); 
  }
  
function mischandler()
  { 
    if(EnableRightClick==1) { return true; } 
    else {return false; } 
  } 
  
function mousehandler(e)
  { 
    if(EnableRightClick==1) { return true; } 
    var myevent = (isNS) ? e : event; 
    var eventbutton = (isNS) ? myevent.which : myevent.button; 
    if((eventbutton==2)||(eventbutton==3)) { return false; }
  } 

document.oncontextmenu = mischandler; 
document.onmousedown = mousehandler; 
document.onmouseup = mousehandler; 


//////////////////////////////////////////////////////////////////////////////////////////
//popup functions


function appeal() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/urdu/thnb/p5/1.htm",'_blank','width=760,height=560,resizable=no,scrollbars=yes, z-lock=1')
}


function legalpp() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/legal/privacy.htm",'_blank','width=630,height=500,resizable=no,scrollbars=yes, z-lock=1')
}

function legalaup() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/legal/aup.htm",'_blank','width=630,height=500,resizable=no,scrollbars=yes, z-lock=1')
}

function legalcr() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/legal/copyrights.htm",'_blank','width=630,height=500,resizable=no,scrollbars=yes, z-lock=1')
}

function legaldisc() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/legal/privacy.htm#DISCLAIMER",'_blank','width=630,height=500,resizable=no,scrollbars=yes, z-lock=1')
}

function legalcrcomp() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/legal/crcomp.htm",'_blank','width=630,height=500,resizable=no,scrollbars=yes, z-lock=1')
}

function contact() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/contact/post.htm",'_blank','width=554,height=450,resizable=no,scrollbars=no, z-lock=1')
}

function feedback() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/contact/feedback.htm",'_blank','width=554,height=450,resizable=no,scrollbars=no, z-lock=1')
}

function sub_ml() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/subscription/ml.htm",'_blank','width=554,height=450,resizable=no,scrollbars=no, z-lock=1')
}

function sub_nl() { 
NFW = window.open("subscription/nl.htm",'_blank','width=554,height=450,resizable=no,scrollbars=no, z-lock=1')
}

function register() { 
NFW = window.open("http://www.mehnat.com/blog/wp-register.php",'_blank','width=366,height=498,resizable=no,scrollbars=no, z-lock=1')
}

function saddam() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/saddam/video.htm",'_blank','width=426,height=391,resizable=no,scrollbars=no, z-lock=1')
}

function trans() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/saddam/trans.htm",'_blank','width=551,height=483,resizable=no,scrollbars=no, z-lock=1')
}

function brb() { 
NFW = window.open("http://www.mehnat.com/haqeeqat/brb.htm",'_blank','width=554,height=450,resizable=no,scrollbars=no, z-lock=1')
}
