function includeFile(src){ script = document.createElement("SCRIPT"); script.type = "text/javascript"; script.src = src; document.getElementsByTagName("head")[0].appendChild(script); } String.prototype.trim = function(){ return this.replace(/^\s*/, "").replace(/\s*$/, ""); } function isEmail(str){ return (str.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)); } function showPresentation(){ var popup_width = 825; var popup_height = 626; var screen_width = self.screen.availWidth; var screen_height = self.screen.availHeight; var popup_left = (screen_width - popup_width) / 2; var popup_top = (screen_height - popup_height) / 2; window.open("http://www.b-coolt.com/presentation/", "presentation", "height ="+ popup_height +"px, left = "+ popup_left +"px, location = no, menubar = no, toolbar = no, status = no, top = "+ popup_top +"px, width ="+ popup_width +"px"); } function showInterview(identity){ var popup_width = 975; var popup_height = 776; var screen_width = self.screen.availWidth; var screen_height = self.screen.availHeight; var popup_left = (screen_width - popup_width) / 2; var popup_top = (screen_height - popup_height) / 2; window.open("http://www.b-coolt.com/bulletin/interview/?identity="+ identity, "interview", "height ="+ popup_height +"px, left = "+ popup_left +"px, location = no, menubar = no, toolbar = no, status = no, top = "+ popup_top +"px, width ="+ popup_width +"px"); } function showFilm(identity){ var popup_width = 975; var popup_height = 776; var screen_width = self.screen.availWidth; var screen_height = self.screen.availHeight; var popup_left = (screen_width - popup_width) / 2; var popup_top = (screen_height - popup_height) / 2; window.open("http://www.b-coolt.com/bulletin/film/?identity="+ identity, "interview", "height ="+ popup_height +"px, left = "+ popup_left +"px, location = no, menubar = no, toolbar = no, status = no, top = "+ popup_top +"px, width ="+ popup_width +"px"); } function sendThisTo(type, identity){ var popup_width = 362; var popup_height = 324; var screen_width = self.screen.availWidth; var screen_height = self.screen.availHeight; var popup_left = (screen_width - popup_width) / 2; var popup_top = (screen_height - popup_height) / 2; window.open("http://www.b-coolt.com/bulletin/send/?type="+ type +"&identity="+ identity, "send"+ type, "height ="+ popup_height +"px, left = "+ popup_left +"px, location = no, menubar = no, toolbar = no, status = no, top = "+ popup_top +"px, width ="+ popup_width +"px"); }