/*
<!--
function key(){ 
if(event.shiftKey){
window.close();}
//½ûÖ¹shift
if(event.altKey){
window.close();}
//½ûÖ¹alt
//if(event.ctrlKey){
//window.close();}
//½ûÖ¹ctrl
return false;}
//document.onkeydown=key;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
//swordmaple javascript article.
function nocontextmenu(){
event.cancelBubble = true
event.returnValue = false;
return false;}
function norightclick(e){
if (window.Event){
if (e.which == 2 || e.which == 3)
return false;}
else
if (event.button == 2 || event.button == 3){
event.cancelBubble = true
event.returnValue = false;
return false;}
}
//½ûÖ¹ÓÒ¼ü
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others
//-->
*/
<!--
/**************** start Public ******************************/
//check LOC
//Disable KEY N Selected
///document.oncontextmenu=function(){
	///with(event.srcElement)return(tagName=="TEXTAREA"||(tagName=="INPUT"&&type=="text"));
	//event.cancelBubble=true;event.returnValue=false;return false;
///}
///document.onkeydown=function(){
	//event.keyCode==27||event.keyCode==78||event.shiftKey||
	///if(event.altKey||event.ctrlKey)return false;
///}
///document.onselectstart=function(){
	///return false;
///}
///document.onpaste=function(){
	//return false;
///}
///document.onmousedown=function(){
	///if(event.button==2||event.button==3){
		///event.cancelBubble=true;
		///event.returnValue=false;
		///return false;
	///}
///}

//Jump menu by MM
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".top.location='"+selObj.options[selObj.selectedIndex].value+"'");
	if(restore)selObj.selectedIndex=0;
}
function random(n){
	var r=r1="";
	for(var i=1;i<n;i++){r1=Math.random()+"";r1=r1.substr(2,r1.length-2);r=r+r1;}
	return r
}
var si=random(5)

//Change status bar text (demian)
function makestatussay(txt){self.status=txt}
function makestatusclear(){self.status=""}

