print preview page scripting