
// ------ index.php ------------------

function navjump(page, num) {
	var str = "scripts/ipage.php?page="+page;
	if(num) str += "&num="+num;
	//alert(str);	
	iContent.location = str;

}

function callme(page, num) {
	iContent.location = "content/call.htm";
}

// -- form -----
function checkSubmit(form, check) {
	for(var i = 0; i < check.length; i++) {
		if (form[check[i]].value=='') {
			alert('Please fill out all fields which are signed with * ');
			form[check[i]].focus();
			return false;
		}
	}
	return true;
}

// ------ admin php ------------------

function navAdminJump(page, num) {
	var str = "?page=pages&pp="+page;
	if(num) str += "&pn="+num;
	window.location = str;
}


// ------ /index.php ------------------

function checkParent() {
	/*
	var str = '';
	str += "document.location         " +' = ' + document.location + '\n';
	str += "window.location           " +' = ' + window.location + '\n';
	str += "parent.location           " +' = ' + parent.location + '\n';
	str += "document.location.search  " +' = ' + document.location.search + '\n';
	str += "window.location.search    " +' = ' + window.location.search + '\n';
	str += "parent.location.search    " +' = ' + parent.location.search + '\n';
	*/
	if (parent.location==window.location) {
		var newLocation = '../'+window.location.search;
		//str += "newLocation               " +' = ' + newLocation + '\n';
		//alert(str);
		window.location = newLocation;
		
	}else{
		//alert(str);
	}

	
}
