
//=====================================================================
//  Alert message for Logon
//=====================================================================

function nits1()
{
alert("Create / Login to your Account to use Students Link");
}

function nits2()
{
alert("Create / Login to your Account to use Corporates Link");
}

function nits3()
{
alert("Create / Login to your Account to use Institutes Link");
}

function nits4()
{
alert("Create / Login to your Account to use Partners Link");
}

function nits5()
{
alert("Create / Login to your Account to use Publishers Link");
}

function nits6()
{
alert("Create / Login to your Account to use BII Journal Link");
}

function nits7()
{
alert("You have logged in as a Student");
}

function nits8()
{
alert("You have logged in as a Corporate");
}

function nits9()
{
alert("You have logged in as a Institute");
}

function nits10()
{
alert("You have logged in as a Partner");
}

function nits11()
{
alert("You have logged in as a Publisher");
}



//=====================================================================
//  Right Click
//=====================================================================



var message="";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")



//=====================================================================
//  Text field colors change
//=====================================================================


var highlightcolor="#ffffff"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj


var intended=/INPUT|TEXTAREA|SELECT|OPTION/


function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}


function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}



//=====================================================================
//  Open popup Window
//=====================================================================


var win=null;
function NewWindows(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}



//=====================================================================
//  Disable select-text
//=====================================================================
//
//
//function disableselect(e){
//return false
//}
//
//function reEnable(){
//return true
//}
//
//if IE4+
//document.onselectstart=new Function ("return false")
//
//if NS6
//if (window.sidebar){
//document.onmousedown=disableselect
//document.onclick=reEnable
//}
