//页面隐含右键功能及选择功能
function iGetPublic(){
	window.ClearEvent=function(){event.cancelBubble=false;var sSrcTagName=event.srcElement.tagName.toLowerCase();
	return (sSrcTagName=="textarea" || sSrcTagName=="input" || sSrcTagName=="select");}
	window.ClearKey=function(){event.cancelBubble=false;var iKeyCode=event.keyCode;return !(iKeyCode==78 && event.ctrlKey);}
	with (window.document){oncontextmenu=onselectstart=ondragstart=window.ClearEvent;onkeydown=window.ClearKey;}
}
//iGetPublic();

function iWrite(pStr){
	document.write(pStr);
}

//Flash插件免激活
function iGetFlash(pFileName,pWidth,pHeight){
	var tStr;
	tStr = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' WIDTH='" + pWidth + "' HEIGHT='" + pHeight + "' id='menu'>" + "<PARAM NAME=movie VALUE='" + pFileName + "'>" + "<PARAM NAME=menu VALUE=false>" + "<PARAM NAME=quality VALUE=High>" + "<PARAM NAME=wmode VALUE=transparent>" + "<PARAM NAME=bgcolor VALUE=#011d28>" + "<EMBED src='" + pFileName + "' menu=false quality=High wmode=transparent bgcolor=#011d28 WIDTH='" + pWidth + "' HEIGHT='" + pHeight + "' NAME='menu' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>" + "</OBJECT>";
	iWrite(tStr);
}

//选项反选
function iCheck(pName,pMin,pMax,pBoolean){
	var i
	for(i=pMin; i<=pMax; i++){
		if (document.all(pName + i).disabled==false){
			if (document.all(pName + i).checked==true) {
				document.all(pName + i).checked = false;
			}
			else{
				document.all(pName + i).checked = true;
			}
		}
	}
}

//QQ调用
function QQ(){
	var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=67249dcea9eb71274b49ed5b3cd3639f22315a99d91ed542a8f99c1bb0b061e1';
	var oldscript=document.getElementById('testJs');
	var newscript=document.createElement('script');
	newscript.setAttribute('type','text/javascript'); 
	newscript.setAttribute('id', 'testJs');
	newscript.setAttribute('src',tempSrc);
	if(oldscript == null){
		document.body.appendChild(newscript);
		}
		else{
			oldscript.parentNode.replaceChild(newscript, oldscript);
			}
			return false;
}

//7cd7c4f0fe8acae4062cbd98fc23e05215cc5594a221501b7b38659072835ce945b4f9f36e5934f1d1947fab8a3f5e78c62bcf3745e9b29bd588b115c6a8a590
function QQ(sigkey)
{
	var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey='+sigkey;
	var oldscript=document.getElementById('testJs');
	var newscript=document.createElement('script');
	newscript.setAttribute('type','text/javascript'); 
	newscript.setAttribute('id', 'testJs');
	newscript.setAttribute('src',tempSrc);
	if(oldscript == null){
		document.body.appendChild(newscript);
		}
	else{
		oldscript.parentNode.replaceChild(newscript, oldscript);
		}
	return false;
}