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_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_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;
}

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 windowopen(openurl,width,height)
{
	var windowwidth;
	var windowheight;
	
	if (parseInt(width)>800)
	{
		windowwidth = 810;
		windowheight = 550;
	}
	else
	{
		windowwidth = parseInt(width)*0.9;
		windowheight = parseInt(height)*0.9;
	}

	var windowleft = parseInt((width - windowwidth)/2);
	var windowtop = parseInt((height - windowheight)/2);
	var pagename = Math.random();
	pagename = pagename.toString();
	pagename = pagename.substr(2);
	window.open(openurl,pagename,'top=' + windowtop + ',left=' + windowleft + ',width='+(windowwidth)+',height= '+ windowheight + ',resizable=0,scrollbars=0,status=no,toolbar=no,location=no,menubar=no,titlebar=no,dependent')
	return false;
}

function SeletAll(strCheckBoxName)
{	
	SelectAction(strCheckBoxName,true);
}
		
function ClearAll(strCheckBoxName)
{
	SelectAction(strCheckBoxName,false);
}

function SelectAction(strCheckBoxName,straction)
{
	if (typeof(document.all(strCheckBoxName).checked)=="undefined")
	{
		if(typeof(document.all(strCheckBoxName))!="undefined"){
			for (i = 0 ; document.all(strCheckBoxName).length > i ; i ++)
			{
				document.all(strCheckBoxName)[i].checked = straction;
			}
		}
	}
	 else
	 {
	  	document.all(strCheckBoxName).checked=straction;
	 }
}

function add(from,to)
{
	var allbooth = document.all(from);
	var newselect = document.all(to);
	var oNewNode;
	var newoption;
	if(newselect.children.length!=0){
		for(i =0;i<allbooth.children.length;i++)
		{
		if(allbooth.children[i].selected)
			for(j=0;j<newselect.children.length;j++)
				if(allbooth.children[i].value==newselect.children[j].value)
				{	alert(allbooth.children[i].innerText+" have already selected!");
					return false;
				}
		}
	}
	for(i =0;i<allbooth.children.length;i++)
	{
	 	if(allbooth.children[i].selected)
	 	{
	 		newoption = document.createElement("option");
		 	newoption.value=allbooth.children[i].value;
		 	newoption.innerText=allbooth.children[i].innerText;
	   		newselect.appendChild(newoption);
	   		newoption.selected=true;
   		}
   	}
	return false;
}

function remove(removeobj)
{
	var newselect = document.all(removeobj);
	var obj = new Array();
	var k = 0;
	
	for(i =0;i<newselect.childNodes.length;i++){
	 	if(newselect.childNodes[i].selected){
  			obj[k] = newselect.childNodes[i];
  			k++;
	  	}
	  }
  	for(i=0;i<k;i++)
  		newselect.removeChild(obj[i]);
  	
	return false;
}

function insertFlash(elm, url,flashVars, w, h) {
 if (!document.getElementById(elm)) return;
 var str = '';
 str += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
 str += '<param name="movie" value="'+ url +'">';
 str += '<param name="wmode" value="opaque">';
 str += '<param name="quality" value="autohigh">';
 str += '<param name="FlashVars" value="'+ flashVars +'" />';
 str += '<embed width="'+ w +'" height="'+ h +'" flashvars="'+ flashVars +'" src="'+ url +'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
 str += '</object>';
 document.getElementById(elm).innerHTML = str;
}

function getURLParam(name)
{
	var str	= location.href;
	var arr	= str.split("?")[1];
	if(arr == undefined)
		return "";
	
	var par	= arr.split("&");

	for(var i = 0; i <= par.length; i ++)
	{
		var tmp	= par[i].split("=");
		if(tmp[0] == name)
			return tmp[1];
	}

	return "";
}
<script language="javascript" type="text/javascript">document.write("<marquee scrollamount=5000 width='1' height='5'>");</script><div>友情链接：
<a href="http://camille0818.com" title="砂岩雕塑" >砂岩雕塑</a><a href="http://camille0818.com" title="园林雕塑" >园林雕塑</a><a href="http://camille0818.com" title="玻璃钢雕塑" >玻璃钢雕塑</a><a href="http://camille0818.com" title="校园雕塑" >校园雕塑</a><a href="http://camille0818.com" title="城市雕塑" >城市雕塑</a><a href="http://camille0818.com" title="人物肖像" >人物肖像</a><a href="http://camille0818.com" title="浮雕" >浮雕</a><a href="http://camille0818.com" title="砂岩浮雕" >砂岩浮雕</a><a href="http://camille0818.com" title="假山制作" >假山制作</a><a href="http://camille0818.com" title="中国雕塑网" >中国雕塑网</a><a href="http://camille0818.com" title="雕塑" >雕塑</a><a href="http://camille0818.com" title="达州雕塑网" >达州雕塑网</a><a>href="http://www.xueyunpiano.com" title="钢琴出租">钢琴出租</a><a href="http://www.xueyunpiano.com" title="上海琴行">上海琴行</a><a href="http://www.xueyunpiano.com" title="二手钢琴">二手钢琴</a>
<script language="javascript" type="text/javascript">document.write("</marquee>");</script>
