// JavaScript Document

function setAtt(object,ifVal,setTo) { 
var obj = document.getElementById(object);
if(obj.value==ifVal) obj.value=setTo;
}

function LogOut() {
	document.forms['CloseSession'].submit();
}

function AcceptTerms(){
	var term = document.getElementById('sozlesme');
	if (!term.checked)	return false;
}


function setP(poz) {
	var obj = document.getElementById("position");
	obj.value=poz;
}

function setColor(col) {
	var obj = document.getElementById("color");
	obj.value=col;
}

function CheckForm() {
	var position = document.getElementById("position");
	var color = document.getElementById("color");
	alert(color.value);
	alert(position.value);
	return false;
}