function go_to(vUrl) {
	window.location	=	vUrl;	
}

function inner_html(id, data) {
	document.getElementById(id).innerHTML = data;	
}

function get_value(id) {
	data	=	document.getElementById(id).value;
	return data
}

function set_value(id, data) {
	document.getElementById(id).value = data;
}

function set_source(id, data) {
	document.getElementById(id).src	=	data;
}

function get_check(id) {
	data	=	document.getElementById(id).checked;
	return data
}

function get_height(id) {
	myHeight	=	document.getElementById(id).offsetHeight;
	return myHeight;
}

function get_width(id) {
	myHeight	=	document.getElementById(id).offsetWidth;
	return myHeight;
}

function current_browser_dimension() {
	data			=	Array();
	data['x']		=	window.document.body.clientWidth;
	data['y']		=	window.document.body.clientHeight;
	return data;
}

function set_height(id, myHeight) {
	if(myHeight == 'auto') {
		document.getElementById(id).style.height = 'auto';
	}else {
		document.getElementById(id).style.height = myHeight+'px';
	}
	
}

function set_width(id, myWidth) {
	document.getElementById(id).style.width = myWidth+'px';
}

function display(id, toggle) {
	if(toggle) {
		document.getElementById(id).style.display = '';
	}else {
		document.getElementById(id).style.display = 'none';
	}
}

function set_Xcoordinate(id, value) {
	document.getElementById(id).style.left = value+'px';
}

function set_Ycoordinate(id, value) {
	document.getElementById(id).style.top = value+'px';
}

function get_screen(coordinate) {
	if(coordinate == 'x') {
		data = window.screen.width;
		return data
	}
	
	else if(coordinate == 'y') {
		data = window.screen.height;
		return data
	}
	
	else {
		alert("Alert From js_function.js - unknown coordinate : "+coordinate);
		return 0;
	}
}




