function ow(url,g,y,s)
{
	 if(!s)s=1;else s=0;if(!g)g=320;if(!y)y=200;var w = window.open(url,"_blank","directories=0,location=0,menubar=0,scrollbars="+s+",resizeable=0,status=0,toolbar=0,width="+g.toString()+",height="+y.toString());w.focus();
}



function cc(item, color)
{
	item.style.background = color;
}
function menuStart()
{
	document.writeln("<table width='100%' cellpadding='0' cellspacing='0'>");
}

function menuItem(t,v,lt)
{
	if(!lt) lt = "right"
	document.writeln("<tr><td class='menu' onclick='cc(this, \"menu_down\");cL(\""+t+"\",\""+lt+"\");' onmouseover='cc(this, \"menu_hover\")' onmouseout='cc(this, \"menu\")'>"+v+"</td></tr>");
}

function sevivonMenuItem(t,v,imgid)
{
	document.writeln("<tr><td height='25' class='menu' onMouseOver='changeLeftMenuBack(this, 1)' onMouseOut='changeLeftMenuBack(this, 0)' style='padding-left:10; '><img src='img/leftMenuSquare.gif' hspace='5' vspace='2'><a href='"+t+"' class='leftMenu'>"+v+"</a></td></tr><tr><td height='1' style='height: 1px;background:#ffffff'></td></tr>");
}
				
function menuEnd()
{
	document.writeln("<table width='100%' cellpadding='0' cellspacing='0'>");
}

function changeL(link)
{
	document.location.replace(link);
}


function cL(link,lt)
{
	if(lt == "top")
		parent.location.replace(link);
	else
		parent.right.location.replace(link);
}


function cc(obj, className)
{
	obj.className = className;
}

function hi()
{
	a = 3;
}

function validateCel(obj)
{
	if(obj.cid.value == '')
	{
		alert('Lütfen bir özel gün seçin!');
		obj.cid.focus();
		return(false);
	}

	return (true);
}

function validateEmail(theinput)
{
	 s=theinput.value
	 if(s.search)
	 {
	  return (s.search(new RegExp("^([a-z0-9_]|\-|\\.)+@(([a-z0-9_]|\-)+\\.)+[a-z]{2,4}$","gi"))>=0)
	 }
	 if(s.indexOf)
	 {
	  at_character=s.indexOf('@')
	  if(at_character<=0 || at_character+4>s.length)
	   return false
	 }
	 if(s.length<6)
	  return false
	 else
	  return true
}

function validateRav(obj)
{
		if(obj.namesurname.value == '')
		{
			alert('Lütfen Adınızı, Soyadınızı Giriniz!');
			obj.namesurname.focus();
			return(false);
		}
		
		if(obj.email.value == '')
		{
			alert('Lütfen E-posta adresinizi Giriniz!');
			obj.email.focus();
			return(false);		
		}
		else
			if (!validateEmail(obj.email)) 
			{
				alert('Lütfen Geçerli bir E-posta adresi Giriniz!');
				obj.email.focus();
				return(false);		
			}
			
		if(obj.question.value == '')
		{
			alert('Lütfen Sorunuzu Giriniz!');
			obj.question.focus();
			return(false);		
		}
	return (true);
}



function changeLeftMenuBack(obj, flag)
{
	if (flag == 1)
	{
		obj.style.backgroundImage = "url()";
		obj.style.backgroundColor = "#28557F";
		
	}
	else
	{
		obj.style.backgroundImage = "url(img/leftMenuBack.jpg)";
		obj.style.backgroundColor = "";
	}
}