﻿function pencere(name, url, width, height, resizable, scrollbars, titlebar)
{
	var mcx = null;
	mcx=window.open(url, name ,'width=' + width + ',height=' + height + ',status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=' + resizable + ',scrollbars=' +  scrollbars + ',titlebar=' + titlebar + ',alwaysRaised=yes,screenX=0,screenY=0,left=75,top=100');
	mcx.focus();
}
function pencereImg(url)
{
	var mcxImg = null;
	mcxImg=window.open(url, 'Haspert' ,'width=500,height=400,status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=yes,scrollbars=yes,titlebar=yes,alwaysRaised=yes,screenX=0,screenY=0,left=75,top=100');
	mcxImg.focus();
}
function pencereArac(id)
{
	var mcx = null;
	mcx=window.open('ayrinti.aspx?id='+id, 'Ayrinti' ,'width=650,height=650,status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=no,scrollbars=yes,titlebar=yes,alwaysRaised=yes,screenX=0,screenY=0,left=75,top=100');
	mcx.focus();
}
function pencereMustArac(id)
{
	var mcx = null;
	mcx=window.open('mustayrinti.aspx?id='+id, 'Ayrinti' ,'width=650,height=650,status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=no,scrollbars=yes,titlebar=yes,alwaysRaised=yes,screenX=0,screenY=0,left=75,top=100');
	mcx.focus();
}
function pencereMustAracAdmin(id)
{
	var mcx = null;
	mcx=window.open('mustayrinti.aspx?id='+id, 'Ayrinti' ,'width=650,height=650,status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=no,scrollbars=yes,titlebar=yes,alwaysRaised=yes,screenX=0,screenY=0,left=75,top=100');
	mcx.focus();
}
function pencereOpportunity()
{
	var mcxImg = null;
	mcxImg=window.open('http://pertarac.en-ka.com.tr/Opportunity.aspx', 'Iskur' ,'width=888,height=568,status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=yes,scrollbars=yes,titlebar=yes,alwaysRaised=yes,screenX=0,screenY=0,left=75,top=100');
	mcxImg.focus();
}
function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name)
{
	createCookie(name,"",-1);
}