function changepic(objects,picname){
   return objects.src=picname;
}

function trim(inputString) { 
	if (typeof inputString != "string") { return inputString; } 
	var retValue = inputString; 
	var ch = retValue.substring(0, 1); 
	while (ch == " ") { 
		retValue = retValue.substring(1, retValue.length); 
		ch = retValue.substring(0, 1); 
	} 
	ch = retValue.substring(retValue.length-1, retValue.length); 
	while (ch == " ") { 
		retValue = retValue.substring(0, retValue.length-1); 
		ch = retValue.substring(retValue.length-1, retValue.length); 
	} 
	while (retValue.indexOf(" ") != -1) { 
	retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length); 
	} 
	return retValue; 
} 

function onlynumber(){
if (!((event.keyCode>44 && event.keyCode<58)))
   event.keyCode=0;
}


function open_view(url){
    var thisForm = window.theForm
	if(thisForm != null){
		if(thisForm.where != null){
			thisForm.where.value = location.href;
		}
		thisForm.action = url;
		thisForm.submit();
	}
	else{
		window.location.href=url;
	}
}