//Resim Yukleme v1.0 - sayfanin belli yerinde formu gösterir ve upload eder... 

// Bu scriptin altina koyulur---> 
//<DIV ID="pleasewaitScreen" STYLE="position:absolute;z-index:11;top:10%;left:22%;visibility:hidden"></DIV>

function do_totals1()
{
	document.getElementById("pleasewaitScreen").style.pixelTop = (document.body.scrollTop + 50);
	document.getElementById("pleasewaitScreen").style.visibility="visible";
	//document.getElementById("pleasewaitScreen").innerHTML="<iframe src=/expressLister/imageUploadForm.jsp?id="+id+" > </iframe>";
	  document.getElementById("pleasewaitScreen").innerHTML=" <TABLE BGCOLOR= #000000  BORDER= 2  BORDERCOLOR= #000000  CELLPADDING= 1 CELLSPACING= 0  HEIGHT= 70  WIDTH= 220  ID= Table1 ><TR><TD WIDTH= 100%  HEIGHT= 100%  class= f1  style= font-size:14px;padding:5px;background:url(/images/bg12.png)   ALIGN= left  VALIGN= MIDDLE >&nbsp;&nbsp;&nbsp;Avatar Y&uuml;kle<form name=uploadForm action=/utils/upload.jsp enctype=multipart/form-data method=post  >&nbsp;&nbsp;<input type=file name=file align=left><br /><br><input TYPE=Button name='Upload'Value='Y&uuml;kle' onClick=uploadForm.Upload.value='Y&uuml;kleniyor...';document.uploadForm.action='/utils/upload.jsp';document.uploadForm.submit()><input type=button value=Kapat onclick=do_totals2()> </form> </TD> </TR>  </TABLE>	";
 }	
 function do_totals2()
{
lengthy_calculation();
document.getElementById("pleasewaitScreen").style.visibility="hidden";
}

/*function setAction(){
	var temp=document.getElementById("url").value;
	document.uploadForm.action="/utils/upload.jsp?url="+temp+"";
}*/
function lengthy_calculation()
{
	var x,y
 	for(x=0;x<500000;x++)
  	{
		y += (x * y) / (y - x);			
    }
}

function askConfirm()
{
var answer= confirm("Eminmisiniz?");	
return answer;
}
 

function popGameImage(url,name) {
	newwindow=window.open(url,'name','height=600,width=600,resizable=1,scrollbars=1');
	newwindow.document.title=' '+name+' ';
	newwindow.document.write("<body bgcolor=#000000><div align=center >"+
							 "<img src='"+url+"' width=400 height=400><br><br>"+
							 "<a href='#' onclick=window.location='"+url+"'; style='color:#FABF45'>Gerçek Boyut</a>&nbsp;&nbsp;&nbsp;"+
							 "<a href='#' onclick=window.close(); style='color:#FAAD45'>Kapat</a>"+
							 "</div></body>");
	if (window.focus) {newwindow.focus()}
	return false;
}

 
 

 
