function changeImage(val){
	document.getElementById("itempic").setAttribute("src", val);
}

// JScript File
function PopUp(URL,w,h,s) {
	var w_width = w;
	var w_height = h;
	var scrollbar = s;
	var w_top = (screen.height-w_height)/2;
	var w_left = (screen.width-w_width)/2;
	window.open(URL,"NewWin", "width=" + w_width + ", height=" + w_height + ", top=" + w_top + ", left=" + w_left + ", toolbar=0, location=0, directories=0, status=0, toolbar=0, menubar=0, scrollbars=" + scrollbar + ", resizeable=0");
}


// REPLACE FUNKTION
function Replace(s, f, rw){
	if(arguments.length > 4){
		for( ; arguments[4] > 0; s=s.substring(arguments[3]-1, s.length).replace(f, rw), arguments[4]--);
		return s;
	}
	return ((arguments.length < 4) ? s.replace(RegExp(f, "g"), rw) : (arguments.length == 4) ?
		s.substring(arguments[3]-1, s.length).replace(RegExp(f, "g"), rw) : null);
}
