// BestSafetyApparels.com JavaScript Document

// To prevent visitors come from http://bestsafetyapparel.com
l = window.location.href;
if (l.indexOf("http://bestsafetyapparel.com") >= 0)
{window.location.href = "http://www.bestsafetyapparel.com";}

//********************* enlarge image


function viewimg(txt, img, w, h){

 features = "toolbar=no,location=no,directories=no,status=no,menubar=no," + "scrollbars=yes,resizable=yes,width=" + w + ",height=" + h;
 dlg = window.open ("","Details",features);
 dlg.document.write("<html><head><title>" + txt + " Zoom</title>");
 //dlg.document.write("<scr" + "ipt type=\"text/javascript\" src=\"/lib/yhst-37934209954568//bestsafetyapparels.js\">"); 
 //dlg.document.write("</scr"+"ipt>");  
 dlg.document.write("</head><body bgcolor=white><center>"); 
 dlg.document.write("<table width=100% cellpadding=4 border=0>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<b><font style='font-family: arial, verdana, tahoma, helvetica; font-size: 12px; font-weight: bold'>" + txt + "</font></b><br><br>");
 dlg.document.write("<img src=" + img + ">");
 dlg.document.write("</td></tr>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<font size=1 face=verdana>click to close</font></a>");
 dlg.document.write("</td></tr>");
 dlg.document.write("</table></body></html>");
}



<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Sorry! Context Menu is disabled!";

///////////////////////////////////
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(message);return false")

// --> 



