function win(url, name, width, height, sbar, resize, status)
{
	var t = (screen.height - height) / 2;
	var l = (screen.width - width) / 2;
	eval(window.open(url,name,"toolbar=0,location=0,directories=0,status=" + status +",menubar=0,scrollbars=" + sbar + ",resizable=" + resize + ",width=" + width + ",height=" + height + ",screenX=0,screenY=0,top="+t+",left="+l));
}
function go(url)
{
	top.location.href = url;
}
function goopener(url)
{
	if (top.opener != null)
	{
		top.opener.location.href = url;
	}
	else
	{
		window.open(url);
	}
}
function pic(name)
{
	win("/resim.php?name=" + name, "resim", 250, 250, 0,0,0);
}
function resizeToImage( i )
{
	var o = document.getElementById( i );
	if ( o == null ) // image sistemde bulunamamis olabilir... [99]
	{
		window.resizeTo(250,250);
		window.moveTo((screen.width - 250) / 2,(screen.height - 250) / 2);
		return;
	}
	
	var w = o.width+30;
	if (w < 550)
	{
		w = 550;
	}
	var h = o.height+500;
	window.resizeTo(w,h);
	window.moveTo((screen.width - w) / 2,(screen.height - h) / 2);
}
function validateLogin ( f )
{
		if(f.username.value == "" || f.password.value == "")
		{
			alert("Lütfen giriş bilgilerinizi eksiksiz giriniz!");
			f.username.focus();
			return false;
		}
}
function onLoad()
{
	changeBg();
	for (i = 0; i < document.forms.length; i++)
	{
		f = document.forms[i];
		for (j = 0; j < f.elements.length; j++)
		{
			element = f.elements[j];
			if ( element.getAttribute("dofocus") != "false" && ((element.tagName == "INPUT" && ( element.getAttribute("type") == "text" || element.getAttribute("type") == "password" )) || element.tagName == "TEXTAREA" || element.tagName == "SELECT"))
			{
				element.onfocus = inputFocus;
				element.onblur = inputBlur;
			}
		}
	}
}
function inputFocus()
{
	window.event.srcElement.style.backgroundColor = "yellow";
}
function inputBlur()
{
	window.event.srcElement.style.backgroundColor = "white";
}
function embedSwf(id, url, objectWidth, objectHeight, embedWidth, embedHeight)
{
	document.write("<object id='"+id+"' style='z-index:999' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+objectWidth+"' height='"+objectHeight+"'>");
	document.write("<param name='movie' value='"+url+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='menu' value='false'>");
	document.write("<embed src='"+url+"' quality='high' menu='false' wmode='transparent' width='"+embedWidth+"' height='"+embedHeight+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>		</embed>");
	document.write("</object>");
}
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
