
function noHarvest(strUser,strDomain,strText,strSubj,strExtra) {
  if (strDomain == "" || arguments.length < 2) strDomain = location.host.replace("www.","");
  if (strText == "" || arguments.length < 3) strText = strUser+"@"+strDomain;
  if (arguments.length < 4) strSubj = ""; else strSubj = "?subject="+strSubj;
  if (arguments.length < 5) strExtra = "";
  return "<a "+strExtra+" href=\"mailto:"+strUser+"@"+strDomain+strSubj+"\">"+strText+"</a>";
}

function nnewwin(fileName,winHeight,winWidth,winScroll){
	if ( arguments.length < 3 ) winWidth = 640;
	if ( arguments.length < 4 ) winScroll = 1;
	openParms = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="
	openParms += winScroll + ",resizable=1,width="
	openParms += winWidth + ",height="+winHeight
	windowName = new String(Math.round(Math.random() * 100000));
	window.open(fileName,windowName,openParms)
}

function isValidEmail(emailAddr) {
  if (window.RegExp) {
    var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)";
    var reg2str = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$";
    var reg1 = new RegExp(reg1str);
    var reg2 = new RegExp(reg2str);
    if (!reg1.test(emailAddr) && reg2.test(emailAddr)) return true;
  } else if (emailAddr.indexOf("@") > 0) return true;
  return false;
}

function mini1(fileName,windowName){
	openParms = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=300"
	window.open(fileName,windowName,openParms)
}


function mini2(fileName,windowName){
	openParms = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=640,height=480"
	window.open(fileName,windowName,openParms)
}


function mini3(fileName,windowName){
	openParms = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=600"
	window.open(fileName,windowName,openParms)
}



browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

//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="Copyright The IT Pro - All Pictures displayed on this website are copyright protected. Copying of Content / Pictures is strictly prohibited.";

///////////////////////////////////
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")
