/**
SET OF USEFUL FUNCTIONS
 */
function getUrlVars(){
	varpos=window.location.href.indexOf('?');
	if(varpos>0){
		var vars = [], hash;
		//var txt="";
		var hashes = window.location.href.slice(varpos + 1)
		//txt+="\rpresplit:"+hashes;
		hashes=hashes.split('&');
		
		for(var i = 0; i < hashes.length; i++){
			hash = hashes[i].split('=');
			vars.push({prop:hash[0], val:hash[1]});
			//txt+="\r\rhashes["+i+"]='"+hashes[i]+"'---->"+hash[0]+":"+hash[1];
		}
		//c_alert(txt);
		return vars;
	}
}

function c_alert(txt){
	//
	//chrome specific instruction
	var is_chrome = (navigator.userAgent.toLowerCase().indexOf('chrome') > -1);
	//alert(is_chrome);
	if(is_chrome){
		//alert(txt);
	}
}