﻿	function callDummy(target){
		callAjaxResult('./dummy.php?chashe=' + (new Date()).getTime(), target);
	}

	function callGetAjax(src,data,target) {
		callAjaxResult(src + '?' + data + 'chashe=' + (new Date()).getTime(), target);
	}

	function callGetAjaxP(src,data,target,fname) {
		callAjaxResultPost(src + '?' + data + 'chashe=' + (new Date()).getTime(), target,fname);
	}


	
	function callAjaxResult (url, place) {

		myAjax = new Ajax.Request (url,
		{method:'get',onComplete:function(httpObj){
				$(place).innerHTML = httpObj.responseText;
			}
		});
	}

	function callAjaxResultPost (url, place, fname) {
		myAjax = new Ajax.Request (url,
		{method:'post',parameters:Form.serialize(fname),onComplete:function(httpObj){
				$(place).innerHTML = httpObj.responseText;
			}
		});
	}

	function locationHref(url) {
		location.href=url;
	}

