Thanks alot it seems to work but how do I pass diffirent URL's, and other variables to this function??