
var clickmessage="Sorry, right click is restricted!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()


function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

function model(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModalDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

function OpenEmail() 
{
	var email = window.open("emailnew.asp?", "emailwin", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,screenX=400, screenY=400, width=450,height=335,left=0,top=0", true ) 
	email.focus()
}
function SendEmail(toid, subj) 
{
	var strQry = 'emailnew.asp'+'?toid='+toid+'&subject='+subj
	var emailPop = window.open(strQry, "emailwin", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,screenX=400, screenY=400, width=450,height=335,left=0,top=0", true ) 
	emailPop.focus()
}
function OpenSubscribe() 
{
	var subs = window.open("subscribe.htm", "subswin", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,screenX=400, screenY=400, width=370,height=172,left=0,top=0", true ) 
	subs.focus()
}