﻿var ErrorMode = true;
var LocaleResources = new Array();

window.onerror = function(Description, Page, Line, Chr) {
	var ErrorText = "Hata oluştu!\n"
	+ "\nAçıklama:\t" + Description
	+ "\nAdres:\t" + Page
	+ "\nSatır:\t" + Line;
	if (ErrorMode) {
		alert(ErrorText);
	}
	else if (OutputMode) {
		ErrorText = ErrorText.replace(/\n/g, "<br>");
		Output(ErrorText);
	}
	return true;
};

function SetFormAction(Url) {
	document.forms.aspnetForm.action = Url;
}

function GetSrcElement(event) {
	SrcElement = event.srcElement || event.target;
	return SrcElement;
}

function GetElementById(Item) {
	if (!Item.id) {
		Item = document.getElementById(Item);
	}
	return Item;
}

function Go(Url) {
	location.href = Url;
}

function Init() {
	//
}