//Unsure what this is (demian)
function newImage(arg){
	if(document.images){
		rslt=new Image();
		rslt.src=arg;
		return rslt;
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function changeImages(){
	if(document.images&&(preloadFlag))for(var i=0;i<changeImages.arguments.length;i+=2)document[changeImages.arguments[i]].src=changeImages.arguments[i+1];
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_preloadImages(){ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

/**************** End Public ******************************/

/**************** Start QSChina Menu ****************************/
//Start_Big_Menu
function QSChina_Menu_Flash_Index(){top.location="/";}
function QSChina_Menu_Flash_Offer(){top.location="/html/cls_2.html";}
function QSChina_Menu_Flash_Company(){top.location="/html/cls_1.html";}
function QSChina_Menu_Flash_Product(){top.location="/html/cls_0.html";}
function QSChina_Menu_Flash_Trade(){top.location="/html/elec.html";}
function QSChina_Menu_Flash_Bbs(){top.location="/CLS.dll?UM=IC";}
function QSChina_Menu_Flash_Qsmem(){window.open("http://corp.qschina.com");}
function QSChina_Menu_Flash_NewProcudt(){top.location="http://club.qschina.com/";}
function QSChina_Menu_Flash_btn3721(){var win3721=window.open("");win3721.top.location="http://cns.3721.com/cns.dll?fw=cm2&name=QSCHINA"}
//End_Big_Menu

//TOP_LINK
function QSChina_Menu_Flash_AdService(){}
function QSChina_Menu_Flash_QSCBS(){}
function QSChina_Menu_Flash_REGMEM(){top.location="/user/UserReg.asp?Done=&MemberREG";}
function QSChina_Menu_Flash_QSCREG(){top.location="/user/UserReg.asp?RP=/&UserReset";}
function QSChina_Menu_Flash_QSCAngel(){top.location="/qsc/Angel.asp?Done=default&sid="+si;}
function QSChina_Menu_Flash_guest_goto(){top.location="/qsc/Angel.asp?TnT=0&ShowMail";}
//End

//Start Sub Menu Index
function QSChina_Menu_Flash_Index_index0(){top.location="/offer/todayNewOff.asp";}
function QSChina_Menu_Flash_Index_index1(){top.location="/qsc/Angel.asp?type=5&Done=Offer";}
function QSChina_Menu_Flash_Index_index2(){top.location="/user/CreateFolder.asp";}
function QSChina_Menu_Flash_Index_index3(){top.location="/qsc/Angel.asp?type=2&Done=Company"}
function QSChina_Menu_Flash_Index_index4(){}
//End Sub Menu Index

//Start Sub Menu Offer
function QSChina_Menu_Flash_Offer_offer0(){QSChina_Menu_Flash_Offer()}
function QSChina_Menu_Flash_Offer_offer1(){top.location="/qsc/Angel.asp?type=5&Done=Offer";}
function QSChina_Menu_Flash_Offer_offer2(){top.location="/offer/todayNewOff.asp";}
function QSChina_Menu_Flash_Offer_offer3(){top.location="/offer/intoOffer.asp?Buyer"}
function QSChina_Menu_Flash_Offer_offer4(){top.location="/offer/intoOffer.asp?Seller"}
function QSChina_Menu_Flash_Offer_offer5(){top.location="/qsc/Angel.asp?type=1&sty=modifyAll&Done=BizSubscription1";}
function QSChina_Menu_Flash_Offer_offer6(){top.location="/help/service.asp?link=5shjzx";}
//End Sub Menu Offer

//Start Sub Menu Comapny
function QSChina_Menu_Flash_Company_company0(){top.location="/qsc/Angel.asp?type=2&Done=Company";}
function QSChina_Menu_Flash_Company_company1(){QSChina_Menu_Flash_Company_company0();}
function QSChina_Menu_Flash_Company_company2(){top.location="/help/service.asp?link=7gshy";}
//End Sub Menu Comapny

//Start Sub Menu Product
function QSChina_Menu_Flash_Product_product0(){QSChina_Menu_Flash_Product();}
function QSChina_Menu_Flash_Product_product1(){top.location="/user/CreateFolder.asp";}
function QSChina_Menu_Flash_Product_product2(){top.location="/user/CreateFolder.asp";}
//End Sub Menu Product

//Start Sub Menu Trade
function QSChina_Menu_Flash_Trade_trade0(){top.location="/html/strade_bbb.html";}
function QSChina_Menu_Flash_Trade_trade1(){top.location="/html/strade_ccc.html";}
function QSChina_Menu_Flash_Trade_trade2(){top.location="/html/strade_ddd.html";}
function QSChina_Menu_Flash_Trade_trade3(){top.location="/html/strade_eee.html";}
function QSChina_Menu_Flash_Trade_trade4(){top.location="/html/strade_fff.html";}
function QSChina_Menu_Flash_Trade_trade5(){top.location="/html/strade_aaa.html";}
function QSChina_Menu_Flash_Trade_trade6(){top.location="/html/strade_hhh.html";}


//End Sub Menu Trade

//Start Sub Menu Bbs	// £ºIC Base
function QSChina_Menu_Flash_Bbs_bbs0(){
//top.location="/CLS.dll?UM=3&vSite="+escape(" the Base Elegance ");
}
function QSChina_Menu_Flash_Bbs_bbs1(){
//top.location="/CLS.dll?UM=3&vSite="+escape(" Products of Independent property right ");
}
function QSChina_Menu_Flash_Bbs_bbs2(){
//top.location="/CLS.dll?UM=3&vSite="+escape(" Ellite Enterprise ");
}
function QSChina_Menu_Flash_Bbs_bbs3(){
//top.location="/CLS.dll?UM=3&vSite="+escape(" Information dynamic ");
}

//End Sub Menu Bbs

//Start Sub Menu NewProcudt
function QSChina_Menu_Flash_newprocudt_newprocudt0(){top.location="http://club.qschina.com/list.asp?boardid=1";}
function QSChina_Menu_Flash_newprocudt_newprocudt1(){top.location="http://club.qschina.com/list.asp?boardid=4";}
function QSChina_Menu_Flash_newprocudt_newprocudt2(){top.location="http://club.qschina.com/list.asp?boardid=7";}
function QSChina_Menu_Flash_newprocudt_newprocudt3(){top.location="http://club.qschina.com/list.asp?boardid=14";}
function QSChina_Menu_Flash_newprocudt_newprocudt4(){top.location="http://club.qschina.com/list.asp?boardid=17";}
function QSChina_Menu_Flash_newprocudt_newprocudt5(){top.location="http://club.qschina.com/list.asp?boardid=20";}

function QSChina_Menu_Flash_Qsmem_Qsmem0(){}
function QSChina_Menu_Flash_Qsmem_Qsmem1(){}
function QSChina_Menu_Flash_Qsmem_Qsmem2(){}
function QSChina_Menu_Flash_Qsmem_Qsmem3(){}
function QSChina_Menu_Flash_Qsmem_Qsmem4(){}
function QSChina_Menu_Flash_Qsmem_Qsmem5(){}


//Start Sub Menu Qsmem

//End Sub Menu Qsmem

//start other
function getActionReturnAd(){top.location="/";}
//end other
/**************** End QSChina Menu ****************************/

/**************** /user/SendMail.asp ******************/
function SendMailPro(n,t){
	var tovStr = document.NewMailForm.to.value
	
	if (document.NewMailForm.to.value == "" || document.NewMailForm.subj.value == ""){
		alert(" Please fill in the address and theme of the addressee  ");
	}else{
		var filter = /"|'/g;
		tovStr = tovStr.replace(filter, "");
		
		if (tovStr != document.NewMailForm.to.value){
			alert(" Warn: do not input illegal character£¡ Thanks ");
			document.NewMailForm.to.value=tovStr;
			return false;
		}else{
			toStr=document.NewMailForm.to.value;
			if (toStr.split(",").length>=t){
				alert(" do not over "+t+" members or email address £¡")
				return false;
			}else if (toStr.split(",").length>=eval(parseInt(t/2))){
				if (confirm(" Warn: Do not input too many member's name or addressee's address. Thanks £¡")){
				showSending();
				document.NewMailForm.submit();
				}
			}else{
				showSending();
				if(n==1)return n;else document.NewMailForm.submit();
			}
		}
	}
}

function MailOpenD(id){
	//var M_Win=open(
	top.location='?MM_Detail='+id;	//,'MailWindow','width=600,height=350,resizable=yes,scrollbars=yes');M_Win.focus();
}

function strLength(str){
	var len=0,i;
	for(i=0;i<str.length;i++)if(str.charCodeAt(i)>255)len+=2;else len++;
	return parseInt(len/2);
}

function getStrLen(str,ls){
	var l,t,i,ss,s=ls*2;
	l=str.length;
	t=0;
	for(i=1;i<=l;i++){
		c=str.charCodeAt(i);
		if(c>255)t+=2;else t++;
		if(t>=s){ss=str.substr(0,i);break;}else ss=str+" "
	}
	return ss
}

function chkBox(frm){
	if(typeof(frm.length)=='undefined'&&frm.value!='')frm.checked=true;else{
		for(var i=0;i<frm.length;i++)frm[i].checked=!frm[frm.length-1].checked;
	}
}

function W_MailTimeOut(t){
	var sec=0;
	var min=1;
	var flag=0;
	var idt=window.setTimeout("update("+t+","+sec+","+min+","+flag+");",60000);
}
function update(t,sec,min,flag) {
	sec=sec+1;
	if(sec>=60){
		sec=0;min+=1;
	}
	if((min>t)&&(flag==0)){
		focus();
		alert(" If your writing time over "+t+" minutes, please save the draft to avoid lost. ");
		flag=1;
	}
	document.NewMailForm.twinput.value=min+" minutes "+sec;
	idt=window.setTimeout("update("+t+","+sec+","+min+","+flag+");",1000);
}

function fs(f,n){focus();document.forms[f].elements[n].focus();}

function trim(string){
		str=string; 
		if((str!="")&&((str.indexOf(" "))==0)) { 
				str=str.substring(1,str.length); 
				trim(str); 
		}else if((str!="")&&((str.lastIndexOf(" "))==(str.length-1))) { 
				str=str.substring(0,str.length-1); 
				trim(str); 
		} 
		return str; 
}

function chkEmail(strEmail){ 
	var myReg = /^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/; 
	if(myReg.test(strEmail))return true; 
	alert(" Please input the valid Email address £¡")
	return false; 
}

/*****************set right button is nothing****************
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")
****************end right button****************/


//start cookie code
function setCookie (name, value, expires){
	document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() +  "; path=/";
}

function getCookie(name){
	var search;

	search = name + "=";
	offset = document.cookie.indexOf(search);
	if (offset != -1){
		offset += search.length ;
		end = document.cookie.indexOf(";", offset) ;
		if (end == -1)
	        end = document.cookie.length;
        return unescape(document.cookie.substring(offset, end));
	}
	return "";
}

function deleteCookie(name){
	var expdate = new Date();
	expdate.setTime(expdate.getTime() - (86400 * 1000 * 1));
	setCookie(name, "", expdate);
}
//end cookie code


//Start AutoScroll.............
var currentpos,timer;
function sc() {
	clearInterval(timer);
}
function initialize(){
	timer=setInterval("scrollwindow()",1);
}
function scrollwindow(){
	currentpos=document.body.scrollTop;window.scroll(0,++currentpos);
}
//document.onmousedown=sc
//document.ondblclick=initialize
//End AutoScroll...............

function ShowHideDiv(obj){obj.style.display=obj.style.display=="none"?"":"none"}

function goPage(n){top.location="?intCurPage="+n;}

function xxhelp(url){var new1=window.open(url,"help","width=340,height=480,resizable=yes,scrollbars=yes");new1.focus();}

function NewWIN(url,w,h){var NnWIN=window.open(url,"NvWIN","width="+w+",height="+h+",resizable=yes,scrollbars=yes");NnWIN.focus();}

function xopen(url){var xp=open(url,"addr","width=480,height=300,scrollbars=yes,resizable=yes");xp.focus();}

function chkPI(f){
	for(var i=0;i<f.elements.length;i++){
		if(f.elements[i].lag==1){
			if(f.elements[i].value==""){
				if(f.elements[i].name!="SelectCLS"){
					alert(" Please fill in the sheet correctly, Thanks.  ");
					f.elements[i].focus();
				}else{
					alert(" Please select industry category, which is required.  ");
					if(typeof(f.btn_txtCLS)!='undefined')f.btn_txtCLS.focus();
				}
				return false;
			}
		}
	}
	return true;
}

function goto(url){location=url;}

function BSA(BS,val){var ABS=open("");ABS.top.location="/search.dll?CPC=2&Pro_tBS="+BS+"&KeyWord="+escape(val);ABS.focus();}

function CLOSE(){window.opener=null;window.close();}

function mOvr(src,clrOver){
	if(!src.contains(event.fromElement)){
	src.style.cursor='hand';
	src.bgColor=clrOver;
	}
}
function mOut(src,clrIn){
	if(!src.contains(event.toElement)){
	src.style.cursor='default';
	src.bgColor=clrIn;
	}
}
function mClk(src){
	if(event.srcElement.tagName=='TD'){
	src.children.tags('A')[0].click();
	}
}
function chkStr(v,y){
	if(y==0){
		return ! v.match(/[^A-Za-z]/g);
	}else if(y==1){
		return ! v.match(/[^A-Za-z0-9]/g);
	}else{
		return ! v.match(/[^0-9]/g);
	}
}

String.prototype.trim=function(){
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

//***************************Const
var js_txt_QSCMngPUBErrMsg="  Only the professional authentication personage of QSCHINA could release here , please wait , thanks!  "
var txtDeleted44=" This operation can't recover ! Really delete it forever completely?  "
var txtShowDetail=" Display the abstract "
var txtHideDetail=" Hide the abstract "


//***************************




//-->