<!--

var imgpresrc = new Array();
var imgpre = new Array();

function wopen(curl,cname,cpara)
{
   linkopen = window.open("",cname,cpara);
   linkopen.location.href = curl;
}

function imgswp(img,csrc)
{
  
  for( i=0 ; i < document.images.length; i++)
  {
     if( document.images[i].name == img )
     {
	document.images[i].src = csrc;
	break;
     }
  }
}

function preloadimg()
{
  
  for( i=0 ; i < imgpresrc.length; i++)
  {
	imgpre[i] = new Image();
	imgpre[i].src = imgpresrc[i];
  }
	
}

function urljump(curl,cself,ctarget,cnpara){
  
  if( curl == '' ) return (false);
  
  if( curl.indexOf('cp_tpl='+cself,curl) >= 0){
  	eval("window.location='"+curl+"'");
  }
  else{

  	eval("window.parent.frames['"+ctarget+"'].location='"+curl+"'");

	if( !(cnpara == '') ){
		regex = new RegExp(cnpara+"=(.+)") ;
		cstr = window.location.href;
		if( cstr.indexOf(cnpara+'=') >= 0 ){
			cnewstr = cstr.replace(regex, curl.substr(curl.indexOf(cnpara+'=')));
	  		eval("window.location='"+cnewstr+"'");
	  	}
	}
  }

}

function openWin(url, windowname, w, h) {
 newWin=window.open(url, windowname, "scrollbars=yes,width=" + w + ",height=" + h)
 newWin.focus()
}
function openWinsc(url, windowname, w, h) {
 newWin=window.open(url, windowname, "scrollbars=no,width=" + w + ",height=" + h)
 newWin.focus()
}



//-->

