	
	

function openIMG(x1,y1, wh, fpath) {
	// FF1();
//  newWin= open("", "w1", "width=1, height=1, status=no, toolbar=no, menubar=no, left=0, top=0");
// newWin.close();
   newWin= open("", "w1", "width="+x1+", height="+y1+", status=no, toolbar=no, menubar=no, left=10, top=10");

 newWin.document.open();

  newWin.document.write('<html><head><title>');
  newWin.document.write(wh+'</title></head>');
newWin.document.write('<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" rightmargin=\"0\" topmargin=\"0\" bottommargin=\"0\">');
newWin.document.write('<img align="middle" valign=\"middle\" src=\"'+fpath+'\" alt=\"\" border=\"0\">');  
newWin.document.write('</body></html>');
newWin.document.close();  
FF();	
};


function openSWF(x1,y1,fpath,t) {
	

newWin= open("", "w1", "width="+x1+", height="+y1+", status=no, toolbar=no, menubar=no, left=10, top=10");

  newWin.document.open();
  newWin.document.write('<html><head><title>'+t+'</title></head>');

newWin.document.write('<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" rightmargin=\"0\" topmargin=\"0\" bottommargin=\"0\">');

newWin.document.write('<OBJECT  WIDTH=\"'+x1+'\" HEIGHT=\"'+y1+'\" CODEBASE=\"http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0\">');
newWin.document.write('<PARAM NAME=\"MOVIE\" VALUE=\"'+fpath+'\">');
newWin.document.write('<PARAM NAME=\"PLAY\" VALUE=\"true\">');
newWin.document.write('<PARAM NAME=\"LOOP\" VALUE=\"true\">');
newWin.document.write('<PARAM NAME=\"WMODE\" VALUE=\"opaque\">');
newWin.document.write('<PARAM NAME=\"QUALITY\" VALUE=\"high\">');
newWin.document.write('<EMBED SRC=\"'+fpath+'\" WIDTH=\"'+x1+'\" HEIGHT=\"'+y1+'\" PLAY=\"true\" LOOP=\"true\" WMODE=\"opaque\" QUALITY=\"high\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">');
newWin.document.write('</EMBED>');
newWin.document.write('</OBJECT>');
newWin.document.write('</body></html>');
newWin.document.close();  
};


function FF(){
if (!newWin.closed)
	newWin.focus()
}
function FF1(){
alert(window.top.name)
//var newWin
//if (newWin!=Null)
//newWin.close()
}

