var message="ห้ามคลิ๊กขวาคับ";// Message for the alert box
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);return false;}}
if (document.layers) {
if (e.which == 3) {
alert(message);return false;
}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);
}document.onmousedown=click;
// -->


//ห้ามคลุมดำ
/*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
}
*/
function linkurl(path){
	switch(path){
	case "link1":
	location.href="http://www.lpc.rmutl.ac.th/";
	break;
	case "link2":
	location.href="http://www.lpc.rmutl.ac.th/library/index.php";
	break;
	case "link3":
	location.href="http://www.lpc.rmutl.ac.th/library/index.php?name=lib&file=about";
	break;
	case "link4":
	location.href="http://www.lpc.rmutl.ac.th/library/index.php?name=lib&file=serviceus";
	break;
	case "link5":
	location.href="http://www.lpc.rmutl.ac.th/library/index.php?name=news";
	break;
	case "link6":
	location.href="http://www.lpc.rmutl.ac.th/library/index.php?name=lib&file=databaseonline";
	break;
	case "link7":
	location.href="http://www.lpc.rmutl.ac.th/library/index.php?name=lib&file=search";
	break;
	
	default:
	location.href="http://www.lpc.rmutl.ac.th/library/index.php";
	break;
	}

}

