﻿// JavaScript Document
var omitformtags = ["input", "textarea", "select"]

function disableselect(e){
	for (i = 0; i < omitformtags.length; i++)
	if (omitformtags[i]==(e.target.tagName.toLowerCase()))
		return;
	return false
}

function reEnable(){
	return true
}

if (typeof document.onselectstart=="undefined"){	
	document.onmousedown=disableselect
	document.onmouseup=reEnable
}else{
	document.onmousedown=new Function("return false")
	document.onmouseup=new Function("return false")
}	

document.onselectstart=new Function("return false")
document.onselect=new Function("return false")
document.oncontextmenu=new Function("return false")
