function ch_iframe(vv){
	document.all.view_frame.src = vv;
}

function WriteEmbed(emb_id){ 
    document.write(document.getElementById(emb_id).value);
}

function WriteFlash(id , SrcName, WidSize, HeightSize){
	document.write('<textarea id=' +id+ ' style="display:none;" cols="0" rows="0">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width=' +WidSize+ ' height=' +HeightSize+'>');
	document.write('<param name="movie" value=' +SrcName+ '>');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
  document.write('<param name="allowFullScreen" value="false">');

	document.write('<embed src=' +SrcName+ ' quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width='+WidSize+' height='+HeightSize+'></embed>');
	document.write('</object>');
	document.write('</textarea>');
}

var oldFn = "";
function resizeFrame(name) {
 var oBody = document.body;
 var min_height = 100;
 var min_width = 900;
 var i_height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight);
 var i_width = oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth);
 if(i_height < min_height) i_height = min_height;
 if(i_width < min_width) i_width = min_width;
 window.resizeTo(i_width,i_height);
}
if(window.onload != null){
  // oldFn = new String(window.onload);
  // oldFn = oldFn.substring(22,oldFn.length-2);
}
