func Show(tagname string) string {
	return "$(" + quote(tagname) + ").show();"
}
Show returns JavaScript code that shows the given tag name
package onthefly
func fn(source string) string {
	return "function() { " + source + " }"
}
func quote(src string) string {
	return "\"" + src + "\""
}
func event(tagname, event, source string) string {
	return "$(" + quote(tagname) + ")." + event + "(" + fn(source) + ");"
}
func method(tagname, methodname, value string) string {
	return "$(" + quote(tagname) + ")." + methodname + "(" + value + ");"
}
func methodString(tagname, methodname, value string) string {
	return method(tagname, methodname, quote(value))
}
func OnDocumentReady(source string) string {
	return "$(document).ready(" + fn(source) + ");"
}
func Alert(msg string) string {
	return "alert(" + quote(msg) + ");"
}
func OnClick(tagname, source string) string {
	return event(tagname, "click", source)
}
func SetText(tagname, text string) string {
	return methodString(tagname, "text", text)
}
func SetHTML(tagname, html string) string {
	return method(tagname, "html", html)
}
func SetValue(tagname, val string) string {
	return methodString(tagname, "val", val)
}
func SetRawValue(tagname, val string) string {
	return method(tagname, "val", val)
}
func Hide(tagname string) string {
	return "$(" + quote(tagname) + ").hide();"
}
func HideAnimated(tagname string) string {
	return "$(" + quote(tagname) + ").hide('normal');"  
}