function flash(CateStr, widthSWF, heightSWF) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="'+widthSWF+'" height="'+heightSWF+'" id=ShockwaveFlash1>')
document.write('<param name="movie" value="/flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.writeln('<embed src="/flash/'+CateStr+'" width="'+widthSWF+'" height="'+heightSWF+'" menu=false quality=best pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
document.writeln('</object>')
}


/*function menu(CateStr, widthSWF, heightSWF) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="760" height="70" id=ShockwaveFlash1>')
document.write('<param name="movie" value="/flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.writeln('<embed src="/flash/'+CateStr+'" width="760" height="75" menu=false quality=best pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
document.writeln('</object>')
}
*/

function knowledge(CateStr, widthSWF, heightSWF) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="500" height="20" id=ShockwaveFlash1>')
document.write('<param name="movie" value="/flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.writeln('<embed src="/flash/'+CateStr+'" width="500" height="20" menu=false quality=best pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
document.writeln('</object>')
}


function coms(CateStr, widthSWF, heightSWF) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="195" height="320" id=ShockwaveFlash1>')
document.write('<param name="movie" value="/flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.writeln('<embed src="/flash/'+CateStr+'" width="195" height="320" menu=false quality=best pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
document.writeln('</object>')
}

function auction(CateStr, widthSWF, heightSWF) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="195" height="230" id=ShockwaveFlash1>')
document.write('<param name="movie" value="/flash/'+CateStr+'">')
document.write('<param name="menu" value="false">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.writeln('<embed src="/flash/'+CateStr+'" width="195" height="230" menu=false quality=best pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
document.writeln('</object>')
}

//link
function autoBlur(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="/img") 
document.body.focus(); 
} 
document.onfocusin=autoBlur; 

//new windows
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->



//window close
function closeWin() 
{ 
        self.close(); 
}



/******* Popup Open *******/
function show(url) { 
window.open(url,"","width=1024, height=712, top=0, left=0, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no");
}
function popupOpen(URL,Width,Height){ // id/pw
	var opt = "width="+Width+",height="+Height+",top=100,left=200,scrollbars=no,status=yes";
	window.open(URL,"popup",opt);
}

function bookmark(){
	window.external.AddFavorite('http://freehome.jp', 'FREE HOME');
}

function chat(){
window.open("http://freehome.jp/blablite42/login.php","pop_open","width=800, height=600, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no");
}





///////////////////////////////
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function winClose(){
if(win1Open != null) win1Open.close()
}

function doNothing(){}
//-->


<!--pop up imgages
function displayimage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>nima nyima press</title></head>"
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
}
if(winHandle != null) winHandle.focus()
return winHandle
}





<!-- 
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>products_images</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=cross></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}



function bookmark(){
	window.external.AddFavorite('http://atcatalogue.jp', ' at catalogue');
}


//-->

/*//new window

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}






//img randem
var list= new Array()
list[list.length]='images/sub/sub_img1.gif';   
list[list.length]='images/sub/sub_img2.gif'; 
list[list.length]='images/sub/sub_img3.gif'; 
list[list.length]='images/sub/sub_img4.gif'; 
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
function showimg(){
document.write("<img src='"+list[j]+"' width='199'  height='587'>");  
}



//add site
function bookmark(){
window.external.AddFavorite('http://uk-factory.jp', 'UK-Factory')
}

//iframe
function resizeIframe(fr) {
                fr.setExpression('height',aaa.document.body.scrollHeight);
                fr.setExpression('width',aaa.document.body.scrollWidth);
}
//-->*/



