iplocationtools_width = (typeof(iplocationtools_width) == "undefined") ? 160 : iplocationtools_width; iplocationtools_height = (typeof(iplocationtools_height) == "undefined") ? 80 : iplocationtools_height; iplocationtools_border_size = (typeof(iplocationtools_border_size) == "undefined") ? 1 : iplocationtools_border_size; iplocationtools_border_color = (typeof(iplocationtools_border_color) == "undefined") ? "000000" : iplocationtools_border_color; iplocationtools_bg_color = (typeof(iplocationtools_bg_color) == "undefined") ? "ffffff" : iplocationtools_bg_color; iplocationtools_font_color = (typeof(iplocationtools_font_color) == "undefined") ? "000000" : iplocationtools_font_color; iplocationtools_font_size = (typeof(iplocationtools_font_size) == "undefined") ? 10 : iplocationtools_font_size; iplocationtools_show_time = (typeof(iplocationtools_show_time) == "undefined") ? 0 : iplocationtools_show_time; iplocationtools_time_zone = (typeof(iplocationtools_time_zone) == "undefined") ? 0 : iplocationtools_time_zone; iplocationtools_custom_bg = (typeof(iplocationtools_custom_bg) == "undefined") ? "http://www.iplocationtools.com/images/bg1.jpg" : iplocationtools_custom_bg; iplocationtools_width = iplocationtools_width < 160 ? 160 : iplocationtools_width; iplocationtools_width = iplocationtools_width > 400 ? 400 : iplocationtools_width; iplocationtools_height = iplocationtools_height < 80 ? 80 : iplocationtools_height; iplocationtools_height = iplocationtools_height > 800 ? 800 : iplocationtools_height; iplocationtools_border_size = iplocationtools_border_size < 0 ? 0 : iplocationtools_border_size; iplocationtools_border_size = iplocationtools_border_size > 5 ? 5 : iplocationtools_border_size; iplocationtools_border_color = (/^([A-F0-9]{6})$/i.test(iplocationtools_border_color)) ? iplocationtools_border_color : "000000"; iplocationtools_bg_color = (/^([A-F0-9]{6})$/i.test(iplocationtools_bg_color)) ? iplocationtools_bg_color : "ffffff"; iplocationtools_font_color = (/^([A-F0-9]{6})$/i.test(iplocationtools_font_color)) ? iplocationtools_font_color : "000000"; iplocationtools_font_size = (/^[0-9]+$/i.test(iplocationtools_font_size)) ? iplocationtools_font_size : 10; iplocationtools_show_time = (iplocationtools_show_time == 1) ? 1 : 0; iplocationtools_time_zone = (/^([+-])?([0-9]+)$/i.test(iplocationtools_time_zone)) ? iplocationtools_time_zone : 0; iplocationtools_custom_bg = (iplocationtools_custom_bg == "") ? "http://www.iplocationtools.com/images/bg1.jpg" : iplocationtools_custom_bg; var output = '
Powered by IPLocationTools.com 
'; document.write(output);