////// NO RYTCLICK  /////////////

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


function commitFlashObject(_obj, _container){
	_output=""
	_paramoutput=""
	_src=""
	_ver=""
	for(_cO in _obj){
		_output+=_cO+"=\""+_obj[_cO]+"\" "
		_paramoutput+="<param name="+_cO+" value=\""+_obj[_cO]+"\">";
		if(_cO=="movie")_src="src=\""+_obj[_cO]+"\"";
		if(_cO=="version")_ver=_obj[_cO];
	}
	if(_ver=="")_ver="8,0,0,0"
	ihtm="<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_ver+" "+_output+">\n"
	ihtm+=_paramoutput+"\n"
	ihtm+="<embed "+_src+" pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash "+_output+">\n";
	ihtm+="</embed>\n";
	ihtm+="</object>\n";
	document.getElementById(_container).innerHTML=ihtm	
}

////// SEARCH /////////////
function advisory() 
{
 adv=window.open("advisory.htm", "advisory", "top=5,left=5,width=200,height=130");
 adv.focus();


}
function validate()
{
	vkeywords=document.searchform.keywords.value;
	vsite=document.searchform.site.value;

	if (vkeywords=="")
	{
		alert("Please enter text/s to search...");		
		return false;
	}
	else if ((vkeywords!="") && (vsite==1))
	{
		return true;
	}
	else if ((vkeywords!="") && (vsite==2))
	{
		googleurl="http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q="+vkeywords;
		sgoogle = window.open(googleurl,"google","");
		sgoogle.focus();
		return false;
	}

	else if ((vkeywords!="") && (vsite==3))
	{
		yahoourl="http://www.yahoo.com/r/sx/*-http://search.yahoo.com/bin/search?p="+vkeywords;
		syahoo = window.open(yahoourl,"yahoo","");
		syahoo.focus();
		return false;
	}
	else if ((vkeywords!="") && (vsite==4))
	{
		yeheyurl="http://www.yehey.com/search/search.asp?key="+vkeywords+"&fb=1";
		syehey = window.open(yeheyurl,"yehey","");
		syehey.focus();
		return false;
	}	
}


