if (navigator.appName == "Microsoft Internet Explorer") {
	document.write('<style type="text/css">');
	document.write('div.main { height: 100%; }');
	document.write('div.index { height: 460px; }');
	document.write('</style>');
}

function openCheckSite(url) {
	window.open('site_check.php?opf=' + url);
}

//blank
function cBlank() {
	window.open(this.href);
	return false;
}

function setBlank() {
	if(document.getElementsByTagName) {
		var links = document.getElementsByTagName('A');
		for(i = 0; i < links.length; i++) {
			if (links[i].attributes["class"] && links[i].attributes["class"].value.match("blank")) {
				links[i].onclick = cBlank;
			}
		}
	}
}

function windowLoad() {
	setBlank();
}

window.onload = windowLoad;

function getAnchor(id) {
	window.scrollTo(0, document.getElementById(id).offsetTop);
}

var msgNan = '';
function nan(obj) {
	r = true; 
	if (isNaN(obj.value.replace(/\s/g, '')) && obj.value != "-") { 
		var i = obj.value.length; 
		while (isNaN(obj.value.replace(/\s/g, ''))) { 
			i--; 
			obj.value = obj.value.substring(0, i); 
		} 
		window.alert(msgNan);
		r = false; 
	} 
	return r;
} 

var msgDel = '';
function deleteConfirm(txt) {
	return confirm(msgDel + ' ' + txt + '?');
}